/* Add to your plugin's admin CSS file */

/* Generhiintal Layout and Flex Setup */
.hiint-campaign-edit-page {
    display: flex;
    flex-direction: column;
    height: 100vh;
    /* Fill the full viewport height */
    box-sizing: border-box;
}

.hiint-campaign-container {
    display: flex;
    height: 100%;
}

.hiint-campaign-form-container {
    flex: 1;
    /* Take up half of the container initially */
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
    /* Add vertical scrolling for long forms */
    transition: width 0.5s ease;
    /* Smooth transition for resizing */
    /*  background: white; */
    margin-right: 10px;
    border-radius: 10px;
}

/* Preview Container */
.hiint-campaign-preview-container {
    flex: 1;
    position: relative;
    /* To allow the icon to be positioned absolutely inside it */
    background-color: #f9f9f9;
    overflow: hidden;
    /* Optional: Hide any overflow */
    transition: width 0.5s ease;
    /* Smooth transition for resizing */

}

.hiint-campaign-preview-box {
    height: 100%;

}

/* Full Width Icon */
.full-width-icon {
    position: absolute;
    /* Position it over the preview container */
    top: 50%;
    /* Halfway down the preview container */
    left: 0;
    /* Align to the left edge of the container */
    transform: translateY(-50%);
    /* Vertically center the icon */
    z-index: 10;
    /* Place it above other elements */
}

/* Full Width Icon Normal State */
.full-width-icon img {
    background: white;
    padding: 10px;
    cursor: pointer;
    border-radius: 500px;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    /* Smooth transition for rotation and shadow */
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
    /* Blurred shadow behind the icon */
}

/* Full Width Icon Flipped State When Expanded */
.edit-campaign-right-preview.expanded .full-width-icon img {
    transform: rotate(180deg);
    /* Rotate the icon 180 degrees */
}

/* Preview Container Normal State */
.edit-campaign-right-preview {
    flex: 1;
    background-color: #f9f9f9;
    transition: width 0.5s ease;
    /* Smooth transition when resizing */
}

/* Expanded Full Width Preview Container */
/* Expanded Full Width Preview Container */
.edit-campaign-right-preview.expanded {
    flex: 100%;
}

/* Mobile Width Preview Container */
.edit-campaign-right-preview.mobile {
    flex: 0 0 375px;
    /* Set the width to typical mobile width (375px) */
    max-width: 375px;
    margin: 0 auto;
    /* Center it if needed */
}

/* Icon for mobile toggle */
.mobile-width-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    cursor: pointer;
    z-index: 1000;
    /* Ensure it stays on top */
}

.mobile-width-icon img {
    background: white;
    padding: 10px;
    cursor: pointer;
    border-radius: 500px;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    /* Smooth transition for rotation and shadow */
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
    /* Blurred shadow behind the icon */
}


/* Hide the Form When the Preview is Expanded */
.edit-campaign-right-preview.expanded+.hiint-campaign-form-container {
    display: none;
}

.hiint-collapsible-section summary {
    font-size: 1.2rem;
}

.hiint-collapsible-section {
    padding: 20px;
    background: white;
    border-radius: 10px;
    margin-bottom: 20px;
    margin-top: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);

}

.collapsible-content {
    margin-top: 25px;
}

.collapsible-header {
    cursor: pointer
}




/* Style for the form container */
#campaign-rules-form {
    padding: 15px;
    font-family: Arial, sans-serif;
}

/* Style for the rule group container */
#rule-group-container {
    margin-bottom: 15px;
}

/* Rule Group Box */
.rule-group {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    background-color: #f9f9f9;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Rule Header */
.rule-group h5 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

/* Rule List */
.rules .rule {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

/* Dropdown and Input Fields */
.rule select,
.rule input {
    padding: 8px;
    font-size: 0.95rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    flex-grow: 1;
}

/* Remove Rule Button */
.rule .remove-rule-button {
    background-color: #ff4d4f;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 0.9rem;
}

.rule .remove-rule-button:hover {
    background-color: #e60023;
}

/* Add Rule Button */
.add-rule-button {
    margin-top: 10px;
    background-color: #0073e6;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 0.9rem;
}

.add-rule-button:hover {
    background-color: #005bb5;
}

/* Submit Buttons */
button.button-primary {
    background-color: #0073e6;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 1rem;
    cursor: pointer;
    margin-right: 8px;
}

button.button-primary:hover {
    background-color: #005bb5;
}

button.button-secondary {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 1rem;
    cursor: pointer;
}

button.button-secondary:hover {
    background-color: #e0e0e0;
}

/* Success Message */
#success-message {
    font-size: 0.95rem;
    font-weight: bold;
    color: #28a745;
    margin-top: 10px;
}

.rule-and-text {
    text-align: center;
    margin: 20px 0;
    font-size: 18px;
    color: #555;
    font-weight: 600;
}

.rule-or-text {
    text-align: center;
    margin: 20px 0;
    font-size: 18px;
    color: #555;
    font-weight: 600;
}

.transparent-color-indicator {
    position: relative;
    background-color: white !important;
}

.transparent-color-indicator::after,
.transparent-color-indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 2px;
    background-color: red;
    transform: translate(-50%, -50%);
}

.transparent-color-indicator::after {
    transform: translate(-50%, -50%) rotate(45deg);
}

.transparent-color-indicator::before {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* Make sure this styling only applies to the color preview box */
.wp-color-result {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    width: 30px;
    /* Adjust to the size of the color box */
    height: 30px;
    /* Adjust to the size of the color box */
    border: 1px solid #ccc;
}

.margin-padding-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.margin-padding-group div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.margin-padding-group input[type="number"] {
    width: 60px;
    padding: 5px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.margin-padding-group label {
    font-size: 12px;
    color: #666;
    text-align: center;
}

.hiint-hidden-mobile-option {
    display: none;
}