/* Reward Ads Popup Styles */
.next-stage-ads-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    z-index: 999999;
    align-items: center;
    justify-content: center;
}

.next-stage-ads-popup-container {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.next-stage-ads-popup-header {
    background: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.next-stage-ads-popup-countdown {
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.next-stage-ads-popup-timer {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 700;
    min-width: 30px;
    text-align: center;
}

.next-stage-ads-popup-close {
    background: none;
    border: none;
    color: var(--md-sys-color-on-primary);
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.next-stage-ads-popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.next-stage-ads-popup-content {
    flex: 1;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    overflow: auto;
}

.next-stage-ads-popup-ad {
    width: 100%;
    max-width: 728px;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.next-stage-ads-popup-ad iframe,
.next-stage-ads-popup-ad ins,
.next-stage-ads-popup-ad script {
    max-width: 100%;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .next-stage-ads-popup-header {
        padding: 12px 16px;
    }

    .next-stage-ads-popup-countdown {
        font-size: 14px;
    }

    .next-stage-ads-popup-content {
        padding: 16px;
    }

    .next-stage-ads-popup-ad {
        max-width: 100%;
    }
}

/* Sub-tabs in Usage */
.ai-tabs-nav {
    display: inline-flex;
    gap: 8px;
    padding: 6px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 12px;
}
.ai-tabs-nav a {
    padding: 8px 12px;
    font-size: 13px;
    color: #374151;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid transparent;
}
.ai-tabs-nav a.active {
    background: #fff;
    color: #1f2937;
    border-color: #e5e7eb;
}
.ai-subtab { display: none; }
.ai-subtab.active { display: block; }

/* Admin Notices */
.ai-notice {
    padding: 12px 16px;
    margin: 16px 0;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
}

.ai-notice-info {
    background-color: #e3f2fd;
    border: 1px solid #2196f3;
    color: #0d47a1;
}

.ai-notice strong {
    color: #1565c0;
}

/* Frontend Popup Styles (for public site) */
.next-stage-ads-reward-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    z-index: 999999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}

/* Asigură dimensiuni pentru container când popup-ul este ascuns */
.next-stage-ads-reward-popup-overlay:not(.visible) .next-stage-ads-reward-popup-ad {
    visibility: hidden;
}

/* Asigură că AdSense containerul are dimensiuni minime când popup-ul este vizibil */
.next-stage-ads-reward-popup-overlay.visible .next-stage-ads-reward-popup-ad {
    visibility: visible;
    min-width: 300px !important;
    min-height: 600px !important;
}

.next-stage-ads-reward-popup-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    animation: popupFadeIn 0.3s ease-out;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.next-stage-ads-reward-popup-header {
    background: #ffffff;
    color: #1c1b1f;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    /* Material Design 3 Elevation Level 4 */
    height: 48px;
    min-height: 48px;
    border-bottom: 1px solid #e7e0ec;
    position: relative;
}

.next-stage-ads-reward-popup-countdown {
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f7f2fa;
    color: #49454f;
    padding: 6px 12px;
    border-radius: 16px;
    border: 1px solid #cac4d0;
    position: relative;
    z-index: 2;
    letter-spacing: 0.1px;
}

.next-stage-ads-reward-popup-timer {
    background: #6750a4;
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 700;
    min-width: 32px;
    text-align: center;
    animation: pulse 2s ease-in-out infinite;
    font-size: 13px;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.next-stage-ads-reward-popup-close {
    background: #f7f2fa;
    border: 1px solid #cac4d0;
    color: #49454f;
    font-size: 14px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 16px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    width: auto;
    min-width: 80px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    line-height: 1;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
    z-index: 2;
    font-weight: 500;
    gap: 4px;
}

.next-stage-ads-reward-popup-close::after {
    content: 'Închide';
    font-size: 14px;
    font-weight: 500;
    color: #49454f;
}

.next-stage-ads-reward-popup-close.show {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
    animation: buttonFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.next-stage-ads-reward-popup-close.disabled {
    opacity: 0.4;
    pointer-events: none;
    background: #e0e0e0 !important;
    border-color: #cccccc !important;
    color: #999999 !important;
    cursor: not-allowed;
}

.next-stage-ads-reward-popup-close.disabled::after {
    color: #999999 !important;
}

.next-stage-ads-reward-popup-close:hover:not(.disabled) {
    background: #e7e0ec;
    border-color: #938f99;
    transform: scale(1.05);
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.16);
}

.next-stage-ads-reward-popup-close:active:not(.disabled) {
    transform: scale(0.95);
    background: #d9d5dd;
}

@keyframes buttonFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

    .next-stage-ads-reward-popup-content {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        padding-top: 48px; /* Spațiu pentru header de 48px */
        display: flex;
        justify-content: center;
        background: #f8f9fa;
        overflow: hidden;
    }

.next-stage-ads-reward-popup-ad {
    width: 100%;
    height: 100vh;
    min-width: 300px;
    min-height: 250px;
    display: flex;
    justify-content: center;
    background: #fff;
    box-sizing: border-box;
    position: relative;
}

.next-stage-ads-reward-popup-ad iframe,
.next-stage-ads-reward-popup-ad ins,
.next-stage-ads-reward-popup-ad script,
.next-stage-ads-reward-popup-ad img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
}

/* Minimal pre-ad countdown notifier */
.next-stage-ads-precount {
    position: fixed;
    z-index: 2147483000;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(0,0,0,0.9);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    pointer-events: auto;
    cursor: pointer;
}
.next-stage-ads-precount.top-left { top: 16px; left: 16px; }
.next-stage-ads-precount.top-right { top: 16px; right: 16px; }
.next-stage-ads-precount.bottom-left { bottom: 16px; left: 16px; }
.next-stage-ads-precount.bottom-right { bottom: 16px; right: 16px; }

/* Sticky bottom banner */
.next-stage-ads-sticky {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    background: rgba(17,17,17,0.6);
    backdrop-filter: blur(8px);
    z-index: 2147483000;
    display: none;
    max-height: var(--nsa-sticky-height, 60px) !important;
    min-height: var(--nsa-sticky-height, 60px) !important;
}
.next-stage-ads-sticky-inner {
    max-width: 100%;
    margin: 0 auto;
    height: var(--nsa-sticky-height, 60px);
    min-height: var(--nsa-sticky-height, 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.next-stage-ads-sticky-slot {
    height: 100%;
    max-height: 100%;
    overflow: hidden;
}
.next-stage-ads-sticky-slot ins.adsbygoogle {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}
.next-stage-ads-sticky-slot ins.adsbygoogle[data-full-width-responsive="true"],
.next-stage-ads-sticky-slot ins.adsbygoogle[data-ad-format="auto"],
.next-stage-ads-sticky-slot ins.adsbygoogle[data-ad-format="fluid"] {
    height: 100% !important;
    min-height: 0 !important;
}
.next-stage-ads-sticky-slot iframe {
    height: 100% !important;
}
.next-stage-ads-sticky-inner ins.adsbygoogle,
.next-stage-ads-sticky-inner iframe,
.next-stage-ads-sticky-inner img,
.next-stage-ads-sticky-inner div {
    max-height: 100%;
}
.next-stage-ads-sticky-close {
    position: absolute;
    right: 0px;
    top: -40px;
    background: rgb(0 0 0 / 54%);
    border: 0;
    color: #fff;
    width: 40px;
    height: 40px;
    /* border-radius: 50%; */
    cursor: pointer;
    z-index: 5;
    pointer-events: auto;
}
/* Ensure ad slot stays below the close button */
.next-stage-ads-sticky-slot,
.next-stage-ads-sticky-slot ins.adsbygoogle,
.next-stage-ads-sticky-slot iframe {
    position: relative;
}

body.next-stage-ads-sticky-open {
    padding-bottom: var(--nsa-sticky-height, 60px);
}

.next-stage-ads-precount .inner {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.next-stage-ads-precount .ad-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    opacity: 0.9;
}
.next-stage-ads-precount .time {
    margin-top: 2px;
    font-size: 14px;
    font-weight: 700;
}
.next-stage-ads-precount svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}
.next-stage-ads-precount .ring-bg {
    stroke: rgba(255,255,255,0.18);
    stroke-width: 4;
    stroke-linecap: round;
}
.next-stage-ads-precount .ring-progress {
    stroke: #ffd000;
    stroke-width: 4;
    stroke-linecap: round;
}

/* Specific styles for AdSense elements in popup */
.next-stage-ads-reward-popup-ad ins.adsbygoogle {
    min-width: 300px;
    min-height: 250px;
    display: block !important;
    margin: 0 auto;
    height: 100% !important;
    width: 100% !important;
}

.next-stage-ads-reward-popup-ad ins.adsbygoogle[data-ad-format="fluid"] {
    min-height: 600px;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .next-stage-ads-reward-popup-header {
        padding: 12px 16px;
    }

    .next-stage-ads-reward-popup-countdown {
        font-size: 14px;
    }

    .next-stage-ads-reward-popup-countdown-text {
        display: none;
    }

    .next-stage-ads-reward-popup-content {
        padding-top: 48px; /* Spațiu pentru header de 48px pe mobil */
    }

    .next-stage-ads-reward-popup-ad {
        min-width: 280px;
        min-height: 200px;
    }

    /* Mobile-specific AdSense sizing */
    .next-stage-ads-reward-popup-ad ins.adsbygoogle {
        min-width: 280px;
        min-height: 600px;
    }
}

/* Prevent body scroll when popup is open */
body.next-stage-ads-popup-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Two-column field grid helper */
.ai-field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 840px) {
    .ai-field-grid { grid-template-columns: 1fr; }
}
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;1,400;1,500&display=swap');

/* Material Design 3 Color System for Next Stage Writer */
:root {
    /* Material Design 3 Core Color Tokens */
    --md-sys-color-primary: #6750a4;
    --md-sys-color-on-primary: #ffffff;
    --md-sys-color-primary-container: #e8def8;
    --md-sys-color-on-primary-container: #21005d;
    --md-sys-color-secondary: #625b71;
    --md-sys-color-on-secondary: #ffffff;
    --md-sys-color-secondary-container: #e8def8;
    --md-sys-color-on-secondary-container: #1d192b;
    --md-sys-color-tertiary: #7d5260;
    --md-sys-color-on-tertiary: #ffffff;
    --md-sys-color-tertiary-container: #ffd8e4;
    --md-sys-color-on-tertiary-container: #31111d;
    --md-sys-color-error: #ba1a1a;
    --md-sys-color-on-error: #ffffff;
    --md-sys-color-error-container: #ffdad6;
    --md-sys-color-on-error-container: #410002;
    --md-sys-color-surface: #fef7ff;
    --md-sys-color-on-surface: #1d1b20;
    --md-sys-color-surface-variant: #e7e0ec;
    --md-sys-color-on-surface-variant: #49454f;
    --md-sys-color-outline: #79747e;
    --md-sys-color-outline-variant: #cac4d0;
    --md-sys-color-inverse-surface: #322f35;
    --md-sys-color-inverse-on-surface: #f5eff7;
    --md-sys-color-inverse-primary: #d0bcff;
    
    /* Material Design 3 Elevation Tokens */
    --md-elevation-0: none;
    --md-elevation-1: 0px 1px 2px 0px rgba(0, 0, 0, 0.3), 0px 1px 3px 1px rgba(0, 0, 0, 0.15);
    --md-elevation-2: 0px 1px 2px 0px rgba(0, 0, 0, 0.3), 0px 2px 6px 2px rgba(0, 0, 0, 0.15);
    --md-elevation-3: 0px 4px 8px 3px rgba(0, 0, 0, 0.15), 0px 1px 3px 0px rgba(0, 0, 0, 0.3);
    --md-elevation-4: 0px 6px 10px 4px rgba(0, 0, 0, 0.15), 0px 2px 3px 0px rgba(0, 0, 0, 0.3);
    --md-elevation-5: 0px 8px 12px 6px rgba(0, 0, 0, 0.15), 0px 4px 4px 0px rgba(0, 0, 0, 0.3);
    
    /* Material Design 3 Motion Tokens */
    --md-motion-easing-standard: cubic-bezier(0.4, 0.0, 0.2, 1);
    --md-motion-easing-emphasized: cubic-bezier(0.2, 0.0, 0, 1);
    --md-motion-easing-emphasized-decelerate: cubic-bezier(0.05, 0.7, 0.1, 1);
    --md-motion-easing-emphasized-accelerate: cubic-bezier(0.3, 0, 0.8, 0.15);
    --md-motion-duration-short1: 50ms;
    --md-motion-duration-short2: 100ms;
    --md-motion-duration-short3: 150ms;
    --md-motion-duration-short4: 200ms;
    --md-motion-duration-medium1: 250ms;
    --md-motion-duration-medium2: 300ms;
    --md-motion-duration-medium3: 350ms;
    --md-motion-duration-medium4: 400ms;
    --md-motion-duration-long1: 450ms;
    --md-motion-duration-long2: 500ms;
    --md-motion-duration-long3: 550ms;
    --md-motion-duration-long4: 600ms;
    
    /* Legacy Support - maintaining backward compatibility */
    --primary-color: var(--md-sys-color-primary);
    --primary-gradient: linear-gradient(135deg, var(--md-sys-color-primary) 0%, #8a7ca8 100%);
    --secondary-color: var(--md-sys-color-secondary);
    --secondary-gradient: linear-gradient(135deg, var(--md-sys-color-secondary) 0%, #8a7ca8 100%);
    --success-color: #006a6b;
    --success-gradient: linear-gradient(135deg, #006a6b 0%, #4f9a94 100%);
    --error-color: var(--md-sys-color-error);
    --error-gradient: linear-gradient(135deg, var(--md-sys-color-error) 0%, #e57373 100%);
    --text-color: var(--md-sys-color-on-surface);
    --text-secondary: var(--md-sys-color-on-surface-variant);
    --border-color: var(--md-sys-color-outline-variant);
    --bg-color: var(--md-sys-color-surface);
    --box-shadow: var(--md-elevation-1);
    --border-radius: 12px;
    --tab-active-color: var(--md-sys-color-on-primary);
    --card-bg: var(--md-sys-color-surface);
    --glow-color: rgba(103, 80, 164, 0.3);
}

/* Layout principal */
.wrap {
    max-width: 1200px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.wrap h1 {
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 600;
    color: var(--text-color);
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    display: inline-block;
}

.wrap h1:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 80px;
    height: 3px;
    background-image: var(--primary-gradient);
    border-radius: 3px;
}

/* Container navigare tab-uri */
.next-stage-ads-nav-tabs {
    display: flex;
    margin-bottom: 25px;
    border-bottom: none;
    position: relative;
    gap: 2px;
}

.next-stage-ads-nav-tabs .nav-tab {
    border: none;
    padding: 12px 20px;
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    background-color: transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.next-stage-ads-nav-tabs .nav-tab:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.03);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.next-stage-ads-nav-tabs .nav-tab:hover {
    color: var(--primary-color);
}

.next-stage-ads-nav-tabs .nav-tab:hover:before {
    opacity: 1;
}

.next-stage-ads-nav-tabs .nav-tab.active {
    color: white;
    background-image: var(--primary-gradient);
    box-shadow: 0 4px 15px var(--glow-color);
    border-top: none;
    margin-bottom: 0;
    transform: translateY(0);
}

/* Conținut tab-uri */
.next-stage-writer-tab-content {
    display: none;
    padding: 30px;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.4s ease;
}

.next-stage-writer-tab-content.active {
    display: block;
}

/* Tabele de setări */
.form-table {
    border-collapse: collapse;
    margin-top: 0;
    width: 100%;
}

.form-table th {
    width: 220px;
    font-weight: 600;
    padding: 20px 10px 20px 0;
    text-align: left;
    vertical-align: top;
    font-size: 14px;
    color: var(--text-color);
}

.form-table td {
    padding: 15px 10px;
    vertical-align: middle;
}

/* Inputuri și textarea */
.form-table input[type="text"],
.form-table input[type="password"],
.form-table input[type="number"],
.form-table select,
.form-table textarea {
    width: 100%;
    max-width: 500px;
    padding: 12px 15px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    background-color: #fff;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.form-table input[type="text"]:focus,
.form-table input[type="password"]:focus,
.form-table input[type="number"]:focus,
.form-table select:focus,
.form-table textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--glow-color);
    outline: none;
}

.form-table textarea {
    min-height: 120px;
}

/* Buton validare API */
#validate-api-key {
    background-color: #1a73e8;
    color: #fff;
    border: none;
    padding: 8px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    display: inline-flex
;
    align-items: center;
}

#validate-api-key:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(74, 86, 226, 0.3);
}

/* Descriere câmpuri */
.description {
    color: var(--text-secondary);
    font-style: normal;
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.5;
}

/* Mesaje de eroare și succes */
.error-message {
    color: white;
    font-weight: 500;
    margin-top: 10px;
    padding: 10px 15px;
    background-image: var(--error-gradient);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 10px rgba(255, 82, 82, 0.2);
}

.success-message {
    color: white;
    font-weight: 500;
    margin-top: 10px;
    padding: 10px 15px;
    background-image: var(--success-gradient);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 10px rgba(100, 221, 23, 0.2);
}

/* Stilizare butoane */
.button {
    background-image: var(--primary-gradient);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    height: auto;
    line-height: normal;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(74, 86, 226, 0.2);
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(74, 86, 226, 0.3);
    color: white;
}

.button .dashicons {
    margin-right: 8px;
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Butoane submit */
.submit .button-primary {
    padding: 12px 25px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Statistici utilizare */
.next-stage-writer-usage-stats {
    display: flex;
    justify-content: flex-start;
    gap: 25px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.stat-box {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 25px;
    width: 280px;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    flex: 1;
    min-width: 220px;
}

.stat-box:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-image: var(--primary-gradient);
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.stat-box h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 16px;
    color: var(--text-color);
    font-weight: 600;
}

.stat-number {
    font-size: 40px;
    font-weight: bold;
    background-image: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
    line-height: 1.2;
}

.stat-progress {
    margin: 15px 0 8px;
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
}

.stat-progress-bar {
    height: 8px;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 8px;
}

.stat-progress-fill {
    height: 100%;
    background-image: var(--primary-gradient);
    border-radius: 10px;
    width: 0%;
    transition: width 1s ease-in-out;
}

/* Material Design 3 Range Input */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    max-width: 500px;
    height: 4px;
    border-radius: 2px;
    background: var(--md-sys-color-outline-variant);
    outline: none;
    margin: 16px 0;
    position: relative;
    cursor: pointer;
    transition: all var(--md-motion-duration-short2) var(--md-motion-easing-standard);
}

input[type="range"]:hover {
    background: var(--md-sys-color-outline);
}

input[type="range"]:focus {
    background: var(--md-sys-color-outline);
}

/* Webkit (Chrome, Safari, Edge) */
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--md-sys-color-primary);
    cursor: pointer;
    border: none;
    box-shadow: var(--md-elevation-1);
    transition: all var(--md-motion-duration-short2) var(--md-motion-easing-standard);
    position: relative;
}

input[type="range"]::-webkit-slider-thumb:hover {
    background: var(--md-sys-color-primary);
    box-shadow: var(--md-elevation-2);
    transform: scale(1.1);
}

input[type="range"]::-webkit-slider-thumb:active {
    background: var(--md-sys-color-primary);
    box-shadow: var(--md-elevation-3);
    transform: scale(1.2);
}

/* Firefox */
input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border: none;
    border-radius: 50%;
    background: var(--md-sys-color-primary);
    cursor: pointer;
    box-shadow: var(--md-elevation-1);
    transition: all var(--md-motion-duration-short2) var(--md-motion-easing-standard);
}

input[type="range"]::-moz-range-thumb:hover {
    background: var(--md-sys-color-primary);
    box-shadow: var(--md-elevation-2);
    transform: scale(1.1);
}

input[type="range"]::-moz-range-thumb:active {
    background: var(--md-sys-color-primary);
    box-shadow: var(--md-elevation-3);
    transform: scale(1.2);
}

/* Firefox track */
input[type="range"]::-moz-range-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: var(--md-sys-color-outline-variant);
    border-radius: 2px;
    border: none;
}

/* Focus state */
input[type="range"]:focus::-webkit-slider-thumb {
    outline: 2px solid var(--md-sys-color-primary);
    outline-offset: 2px;
}

input[type="range"]:focus::-moz-range-thumb {
    outline: 2px solid var(--md-sys-color-primary);
    outline-offset: 2px;
}

/* Switch toggle */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    margin-right: 10px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.15);
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

input:checked + .slider {
    background-image: var(--primary-gradient);
}

input:focus + .slider {
    box-shadow: 0 0 5px var(--glow-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.toggle-label {
    font-weight: 500;
    vertical-align: middle;
    margin-left: 5px;
    cursor: pointer;
}

.range-slider-container {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 500px;
    padding: 8px 0;
    position: relative;
}

/* Animații */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Loading spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

/* Dialog de confirmare */
.ai-confirm-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.ai-confirm-dialog-content {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    max-width: 500px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    text-align: center;
    position: relative;
}

.ai-confirm-dialog h3 {
    margin-top: 0;
    font-size: 20px;
    color: var(--text-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.ai-confirm-dialog p {
    margin-bottom: 30px;
    color: var(--text-secondary);
}

.ai-confirm-dialog-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Material Design 3 Typography Import */
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;1,400;1,500&display=swap');

/* Material Design 3 Base Styles */
.next-stage-ads-container {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    min-height: auto;
    margin: 20px 0;
    padding: 0;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    color: var(--md-sys-color-on-surface);
 
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Sidebar de navigare - Stil Facebook cu colțuri drepte */
.next-stage-ads-sidebar {
    width: 100%;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    z-index: 1;
    padding: 0;
    overflow: auto;
    height: auto;
    position: sticky;
    top: 32px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

/* Conținut principal */
.next-stage-ads-content {
    padding: 0;
    margin: 0;
    max-width: 100%;
}

/* Când WordPress sidebar este collapsed */
/* Folded admin menu no longer requires manual offsets */

/* Elimină margin-left și padding pe mobil când sidebar este collapsed */
@media (max-width: 840px) {
    body.folded .next-stage-ads-content {
        margin-left: 0;
    }
    
    body.folded .next-stage-ads-sidebar {
        padding: 0;
        left: 0;
    }
}

/* Logo și header - Stil Facebook cu colțuri drepte */
.next-stage-ads-logo {
    padding: 20px;
    margin-bottom: 0;
    border-bottom: 1px solid #e4e6ea;
    text-align: center;
    background-color: #ffffff;
}

.next-stage-ads-logo img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Meniu de navigare - Stil Facebook cu colțuri drepte */
.next-stage-ads-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
}

.next-stage-ads-nav li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #e4e6ea;
}

.next-stage-ads-nav li:last-child {
    border-bottom: none;
}

.next-stage-ads-nav a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #111827;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
    border-radius: 6px;
    margin: 6px 8px;
    cursor: pointer;
    position: relative;
    background-color: transparent;
}

.next-stage-ads-nav a:hover {
    background-color: #f3f4f6;
    color: #111827;
}

.next-stage-ads-nav a.active {
    background-color: #eef2ff;
    color: #4338ca;
    font-weight: 600;
}

.next-stage-ads-nav a.active .ai-icon svg {
    stroke: #1877f2;
    fill: none;
}

.ai-icon {
    display: inline-flex;
    align-items: center;
    margin-right: 16px;
    vertical-align: middle;
    flex-shrink: 0;
}

.ai-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: #65676b;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: all 0.2s ease;
}

/* Card-uri pentru secțiuni */
.ai-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    padding: 20px;
    margin-bottom: 24px;
    display: none;
}

.ai-card.active {
    display: block;
}

.ai-card h2 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 16px;
    color: #111827;
    display: flex;
    align-items: center;
}

.ai-card h2 .ai-icon {
    margin-right: 12px;
}

.ai-card h2 .ai-icon svg {
    stroke: #1a73e8;
}

/* Separatori */
.ai-separator {
    height: 1px;
    background-color: #dadce0;
    margin: 24px 0;
    width: 100%;
}

.ai-section-title {
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
    margin: 20px 0 14px 0;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Butoane */
.ai-btn {
    background-color: #2271b1;
    color: #fff;
    border: 1px solid #1f6ea5;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
}

.ai-btn:hover {
    background-color: #135e96;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

.ai-btn:disabled {
    background-color: #80abd9;
    cursor: not-allowed;
}

.ai-btn-secondary {
    background-color: #f1f3f4;
    color: #3c4043;
}

.ai-btn-secondary:hover {
    background-color: #e8eaed;
}

/* Formulare */
.ai-form-group {
    margin-bottom: 16px;
    padding: 12px;
    border: 1px dashed #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
}

.ai-form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #3c4043;
}

.ai-form-control {
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #dadce0;
    border-radius: 4px;
    background-color: #fff;
    transition: border-color 0.2s;
}

.ai-form-control:focus {
    border-color: #1a73e8;
    outline: none;
}

textarea.ai-form-control {
    min-height: 120px;
}

/* Material Design 3 Range Sliders */
.ai-range-slider {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    position: relative;
}

.ai-range-slider input[type='range'] {
    flex: 1;
    margin: 0;
    accent-color: var(--md-sys-color-primary);
}

.ai-range-value {
    min-width: 48px;
    padding: 4px 8px;
    background-color: var(--md-sys-color-surface-variant);
    color: var(--md-sys-color-on-surface-variant);
    border-radius: 4px;
    text-align: center;
    font-variant-numeric: tabular-nums;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid var(--md-sys-color-outline-variant);
    box-shadow: var(--md-elevation-1);
    transition: all var(--md-motion-duration-short2) var(--md-motion-easing-standard);
}

.ai-range-value:hover {
    background-color: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
    border-color: var(--md-sys-color-primary);
}

/* Range slider container with labels */
.ai-range-slider-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 16px 0;
}

.ai-range-slider-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--md-sys-color-on-surface);
    margin-bottom: 4px;
}

.ai-range-slider-description {
    font-size: 12px;
    color: var(--md-sys-color-on-surface-variant);
    margin-top: 4px;
    line-height: 1.4;
}

/* Range marks (optional) */
.ai-range-slider-marks {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    padding: 0 10px;
}

.ai-range-slider-mark {
    font-size: 11px;
    color: var(--md-sys-color-on-surface-variant);
    position: relative;
}

.ai-range-slider-mark::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 4px;
    background-color: var(--md-sys-color-outline);
    border-radius: 1px;
}

/* Tabele */
.ai-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
}

.ai-table th {
    text-align: left;
    padding: 12px 16px;
    font-weight: 500;
    border-bottom: 1px solid #dadce0;
    color: #3c4043;
    font-size: 14px;
}

.ai-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #dadce0;
}

/* Toggle switch */
.ai-switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
}

.ai-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.ai-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #dadce0;
    transition: .3s;
    border-radius: 20px;
}

.ai-switch-slider:before {
    position: absolute;
    content: '';
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .ai-switch-slider {
    background-color: #1a73e8;
}

input:checked + .ai-switch-slider:before {
    transform: translateX(16px);
}

/* Descrieri și hint-uri */
.ai-hint {
    font-size: 12px;
    color: #5f6368;
    margin-top: 4px;
}

/* Notificări */
.ai-notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    transition: all 0.25s ease;
    transform: translateY(100px);
    opacity: 0;
    z-index: 9999;
    max-width: 380px;
    border: 1px solid #e5e7eb;
    background: #fff;
}

.ai-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.ai-notification-success {
    background-color: #f0fdf4;
    color: #166534;
    border-left: 4px solid #22c55e;
}

.ai-notification-error {
    background-color: #fef2f2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.ai-notification-loading {
    background-color: #eff6ff;
    color: #1d4ed8;
    border-left: 4px solid #3b82f6;
}

.ai-notification-icon {
    margin-right: 12px;
}

.ai-notification-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
}

.ai-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-top-color: #1a73e8;
    border-radius: 50%;
    animation: ai-spin 0.8s linear infinite;
}

@keyframes ai-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Material Design 3 Responsive Breakpoints */

/* Tablet Portrait and Large Mobile (Material Design: Medium screens) */
@media (max-width: 840px) {
    .next-stage-ads-container {
        grid-template-columns: 1fr;
        gap: 16px;
        margin: 0;
    }
    .next-stage-ads-sidebar {
        position: relative;
        top: 0;
    }
    .next-stage-ads-content {
        padding: 0 8px;
    }
    .next-stage-ads-nav a {
        margin: 4px;
        border-radius: 8px;
    }
}

/* Mobile Landscape and Small Tablets (Material Design: Compact screens) */
@media (max-width: 600px) {
    .next-stage-ads-container {
        margin: 0;
        flex-direction: column;
    }
    
    .next-stage-ads-content {
        padding: 12px 16px;
    }
    
    /* Mobile Navigation Pattern - Material Design 3 */
    .next-stage-ads-sidebar {
        order: 1;
        position: relative;
        width: 100%;
        height: auto;
        border-top: none;
        border-bottom: none;
        background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
        z-index: auto;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
        margin-bottom: 24px;
        border-radius: 0;
        padding: 8px 0;
        margin: 0; /* Full width on mobile */
        backdrop-filter: blur(10px);
    }
    
    .next-stage-ads-content {
        order: 2;
        margin-left: 0;
    }
    
    .next-stage-ads-logo {
        display: none; /* Hide logo in bottom nav */
    }
    
    .next-stage-ads-nav {
        display: flex;
        justify-content: space-around;
        padding: 6px;
        gap: 4px;
        background-color: transparent;
        border: none;
        border-radius: 12px;
    }
    
    .next-stage-ads-nav li {
        flex: 1;
        margin: 0;
        max-width: none;
        min-width: auto;
    }
    
    .next-stage-ads-nav a {
        padding: 8px 4px;
        font-size: 11px;
        font-weight: 500;
        line-height: 1.1;
        border-radius: 12px;
        text-align: center;
        flex-direction: column;
        min-height: 52px;
        justify-content: center;
        position: relative;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
        border: 1px solid rgba(226, 232, 240, 0.8);
        backdrop-filter: blur(8px);
        color: #475569;
        box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    }
    
    /* Material ripple effect */
    .next-stage-ads-nav a::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(103, 80, 164, 0.3);
        transform: translate(-50%, -50%);
        transition: width 0.6s, height 0.6s;
    }
    
    .next-stage-ads-nav a:hover::before {
        width: 100px;
        height: 100px;
    }
    
    .next-stage-ads-nav a:hover {
        background: linear-gradient(135deg, rgba(103, 80, 164, 0.1) 0%, rgba(139, 69, 215, 0.1) 100%);
        border-color: rgba(103, 80, 164, 0.3);
        color: #6750a4;
        transform: translateY(-2px);
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    }
    
    .next-stage-ads-nav a.active {
        background: linear-gradient(135deg, #6750a4 0%, #5e35b1 100%);
        border-color: #6750a4;
        color: #ffffff;
        font-weight: 600;
        box-shadow: 0 8px 25px -8px rgba(103, 80, 164, 0.6);
        transform: translateY(-1px);
    }
    
    .next-stage-ads-nav a.active::before {
        background: rgba(255, 255, 255, 0.2);
    }
    

    
    .ai-icon {
        margin-right: 0;
        margin-bottom: 1px;
    }
    
    .ai-icon svg {
        width: 16px;
        height: 16px;
        stroke-width: 2.2;
        filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.1));
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .next-stage-ads-nav a:hover .ai-icon svg {
        stroke: #6750a4;
        transform: scale(1.1);
    }
    
    .next-stage-ads-nav a.active .ai-icon svg {
        stroke: #ffffff;
        transform: scale(1.1);
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    }
    
    /* Improve form elements for mobile */
    .form-table input[type="text"],
    .form-table input[type="password"],
    .form-table input[type="number"],
    .form-table select,
    .form-table textarea {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 14px 16px;
        min-height: 48px;
        border-radius: 8px;
    }
    
    .button,
    .ai-btn {
        min-height: 48px;
        padding: 12px 24px;
        font-size: 14px;
        border-radius: 8px;
        touch-action: manipulation;
    }
}

/* Suport pentru dark mode */
@media (prefers-color-scheme: dark) {
    :root {
        --text-color: #f0f0f0;
        --text-secondary: #b0b0b0;
        --border-color: rgba(255, 255, 255, 0.1);
        --bg-color: #1e1e1e;
        --card-bg: #2d2d2d;
        --glow-color: rgba(74, 86, 226, 0.4);
    }
    
    .next-stage-writer-tab-content {
        background-color: var(--card-bg);
    }
    
    .form-table input[type="text"],
    .form-table input[type="password"],
    .form-table input[type="number"],
    .form-table select,
    .form-table textarea {
        background-color: rgba(255, 255, 255, 0.05);
        color: var(--text-color);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .next-stage-ads-nav-tabs .nav-tab:before {
        background-color: rgba(255, 255, 255, 0.05);
    }
    
    input[type="range"] {
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    .stat-box {
        background-color: var(--card-bg);
    }
}

/* Stiluri pentru dashboard-ul de statistici */
.ai-stats-dashboard {
    margin-top: 20px;
}

/* Material Design 3 App Bar and Chips for Statistics */
.md-app-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #6750a4 0%, #5e35b1 100%);
    color: #fff;
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 14px;
    box-shadow: 0 2px 8px rgba(103,80,164,0.25);
}
.md-app-bar__title { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.md-app-bar__title .ai-icon svg { stroke: #fff; }
.md-app-bar__actions { display: inline-flex; align-items: center; gap: 8px; }
.md-icon-btn { background: rgba(255,255,255,0.15); border: none; color:#fff; border-radius: 8px; width: 36px; height: 36px; display: inline-flex; align-items:center; justify-content:center; cursor:pointer; transition: background 0.2s ease; }
.md-icon-btn:hover { background: rgba(255,255,255,0.25); }
.md-icon-btn--danger { background: rgba(231,74,59,0.2); }
.md-icon-btn--danger:hover { background: rgba(231,74,59,0.3); }

.md-chip-set { display: inline-flex; gap: 6px; background: rgba(255,255,255,0.12); padding: 6px; border-radius: 999px; }
.md-chip { background: #fff; color:#333; border: 1px solid #e5e7eb; border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.15s ease; }
.md-chip:hover { box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.md-chip--selected { background: #ece6f0; color: #4a2a84; border-color: #d0bcff; }

/* Date range inputs */
.md-date-range { display:inline-flex; align-items:center; gap:6px; background: rgba(255,255,255,0.12); padding: 6px 8px; border-radius: 999px; }
.md-date-range input { height: 30px; border-radius: 8px; border: 1px solid #d0bcff; padding: 0 8px; font-size: 12px; color:#1f2937; background:#fff; width: 130px; }
.md-date-sep { color:#fff; opacity: 0.85; font-weight: 700; }

/* ——— Mobile enhancements for Statistics tab ——— */
@media (max-width: 600px) {
    .md-app-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 12px;
    }
    .md-app-bar__actions {
        flex-wrap: wrap;
        row-gap: 6px;
        column-gap: 6px;
    }
    .md-chip-set {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        background: rgba(255,255,255,0.10);
        padding: 6px 4px;
    }
    .md-chip { flex: 0 0 auto; }
    .md-date-range {
        width: 100%;
        background: transparent;
        padding: 0;
        justify-content: space-between;
    }
    .md-date-range input {
        flex: 1 1 auto;
        min-width: 0;
        width: auto;
    }
    .md-date-sep { margin: 0 4px; }
    .ai-stats-chart-wrapper { height: 200px; }
    .ai-stats-cards { grid-template-columns: 1fr; }
    .ai-stats-grid { grid-template-columns: 1fr; }
}

.ai-stats-header {
    margin-bottom: 30px;
}

.ai-stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.ai-stats-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    padding: 20px;
    display: flex;
    align-items: center;
}

.ai-stats-card-icon {
    background-color: #f8f9fc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin-right: 15px;
}

.ai-stats-card-icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: #4e73df;
}

.ai-stats-card-content h3 {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: #5a5c69;
    font-weight: 600;
}

.ai-stats-number {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #3a3b45;
}

.ai-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.ai-stats-graph-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    padding: 20px;
    margin-bottom: 20px;
}

.ai-stats-graph-container h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    color: #5a5c69;
}

.ai-stats-section {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    padding: 20px;
    margin-bottom: 30px;
}

.ai-stats-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    color: #5a5c69;
}

.ai-stats-table-container {
    overflow-x: auto;
}

.ai-stats-table {
    width: 100%;
    border-collapse: collapse;
}

.ai-stats-table th,
.ai-stats-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e3e6f0;
}

.ai-stats-table th {
    background-color: #f8f9fc;
    font-weight: 600;
    color: #4e73df;
}

.ai-stats-table tr:hover {
    background-color: #f8f9fc;
}

.ai-stats-table td {
    color: #5a5c69;
}

/* Enhanced Mobile Responsive Design with Material Design 3 */
@media screen and (max-width: 768px) {
    .ai-stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .ai-stats-cards {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 0 4px;
    }
    
    /* Card improvements for mobile */
    .ai-card {
        padding: 16px;
        margin-bottom: 16px;
        border-radius: 12px;
        box-shadow: var(--md-elevation-1);
        background-color: var(--md-sys-color-surface);
    }
    
    .ai-card h2 {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    /* Form improvements for mobile */
    .form-table {
        display: block;
    }
    
    .form-table tr {
        display: block;
        margin-bottom: 16px;
        border-bottom: 1px solid var(--md-sys-color-outline-variant);
        padding-bottom: 16px;
    }
    
    .form-table th,
    .form-table td {
        display: block;
        width: 100%;
        padding: 0;
        text-align: left;
    }
    
    .form-table th {
        margin-bottom: 8px;
        font-size: 14px;
        font-weight: 500;
        color: var(--md-sys-color-on-surface);
    }
    
    /* Stats cards mobile optimization */
    .stat-box {
        padding: 16px;
        margin-bottom: 12px;
        border-radius: 12px;
    }
    
    .stat-number {
        font-size: 32px;
    }
    
    /* Tab content mobile spacing */
    .next-stage-writer-tab-content {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    /* Notification positioning for mobile */
    .ai-notification {
        bottom: 24px;
        right: 16px;
        left: 16px;
        max-width: none;
        border-radius: 8px;
    }
}

/* Stilizări pentru dashboard-ul de statistici */

/* Containere de titlu pentru secțiuni */
.ai-stats-title-container {
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
    border-radius: 8px;
    padding: 12px 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(78, 115, 223, 0.2);
    position: relative;
    overflow: hidden;
}

.ai-stats-title-container:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.08' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.7;
}

.ai-stats-title-container h2, 
.ai-stats-title-container h3 {
    margin: 0;
    color: white;
    font-size: 18px;
    font-weight: 500;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.ai-stats-section-title {
    margin-top: 30px;
    margin-bottom: 20px;
}

/* Dashboard layout */
.ai-stats-dashboard {
    margin: 20px 0;
}

.ai-stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.ai-stats-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 16px;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    border-left: 4px solid #4e73df;
}

.ai-stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(78, 115, 223, 0.15);
}

.ai-stats-card-icon {
    margin-right: 14px;
}

.ai-stats-card-icon .dashicons {
    color: #4e73df;
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.ai-stats-card-content h3 {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: #5a5c69;
}

.ai-stats-number {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #4e73df;
}

/* Grafice */
.ai-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.ai-stats-graph-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 16px;
    position: relative;
    transition: all 0.2s ease;
}

.ai-stats-graph-container h3 {
    margin: 0 0 15px 0;
    font-size: 15px;
    color: #5a5c69;
    text-align: center;
}

.ai-stats-chart-wrapper {
    position: relative;
    height: 250px;
}

/* Secțiuni și tabele */
.ai-stats-section {
    margin-bottom: 30px;
}

.ai-stats-section h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #5a5c69;
}

.ai-stats-table-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow-x: auto;
}

.ai-stats-table {
    width: 100%;
    border-collapse: collapse;
}

.ai-stats-table th, 
.ai-stats-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e3e6f0;
}

.ai-stats-table th {
    background-color: #f8f9fc;
    color: #5a5c69;
    font-weight: 600;
}

.ai-stats-table tr:last-child td {
    border-bottom: none;
}

.ai-stats-table tr:hover td {
    background-color: #f8f9fc;
}

/* Butoane de descărcare grafice */
.ai-download-chart {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 4px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s ease;
    z-index: 10;
}

.ai-download-chart:hover {
    opacity: 1;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ai-download-chart .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #4e73df;
}

/* Animații */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.ai-fade-in {
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
}

.ai-stats-card:nth-child(1) { animation-delay: 0.1s; }
.ai-stats-card:nth-child(2) { animation-delay: 0.2s; }
.ai-stats-card:nth-child(3) { animation-delay: 0.3s; }
.ai-stats-card:nth-child(4) { animation-delay: 0.4s; }

.ai-stats-graph-container:nth-child(1) { animation-delay: 0.5s; }
.ai-stats-graph-container:nth-child(2) { animation-delay: 0.6s; }
.ai-stats-graph-container:nth-child(3) { animation-delay: 0.7s; }
.ai-stats-graph-container:nth-child(4) { animation-delay: 0.8s; }

.ai-stats-section:nth-child(n) { animation-delay: 0.9s; }

/* Responsive */
@media (max-width: 992px) {
    .ai-stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .ai-stats-cards {
        grid-template-columns: 1fr;
    }
    
    .ai-stats-table th, 
    .ai-stats-table td {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* Footer butoane */
.ai-settings-footer {
    margin-top: 20px;
    text-align: right;
    padding: 15px 0;
    border-top: 1px solid var(--border-color);
}

/* --- Material Design 3 for Informații Utile Tab --- */
/* --- Modern Google/Facebook Card UI for Informații Utile Tab --- */
.ai-info-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 40px;
    padding: 32px 0;
    border-radius: 8px;
    box-shadow: none;
    margin-bottom: 0;
}

.ai-info-section {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.ai-info-section h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #23272f;
    margin-bottom: 18px;
    margin-top: 0;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 14px;
}

.ai-info-section h3 .ai-icon {
    margin: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e4e6eb;
    border-radius: 8px;
}

.ai-info-section h3 .ai-icon svg {
    width: 28px;
    height: 28px;
    stroke: #1877f2;
}

.ai-info-card {
    padding: 28px 32px 24px 32px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 16px 0 rgba(60,64,67,0.10);
    margin-bottom: 0;
    transition: box-shadow 0.18s, background 0.18s;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: none;
}

.ai-info-card:not(:last-child) {
    border-bottom: 1px solid #f0f1f3;
}

.ai-info-card:hover {
    box-shadow: 0 6px 32px 0 rgba(60,64,67,0.16);
    background: #f5f7fa;
}

.ai-info-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1877f2;
    margin: 0 0 8px 0;
}

.ai-info-card p {
    margin: 0;
    color: #3c4043;
    font-size: 1rem;
    line-height: 1.7;
}

.ai-feature-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ai-feature-list li {
    position: relative;
    padding: 10px 0 10px 38px;
    margin-bottom: 0;
    color: #23272f;
    font-size: 1rem;
    border-radius: 6px;
    background: none;
    transition: background 0.18s;
    font-weight: 500;
}

.ai-feature-list li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24' fill='none' stroke='%231877f2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.ai-resources {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 12px;
}

.ai-resource-link {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: #f0f2f5;
    border-radius: 6px;
    text-decoration: none;
    color: #1877f2;
    font-weight: 600;
    font-size: 1rem;
    gap: 12px;
    box-shadow: none;
    border: 1px solid #e4e6eb;
    transition: box-shadow 0.18s, border 0.18s, background 0.18s, color 0.18s;
}

.ai-resource-link:hover {
    background: #1877f2;
    color: #fff;
    box-shadow: 0 2px 12px 0 rgba(24,119,242,0.10);
    border: 1px solid #1877f2;
}

.ai-resource-link svg {
    width: 22px;
    height: 22px;
    stroke: #1877f2;
    transition: stroke 0.18s;
}

.ai-resource-link:hover svg {
    stroke: #fff;
}

@media (max-width: 900px) {
  .ai-info-container {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 16px 0;
  }
  .ai-info-card {
    padding: 20px 12px 16px 12px;
  }
}

/* Acțiuni statistici */
.ai-stats-actions {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
}

.ai-stats-actions button {
    background-color: #f1f3f4;
    color: #d93025;
    border: 1px solid #d93025;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ai-stats-actions button:hover {
    background-color: #fce8e6;
}

@media (prefers-color-scheme: dark) {
    .ai-stats-actions button {
        background-color: rgba(217, 48, 37, 0.1);
    }
    
    .ai-stats-actions button:hover {
        background-color: rgba(217, 48, 37, 0.2);
    }
} 

/* --- Material Design 3 Range Slider Enhancements --- */
.ai-range-slider {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    position: relative;
    min-height: 48px;
}

/* --- Fix Material Range Slider Thumb Centering --- */
.ai-range-slider input[type='range'] {
    flex: 1;
    margin: 0;
    accent-color: var(--md-sys-color-primary);
    background: none;
    position: relative;
    z-index: 1;
    height: 32px; /* Large enough for thumb to overflow and center */
    padding: 0;
    box-sizing: content-box;
    vertical-align: middle;
    display: block;
}

/* Webkit browsers */
.ai-range-slider input[type='range']::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(to right, var(--md-sys-color-primary) 0% var(--slider-percent, 50%), var(--md-sys-color-outline-variant) var(--slider-percent, 50%) 100%);
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

.ai-range-slider input[type='range']::-moz-range-track {
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(to right, var(--md-sys-color-primary) 0% var(--slider-percent, 50%), var(--md-sys-color-outline-variant) var(--slider-percent, 50%) 100%);
    position: relative;
}

.ai-range-slider input[type='range']::-ms-fill-lower,
.ai-range-slider input[type='range']::-ms-fill-upper {
    background: none;
}

/* Thumb */
.ai-range-slider input[type='range']::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    margin-top: -10px; /* (thumb height - track height) / 2 */
    border-radius: 50%;
    background: var(--md-sys-color-primary);
    box-shadow: 0 2px 8px rgba(103,80,164,0.18);
    border: 2px solid var(--md-sys-color-surface);
    transition: box-shadow 0.2s, background 0.2s;
    position: relative;
    z-index: 2;
}

.ai-range-slider input[type='range']:focus::-webkit-slider-thumb,
.ai-range-slider input[type='range']:active::-webkit-slider-thumb {
    box-shadow: 0 4px 16px rgba(103,80,164,0.28), 0 0 0 8px rgba(103,80,164,0.10);
    background: var(--md-sys-color-primary);
}

.ai-range-slider input[type='range']::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--md-sys-color-primary);
    box-shadow: 0 2px 8px rgba(103,80,164,0.18);
    border: 2px solid var(--md-sys-color-surface);
    transition: box-shadow 0.2s, background 0.2s;
    position: relative;
    z-index: 2;
}

.ai-range-slider input[type='range']:focus::-moz-range-thumb,
.ai-range-slider input[type='range']:active::-moz-range-thumb {
    box-shadow: 0 4px 16px rgba(103,80,164,0.28), 0 0 0 8px rgba(103,80,164,0.10);
    background: var(--md-sys-color-primary);
}

/* Hide default focus outline */
.ai-range-slider input[type='range']:focus {
    outline: none;
    box-shadow: none;
}

/* Value chip above thumb (optional, for Material look) */
.ai-range-slider .ai-range-value {
    min-width: 40px;
    padding: 2px 10px;
    background: var(--md-sys-color-surface-variant);
    color: var(--md-sys-color-on-surface-variant);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid var(--md-sys-color-outline-variant);
    box-shadow: var(--md-elevation-1);
    position: absolute;
    left: calc(var(--slider-percent, 50%) - 20px);
    top: -36px;
    z-index: 10;
    pointer-events: none;
    transition: background 0.2s, color 0.2s, border 0.2s;
    text-align: center;
}

.ai-range-slider input[type='range']:focus + .ai-range-value,
.ai-range-slider input[type='range']:active + .ai-range-value {
    background: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
    border-color: var(--md-sys-color-primary);
}

/* Responsive: stack on mobile */
@media (max-width: 600px) {
  .ai-range-slider {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    min-height: 64px;
  }
  .ai-range-slider .ai-range-value {
    left: 50% !important;
    transform: translateX(-50%);
    top: -32px;
  }
} 