/* Admin Styles for Notification Bar Settings */

.mighty-notification-bar-admin {
    max-width: 1200px;
}

.mighty-notification-bar-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}


/* Header Branding */
.mighty-notification-bar-header {
    margin: 20px 0 20px 0;
    padding: 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mighty-notification-bar-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 40px;
}

.mighty-notification-bar-branding {
    flex: 1;
}

.mighty-notification-bar-logo-title {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mighty-notification-bar-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
    border-radius: 50px;
}

.mighty-notification-bar-title-wrapper {
    flex: 1;
}

.mighty-notification-bar-title {
    margin: 0;
    padding: 0;
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.mighty-notification-bar-tagline {
    margin: 6px 0 0 0;
    padding: 0;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

.mighty-notification-bar-credits {
    text-align: right;
    color: rgba(255, 255, 255, 0.95);
}

.mighty-notification-bar-credits p {
    margin: 0;
    padding: 0;
    font-size: 14px;
    line-height: 1.6;
}

.mighty-notification-bar-credits .made-by {
    font-size: 15px;
}

.mighty-notification-bar-credits .made-by strong {
    font-weight: 700;
    color: #ffffff;
}

.mighty-notification-bar-credits .made-by a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.mighty-notification-bar-credits .made-by a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.mighty-notification-bar-credits .version {
    font-size: 13px;
    opacity: 0.85;
}

/* Responsive header */
@media screen and (max-width: 782px) {
    .mighty-notification-bar-header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 25px 20px;
    }

    .mighty-notification-bar-logo-title {
        gap: 15px;
    }

    .mighty-notification-bar-logo {
        width: 60px;
        height: 60px;
    }

    .mighty-notification-bar-credits {
        text-align: left;
    }

    .mighty-notification-bar-title {
        font-size: 28px;
    }
}

/* Layout Grid */
.mighty-notification-bar-admin-layout {
    display: grid;
    margin-top: 20px;
}

/* Card Styling */
.mighty-notification-bar-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0;
    margin-top: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    z-index: 99999;
}

.mighty-notification-bar-card h2 {
    margin: 0;
    padding: 20px 25px;
    border-bottom: 1px solid #f0f0f1;
    font-size: 16px;
    font-weight: 600;
    color: #1d2327;
}

.mighty-notification-bar-card .form-table {
    margin: 0;
}

.mighty-notification-bar-card .form-table th,
.mighty-notification-bar-card .form-table td {
    padding: 20px 25px;
}

.mighty-notification-bar-card .form-table tr {
    border-bottom: 1px solid #f0f0f1;
}

.mighty-notification-bar-card .form-table tr:last-child {
    border-bottom: none;
}

.mighty-notification-bar-card .form-table th {
    width: 180px;
    font-weight: 600;
    color: #1d2327;
}

.mighty-notification-bar-card .form-table td .description {
    margin-top: 8px;
    color: #646970;
    font-size: 13px;
}

/* Toggle Switch Styling */
.mighty-notification-bar-toggle-switch {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    position: relative;
    user-select: none;
}

.mighty-notification-bar-toggle-switch input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.mighty-notification-bar-toggle-switch .slider {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    background-color: #d0d0d0;
    border-radius: 34px;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
    cursor: pointer;
}

.mighty-notification-bar-toggle-switch .slider::before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    top: 3px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.mighty-notification-bar-toggle-switch input[type="checkbox"]:checked + .slider {
    background-color: #2271b1;
}

.mighty-notification-bar-toggle-switch input[type="checkbox"]:checked + .slider::before {
    transform: translateX(20px);
}

.mighty-notification-bar-toggle-switch input[type="checkbox"]:focus + .slider {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #2271b1;
}

.mighty-notification-bar-toggle-switch input[type="checkbox"]:focus-visible + .slider {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #2271b1;
}

.mighty-notification-bar-toggle-switch:hover .slider {
    background-color: #b8b8b8;
}

.mighty-notification-bar-toggle-switch input[type="checkbox"]:checked:hover + .slider {
    background-color: #135e96;
}

.mighty-notification-bar-toggle-switch .toggle-label {
    color: #50575e;
    font-weight: normal;
    cursor: pointer;
}

/* Word Counter */
.mighty-notification-bar-word-counter {
    margin-top: 8px;
    font-size: 13px;
    color: #646970;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mighty-notification-bar-word-counter #word-count {
    font-weight: 600;
    color: #1d2327;
}

.word-limit-indicator {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 3px;
}

.word-count-good {
    color: #00a32a;
    background-color: #f0f6f0;
}

.word-count-warning {
    color: #996800;
    background-color: #fcf9e8;
}

.word-count-error {
    color: #d63638;
    background-color: #fcf0f1;
}

/* Preview Sidebar */
.mighty-notification-bar-admin-sidebar {
    top: 32px;
    height: fit-content;
}

.mighty-notification-bar-preview-card {
    background: #f6f7f7;
    border-color: #c3c4c7;
}

.mighty-notification-bar-preview-wrapper {
    padding: 20px 25px;
}

.mighty-notification-bar-preview-bar {
    padding: 15px 20px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.mighty-notification-bar-preview-content {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

.preview-text {
    flex: 1;
    font-size: 15px;
    line-height: 1.5;
}

.preview-text p {
    margin: 0;
}

.preview-text a {
    color: inherit;
    text-decoration: underline;
}

.preview-button-wrapper {
    flex-shrink: 0;
}

.preview-button {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    cursor: default;
}

.preview-button-primary {
    background-color: rgba(255, 255, 255, 0.2);
    border: 2px solid currentColor;
}

.preview-button-secondary {
    background-color: transparent;
    border: 2px solid currentColor;
}

.preview-button-text {
    background-color: transparent;
    border: none;
    text-decoration: underline;
}

.preview-close {
    font-size: 28px;
    line-height: 1;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0.8;
    cursor: default;
}

.mighty-notification-bar-preview-card .description {
    padding: 0 25px 20px 25px;
    margin: 0;
    color: #646970;
    font-size: 13px;
}

.mighty-notification-bar-preview-actions {
    padding: 0 25px 25px 25px;
    margin: 0;
}

.mighty-notification-bar-preview-actions .button-primary {
    /* width: 100%; */
    justify-content: center;
    height: 44px;
    font-size: 15px;
}

/* Conditional field visibility */
.fixed-position-row,
.cookie-duration-row,
.button-settings-row,
.specific-pages-row {
    display: none;
}

.fixed-position-row.visible,
.cookie-duration-row.visible,
.button-settings-row.visible,
.specific-pages-row.visible {
    display: table-row;
}

/* Color picker improvements */
.wp-picker-container {
    display: inline-block;
}

/* Submit button styling */
#mighty-notification-bar-form .submit {
    margin: 0;
    padding: 25px;
    margin-top: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

#mighty-notification-bar-form .button-primary {
    height: 44px;
    padding: 0 30px;
    font-size: 15px;
}

/* Input & Select improvements */
.mighty-notification-bar-card input[type="text"],
.mighty-notification-bar-card input[type="url"],
.mighty-notification-bar-card input[type="date"],
.mighty-notification-bar-card input[type="number"],
.mighty-notification-bar-card select,
.mighty-notification-bar-card textarea {
    border-color: #ddd;
}

.mighty-notification-bar-card input[type="text"]:focus,
.mighty-notification-bar-card input[type="url"]:focus,
.mighty-notification-bar-card input[type="date"]:focus,
.mighty-notification-bar-card input[type="number"]:focus,
.mighty-notification-bar-card select:focus,
.mighty-notification-bar-card textarea:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

/* Review Banner — subtle dismissible notice */
.mighty-notification-bar-review-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0 0;
    padding: 8px 14px;
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    font-size: 13px;
    color: #646970;
}

.mighty-notification-bar-review-stars {
    color: #f0b849;
    letter-spacing: 1px;
    font-size: 12px;
}

.mighty-notification-bar-review-text {
    flex: 1;
}

.mighty-notification-bar-review-text a {
    color: #2271b1;
    text-decoration: none;
}

.mighty-notification-bar-review-text a:hover {
    text-decoration: underline;
}

.mighty-notification-bar-review-dismiss {
    background: transparent;
    border: 0;
    padding: 2px 6px;
    font-size: 18px;
    line-height: 1;
    color: #787c82;
    cursor: pointer;
    border-radius: 3px;
    transition: background 0.15s ease, color 0.15s ease;
}

.mighty-notification-bar-review-dismiss:hover {
    background: #e5e7eb;
    color: #1d2327;
}
