/* ==========================================================================
   DASHBOARD VIEW - ProxWide
   ========================================================================== */

/* Dashboard container styling is minimal - uses tool-grid from base.css */

/* Dashboard-specific overrides if needed */
.dashboard-view .tool-grid {
    gap: var(--space-lg);
}

/* Stats cards on dashboard are now consolidated in the hero card */

/* ========== DASHBOARD STYLES FROM STYLE.CSS ==========*/
/* Modern Dashboard Styles */
.dashboard-view {
    padding: 20px 0;
    /* Hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.dashboard-view::-webkit-scrollbar {
    display: none;
}

/* Unified Hero Card */



/* Sections */
.dashboard-section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-left: 10px;
}

.section-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-main);
}

.section-header i {
    font-size: 1.5rem;
    color: var(--text-main) !important;
    opacity: 0.6;
}

/* Modern Grid */
.modern-tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

/* Modern Card */
.modern-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: visible !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    z-index: 1;
}

.modern-card.admin-card {
    flex-direction: column;
    align-items: stretch;
}

.modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 1s ease;
    z-index: -1;
    border-radius: 12px;
}

.modern-card>* {
    position: relative;
    z-index: 1;
}

.modern-card:hover {
    box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.1), 0 8px 8px -5px rgba(0, 0, 0, 0.04);
    border-color: transparent;
}

.card-icon-wrapper {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    transition: all 1s;
    background: var(--bg-card);
    /* Starts at white/card bg */
    color: var(--text-muted);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.card-info {
    flex: 1;
    min-width: 0;
    /* Ensures container can shrink and activate ellipsis */
    display: flex;
    flex-direction: column;
}

.card-info h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 2px 0;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.card-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--primary);
    color: var(--sh-text-contrast);
    font-size: 0.70rem;
    font-weight: 800;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(var(--primary-rgb), 0.4);
    z-index: 10;
    border: 2px solid var(--bg-card);
    transition: all 0.3s ease;
}

/* Fix visibility on hover for accent-rose to prevent red-on-red */
.modern-card.accent-rose:hover .card-badge {
    background: var(--text-main);
    color: var(--primary);
    border-color: var(--text-main);
}

.animate-scale-in {
    animation: scaleIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.card-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.card-arrow {
    flex-shrink: 0;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.4s ease;
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-left: 8px;
    /* Gap between info and arrow */
}

.modern-card:hover .card-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Accent Colors (Gradients only on hover) */
.accent-blue .card-icon-wrapper {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.accent-blue::before {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.accent-blue:hover::before {
    opacity: 1;
}

.accent-yellow .card-icon-wrapper {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
}

.accent-yellow::before {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.accent-yellow:hover::before {
    opacity: 1;
}

.accent-red .card-icon-wrapper {
    background: rgba(248, 113, 113, 0.1);
    color: #f87171;
}

.accent-red::before {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.accent-red:hover::before {
    opacity: 1;
}

.accent-green .card-icon-wrapper {
    background: rgba(52, 211, 153, 0.1);
    color: #34d399;
}

.accent-green::before {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.accent-green:hover::before {
    opacity: 1;
}

.accent-purple .card-icon-wrapper {
    background: rgba(167, 139, 250, 0.1);
    color: #a78bfa;
}

.accent-purple::before {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.accent-purple:hover::before {
    opacity: 1;
}

.accent-cyan .card-icon-wrapper {
    background: rgba(34, 211, 238, 0.1);
    color: #22d3ee;
}

.accent-cyan::before {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

.accent-cyan:hover::before {
    opacity: 1;
}

.accent-teal .card-icon-wrapper {
    background: rgba(20, 184, 166, 0.1);
    color: #14b8a6;
}

.accent-teal::before {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
}

.accent-teal:hover::before {
    opacity: 1;
}

.accent-indigo .card-icon-wrapper {
    background: rgba(129, 140, 248, 0.1);
    color: #818cf8;
}

.accent-indigo::before {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
}

.accent-indigo:hover::before {
    opacity: 1;
}

.accent-orange .card-icon-wrapper {
    background: rgba(251, 146, 60, 0.1);
    color: #fb923c;
}

.accent-orange::before {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.accent-orange:hover::before {
    opacity: 1;
}

.accent-rose .card-icon-wrapper {
    background: rgba(251, 113, 133, 0.1);
    color: #fb7185;
}

.accent-rose::before {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
}

.accent-rose:hover::before {
    opacity: 1;
}

.modern-card[class*="accent-"]:hover h3,
.modern-card[class*="accent-"]:hover p,
.modern-card[class*="accent-"]:hover .card-arrow,
.modern-card[class*="accent-"]:hover .card-icon-wrapper {
    color: var(--sh-text-contrast);
}

/* Fix for Admin cards: prevent white text on hover */
.modern-card.admin-card:hover h3,
.modern-card.admin-card:hover p,
.modern-card.admin-card:hover .card-arrow {
    color: inherit;
}

.modern-card:hover .card-icon-wrapper {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: none;
}

/* Admin Tabs Styling */
.nav-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.nav-btn.active {
    background: var(--primary);
    color: var(--sh-text-contrast);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb, 59, 130, 246), 0.3);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .dashboard-hero {
        flex-direction: column;
        text-align: center;
        padding: 0 !important;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-stats {
        margin-top: 25px;
    }

    .modern-tool-grid {
        grid-template-columns: 1fr;
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ========== DASHBOARD HERO & STATS ==========*/
/* Dashbord Hero & Sales Stats (Final Version) */
/* ========== DASHBOARD HERO & STATS ==========*/

/* === 1. Welcome Banner (Full Width & Polished) === */
.dashboard-welcome-banner {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-body) 100%);
    border: none;
    border-radius: 16px;
    padding: 32px 40px;
    margin-top: 60px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.welcome-content {
    position: relative;
    z-index: 2;
}

.dashboard-welcome-banner h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 8px 0;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.welcome-role {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 1.8rem;
    /* Creating a nice baseline alignment visually */
}

.welcome-hub {
    color: var(--primary);
    font-weight: 600;
}

.dashboard-welcome-banner p {
    font-size: 1rem;
    color: var(--text-muted);
    margin: 0;
    font-weight: 500;
    opacity: 0.9;
    max-width: 600px;
}

/* Decorative Background Icon */
.welcome-deco-icon {
    position: absolute;
    right: -20px;
    bottom: -30px;
    font-size: 180px;
    color: var(--primary);
    opacity: 0.03;
    pointer-events: none;
    transform: rotate(10deg);
    z-index: 1;
}

/* === 2. Stats Bar (Full Width) === */
.dashboard-stats-bar {
    background: var(--bg-card);
    border: none;
    border-radius: 12px;
    padding: 4px 12px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 52px;
    position: relative;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap; /* Wrap dès que le contenu est trop étroit (cas sidebar + petit écran) */
    width: 100%;
    height: 100%;
}

/* Stats Linear Row (For Admins) */
.hero-sales-linear {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    width: 100%;
}

/* === Single-Row Stats Grid === */
/* === Compact Toolbar Grid === */
/* === Data Point Stats (Micro) === */
.d-stat-item {
    flex: 1 1 120px; /* Shrink autorisé, base 120px — évite le débordement */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 8px 4px;
    min-width: 0; /* Permet au flex de réduire en dessous de 140px avant de wrapper */
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .dashboard-stats-bar {
        height: auto;
        padding: 12px;
    }

    .hero-stats {
        justify-content: center;
        gap: 16px 0;
    }

    .d-stat-item {
        flex: 0 0 33.33%;
        /* 3 items per row sur tablette/petit desktop */
        margin-bottom: 8px;
        border-right: none !important;
        /* Supprime les séparateurs quand ça wrap */
    }
}

@media (max-width: 768px) {
    .dashboard-welcome-banner {
        padding: 20px;
    }

    .dashboard-welcome-banner h1 {
        font-size: 1.6rem;
    }

    .welcome-role {
        font-size: 1.3rem;
        display: block;
        /* Stack role below name on mobile */
        margin-top: 4px;
    }

    .d-stat-item {
        flex: 0 0 50%;
        /* 2 items per row on mobile */
    }

    .d-stat-value {
        font-size: 1.6rem;
        /* Slightly smaller on mobile but still large */
    }
}

@media (max-width: 480px) {
    .d-stat-item {
        flex: 0 0 100%;
        /* Stack vertically on very small screens */
        padding: 12px 0;
        border-bottom: 1px solid var(--border-color);
    }

    .d-stat-item:last-child {
        border-bottom: none;
    }
}

.d-stat-item:last-child {
    padding-right: 0;
}

.d-stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 14px;
    /* Reduced */
    width: 1px;
    background: var(--border-color);
    opacity: 0.5;
}

.d-stat-value-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    /* Reduced */
    margin-bottom: 0;
    width: 100%;
}

.d-stat-icon {
    font-size: 0.8rem;
    /* Reduced */
    color: var(--text-muted);
    opacity: 0.8;
    flex-shrink: 0;
}

.d-stat-value {
    font-size: 2rem;
    /* User Preference */
    font-weight: 500;
    color: var(--text-main);
    line-height: 1;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.d-stat-label {
    font-size: 0.5rem;
    /* Smallest readable */
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.2px;
    opacity: 0.8;
    margin-top: 1px;
    white-space: nowrap;
    width: 100%;
}

@media (max-width: 1200px) {
    .dashboard-hero {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 16px;
    }

    .hero-stats {
        width: 100%;
        justify-content: space-between;
        gap: 0;
    }

    .stat-item {
        min-width: auto;
        flex: 1;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .stat-card {
        padding: 8px 10px;
        gap: 6px;
    }

    .stat-card-icon {
        width: 26px;
        height: 26px;
        font-size: 0.85rem;
    }

    .stat-card-value {
        font-size: 0.85rem;
    }
}

.linear-stat-group.team-circular {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex: 1;
    /* Equal weight */
    min-width: 0;
}



.stat-circle-progress {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: conic-gradient(var(--p-color) var(--progress), var(--bg-body) 0deg);
    transition: all 0.4s ease;
}
/* Removed data-theme override as it's now theme-aware via token */

.stat-circle-progress.status-danger {
    --p-color: var(--danger);
}

.stat-circle-progress.status-warning {
    --p-color: var(--warning);
}

.stat-circle-progress.status-complete {
    --p-color: var(--success);
}

.stat-circle-progress::after {
    content: '';
    position: absolute;
    width: 44px;
    height: 44px;
    background: var(--bg-card);
    border-radius: 50%;
    z-index: 1;
}

.circle-val {
    position: relative;
    z-index: 2;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-main);
}

.stat-circle-progress.status-complete .circle-val {
    animation: bounce-small 2s infinite;
}

@keyframes bounce-small {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {}
}

.linear-stat-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex: 1;
    text-align: center;
}

.linear-stat-group.user-v2,
.linear-stat-group.gains,
.linear-stat-group.details {
    flex: 1;
    /* All categories equal width */
    min-width: 0;
    padding: 0 15px;
}


.linear-stat-group:not(:last-child) {
    border-right: 1px solid var(--border-color);
}



.linear-stat-group i {
    font-size: 1.5rem;
    color: var(--primary);
    background: rgba(59, 130, 246, 0.1);
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.linear-stat-group.team i {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

.linear-stat-group.user i {
    color: #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
}

.linear-stat-group.gains i {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.stat-content-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}


.stat-content-col.wide {
    flex: 1;
}

.stat-val {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
    display: flex;
    justify-content: center;
    align-items: baseline;
}


.stat-val.gold {
    color: #f59e0b;
}

.stat-unit {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-left: 4px;
}

.stat-label,
.stat-sub {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.stat-sub-val.horizontal {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* User Progress Mini */
.mini-progress-container {
    margin-top: 4px;
    width: 100%;
}

.mini-progress-wrapper {
    width: 100%;
    /* Back to full width within centered column */
    max-width: 200px;
    margin: 8px auto 0;
}


.bar-bg {
    width: 100%;
    height: 8px;
    /* Slightly thicker */
    background: rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 8px;
}

[data-theme="dark"] .bar-bg {
    background: rgba(255, 255, 255, 0.1);
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6), #8b5cf6;
    border-radius: 12px;
    transition: width 0.8s ease-in-out;
}


.progress-text {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
}

/* Small Card Stats */
.detail-items-row {
    display: flex;
    gap: 6px;
}

.d-item {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    padding: 6px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 58px;
    transition: all 0.2s ease;
}


.d-item:hover {
    border-color: var(--primary);
}

.d-val {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-main);
}

.d-label {
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 2px;
}

/* Responsive Dashboard */
@media (max-width: 1200px) {
    .hero-sales-linear {
        flex-wrap: wrap;
        gap: 24px;
    }

    .linear-stat-group {
        flex: 1 1 calc(50% - 24px);
    }

    .linear-stat-group:nth-child(2) {
        border-right: none;
    }
}

@media (max-width: 992px) {
    .dashboard-hero {
        padding: 0 !important;
    }

    .hero-content h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .stat-label-row.center-mobile {
        justify-content: center;
    }


    .hero-content h1 {
        font-size: 1.7rem;
        white-space: normal;
    }

    .hero-content p {
        margin: 0 auto;
    }

    .hero-sales-linear {
        flex-direction: column;
        gap: 24px;
    }

    .linear-stat-group {
        border-right: none !important;
        padding-right: 0 !important;
        width: 100%;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .linear-stat-group:not(:last-child) {
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 24px;
    }

    .stat-content-col {
        align-items: center;
    }

    .stat-val {
        justify-content: center;
    }

    .mini-progress-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .modern-tool-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }
}

@media (max-width: 480px) {
    .dashboard-hero {
        padding: 0 !important;
        margin-bottom: 0 !important;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .detail-items-row {
        width: 100%;
        justify-content: center;
        gap: 12px;
    }

    .d-item {
        flex: 0 1 80px;
        min-width: 0;
    }

    .modern-tool-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   ANTENNA OUTAGE WIDGET
   ========================================================================== */
.antenna-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
}

.antenna-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    /* Restore loose padding */
    background: transparent;
    border-bottom: 1px solid var(--border-color);
    gap: 16px;
    /* Increased gap */
}

.antenna-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
    white-space: nowrap;
    flex-shrink: 0;
}

.antenna-title i {
    font-size: 1.1rem;
    color: var(--text-main);
    background: var(--bg-body);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.antenna-badge {
    background: var(--bg-body);
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 8px;
    min-width: 20px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.antenna-badge.has-outages {
    background: #fee2e2;
    color: #ef4444;
    border-color: #fca5a5;
    animation: pulse-red 2s infinite;
}

.antenna-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-shrink: 0;
}

.antenna-selector {
    flex: 1;
    min-width: 0;
}

/* Custom dropdown (remplace le <select> OS) */
.antenna-custom-select {
    position: relative;
    width: 100%;
    font-family: var(--font-sans);
}

.antenna-select-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
    padding: 5px 10px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-main);
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: border-color var(--trans-fast), box-shadow var(--trans-fast);
    text-align: left;
}

.antenna-select-btn:hover {
    border-color: var(--primary);
}

.antenna-custom-select.open .antenna-select-btn {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.2);
}

.antenna-select-btn i {
    font-size: 1rem;
    flex-shrink: 0;
    transition: transform var(--trans-fast);
    color: var(--text-muted);
}

.antenna-custom-select.open .antenna-select-btn i {
    transform: rotate(180deg);
}

.antenna-select-btn span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.antenna-select-list {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: var(--z-dropdown);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    list-style: none;
    margin: 0;
    padding: 4px 0;
    max-height: 220px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.antenna-select-list li {
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
    transition: background var(--trans-fast), color var(--trans-fast);
}

.antenna-select-list li:hover {
    background: var(--bg-hover);
}

.antenna-select-list li.active {
    background: rgba(var(--primary-rgb), 0.12);
    color: var(--primary);
    font-weight: 600;
}


.antenna-fh-link {
    color: var(--color-purple, #8b5cf6);
}

.antenna-fh-link:hover {
    color: var(--color-purple-dark, #7c3aed);
}

@keyframes pulse-red {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }

    50% {
        box-shadow: 0 0 0 4px rgba(239, 68, 68, 0);
    }
}

/* Empty State Styling */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: var(--text-muted);
    text-align: center;
}

.empty-icon-wrapper {
    width: 60px;
    height: 60px;
    background: var(--bg-body);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--text-muted);
    font-size: 1.5rem;
}

.empty-text {
    font-size: 0.9rem;
    line-height: 1.5;
}

.antenna-selector {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    min-width: 0;
}

.antenna-select {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 0.85rem;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    max-width: 260px;
    /* Increased for 400px sidebar */
    text-overflow: ellipsis;
}

.antenna-select:focus {
    outline: none;
    border-color: var(--primary);
}



.antenna-body {
    padding: 16px 20px;
}

.antenna-loading,
.antenna-success {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    color: var(--text-muted);
}

.antenna-success {
    color: #10b981;
}

.antenna-success i {
    font-size: 1.5rem;
}

.antenna-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.antenna-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: all 0.2s;
}

.antenna-item:hover {
    border-color: #ef4444;
    transform: translateX(4px);
}

.antenna-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-radius: 10px;
    font-size: 1.2rem;
}

.antenna-info {
    flex: 1;
    min-width: 0;
}

.antenna-location {
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.antenna-dates-grid {
    display: flex;
    gap: 16px;
    margin-top: 6px;
}

.antenna-date {
    display: flex;
    flex-direction: column;
}

.date-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 2px;
}

.date-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
}

.date-start .date-value {
    color: #e11d48;
}

.date-end .date-value {
    color: #10b981;
}

.antenna-map-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border-radius: 8px;
    transition: all 0.2s;
    text-decoration: none;
}

.antenna-map-link:hover {
    background: #3b82f6;
    color: white;
}

.antenna-note-edit {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-radius: 8px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.antenna-note-edit:hover {
    background: #10b981;
    color: white;
}

.antenna-more {
    text-align: center;
    padding: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Responsive antenna widget */
@media (max-width: 768px) {
    .antenna-header {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .antenna-dates {
        flex-direction: column;
        gap: 4px;
    }

    .antenna-select {
        width: 100%;
    }
}

/* ==========================================================================
   DASHBOARD SIDEBAR LAYOUT (UI Redesign V2)
   ========================================================================== */
.dashboard-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.dashboard-main {
    flex: 1;
    min-width: 0;
}

.dashboard-sidebar {
    flex: 0 0 320px;
    /* Sticky sidebar behavior */
    position: sticky;
    top: 80px;
}

.dashboard-sidebar-left {
    flex: 0 0 320px;
}

.antenna-widget {
    margin-bottom: 30px;
    /* Override width lock from split header if remaining */
    flex: auto;
    width: 100%;
}

@media (max-width: 1200px) {
    .dashboard-sidebar,
    .dashboard-sidebar-left {
        flex: 0 0 280px;
    }
}

/* < 1100px : main pleine largeur, puis les deux sidebars en 1/3 centrés */
@media (max-width: 1100px) {
    .dashboard-layout {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 24px;
        justify-content: center; /* Centre la rangée des asides sous le main */
        padding-left: 4px;
        padding-right: 4px;
    }

    .dashboard-main {
        flex: 0 0 100%;
        order: 1;
    }

    /* Chaque aside = 1/3 de la largeur → leurs centres tombent
       entre les colonnes du grid nav (Game Center|Constellation|Feedback) */
    .dashboard-sidebar.dashboard-sidebar-left {
        flex: 0 0 calc(33.333% - 12px);
        max-width: calc(33.333% - 12px);
        position: static;
        order: 2;
        margin: 0 0 30px 0;
        align-self: flex-start;
    }

    .dashboard-sidebar:not(.dashboard-sidebar-left) {
        flex: 0 0 calc(33.333% - 12px);
        max-width: calc(33.333% - 12px);
        position: static;
        order: 3;
        margin: 0 0 30px 0;
        align-self: flex-start;
    }

    /* Header pleine largeur — évite la troncature du KPI et du message de bienvenue */
    .dashboard-header-container,
    .dashboard-welcome-banner,
    .dashboard-stats-bar,
    .hero-stats {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* < 640px : les deux sidebars empilées et centrées */
@media (max-width: 640px) {
    .dashboard-sidebar.dashboard-sidebar-left,
    .dashboard-sidebar:not(.dashboard-sidebar-left) {
        flex: 0 0 100%;
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Full Width Override */
.main-content.dashboard-full {
    max-width: 100% !important;
    padding-left: 30px;
    padding-right: 30px;
}

/* ==========================================================================
   WEEKLY PLANNING WIDGET
   ========================================================================== */
.week-planning-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.wp-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.wp-toggle-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.wp-toggle-btn:hover {
    background: var(--bg-body-secondary);
    color: var(--primary);
    border-color: var(--primary);
}

.wp-toggle-btn i {
    font-size: 0.9rem;
}

.wp-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
}

.wp-title i {
    font-size: 1.1rem;
    color: var(--primary);
    background: var(--bg-body);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.wp-body {
    display: flex;
    flex-direction: column;
    position: relative;
    /* For absolute background */
}

/* Shared Hatched Background (Gray) */
.wp-hatched-bg {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 54px;
    /* Start after date column */
    z-index: 0;
    background: repeating-linear-gradient(45deg,
            #e2e8f0, #e2e8f0 10px,
            #cbd5e1 10px, #cbd5e1 20px);
    pointer-events: none;
}

[data-theme="dark"] .wp-hatched-bg {
    background: repeating-linear-gradient(45deg,
            #1a1a24, #1a1a24 10px,
            #22222e 10px, #22222e 20px);
}

.wp-day {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    height: 50px;
    box-sizing: border-box;
    /* Enforce fixed height for background alignment */
    position: relative;
    z-index: 1;
}

.wp-day:last-child {
    border-bottom: none;
}

.wp-day.is-today {
    background: rgba(var(--primary-rgb), 0.05);
}

.wp-date-col {
    width: 54px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--border-color);
    padding: 6px 4px;
    background: var(--bg-body-secondary);
    flex-shrink: 0;
    position: relative;
}

.wp-day-text {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 2px;
}

.wp-day-num {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1;
}

.wp-today-dot {
    width: 5px;
    height: 5px;
    background: var(--primary);
    border-radius: 50%;
    margin-top: 3px;
}

.wp-content-col {
    flex: 1;
    display: flex;
    padding: 0;
    position: relative;
}

.wp-shift-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 12px;
    border-left: 4px solid rgba(0, 0, 0, 0.1);
    transition: opacity 0.2s;
}

.wp-shift-card.is-off,
.wp-shift-card.is-conge {
    background: repeating-linear-gradient(45deg,
            #1a1a24,
            #1a1a24 10px,
            #22222e 10px,
            #22222e 20px) !important;
    border-left: none;
    color: #ffffff !important;
    transition: none !important;
    font-weight: 700;
}

.wp-shift-card.is-amenagement {
    background: repeating-linear-gradient(45deg,
            #fef3c7, #fef3c7 10px,
            #fde68a 10px, #fde68a 20px) !important;
    border-left: none;
    color: #92400e !important;
    transition: none !important;
    font-weight: 700;
}

[data-theme="dark"] .wp-shift-card.is-amenagement {
    background: repeating-linear-gradient(45deg,
            #1a1a24, #1a1a24 10px,
            #22222e 10px, #22222e 20px) !important;
    color: #ffffff !important;
    transition: none !important;
}

.wp-shift-info {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    line-height: 1.3;
}

.wp-shift-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    white-space: nowrap;
}

.wp-shift-title {
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    min-width: 0;
}

.wp-shift-time {
    font-size: 13px;
    font-weight: 600;
    opacity: 0.95;
}

.wp-shift-break {
    font-size: 12px;
    font-weight: 500;
    opacity: 0.8;
}

.wp-shift-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-width: 0;
}

.wp-shift-note-icon {
    font-size: 1rem;
    opacity: 0.7;
    transition: opacity 0.2s;
    cursor: pointer;
}

.wp-weekly-note-icon {
    font-size: 1.1rem;
    color: var(--primary);
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.wp-weekly-note-icon:hover {
    opacity: 1;
}

.wp-shift-card:hover .wp-shift-note-icon {
    opacity: 1;
}



.wp-empty-slot {
    flex: 1;
    background: var(--bg-card);
    position: relative;
    z-index: 2;
    /* Ensure it covers the hatched background */
}

@media (max-width: 1400px) {
    .dashboard-sidebar,
    .dashboard-sidebar-left {
        flex: 0 0 300px;
    }
}

/* dashboard-sidebar-left : même comportement que dashboard-sidebar (voir media 1100px) */

/* ==========================================================================
   CHANGELOG WIDGET (Left Sidebar)
   ========================================================================== */
.changelog-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    margin-top: 16px;
}

.changelog-body {
    padding: 12px 16px;
    max-height: 300px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.changelog-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.changelog-item {
    padding: 8px 10px;
    border-radius: 8px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    transition: border-color 0.2s;
}

.changelog-item:hover {
    border-color: var(--primary);
}

.changelog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.changelog-badge {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 7px;
    border-radius: 4px;
}

.badge-feature {
    background: rgba(59, 130, 246, 0.12);
    color: #3b82f6;
}

.badge-bug {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

.changelog-date {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
}

.changelog-content {
    font-size: 0.82rem;
    color: var(--text-main);
    line-height: 1.35;
}

.changelog-content a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.changelog-content a:hover {
    text-decoration: underline;
}

/* Header action buttons */
.changelog-admin-btn,
.changelog-hide-btn {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    cursor: pointer;
    padding: 3px 6px;
    font-size: 0.95rem;
    border-radius: 6px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.changelog-admin-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.changelog-hide-btn:hover {
    color: #ef4444;
    border-color: #ef4444;
}

/* Floating restore button */
.changelog-restore-btn {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.2s, box-shadow 0.2s;
}

.changelog-restore-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

/* ==========================================================================
   CHANGELOG ADMIN MODAL
   ========================================================================== */
.cl-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.cl-modal {
    background: var(--bg-card);
    width: 100%;
    max-width: 720px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.cl-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-body);
}

.cl-modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cl-modal-title i {
    font-size: 1.3rem;
    color: var(--primary);
}

.cl-modal-title h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
}

.cl-modal-close {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s;
}

.cl-modal-close:hover {
    color: #ef4444;
    border-color: #ef4444;
}

.cl-modal-content {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
}

/* Form */
.cl-form {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.cl-form-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cl-form-title i {
    color: var(--primary);
}

.cl-form-grid {
    display: grid;
    grid-template-columns: 140px 1fr 140px;
    gap: 10px;
    align-items: end;
}

.cl-field label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
    letter-spacing: 0.3px;
}

.cl-field-title {
    grid-column: span 1;
}

.cl-field-link {
    grid-column: 1 / -1;
}

.cl-field-btn {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
}

.cl-input {
    width: 100%;
    padding: 8px 12px;
    font-size: 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-main);
    transition: border-color 0.2s;
    font-family: inherit;
    box-sizing: border-box;
}

.cl-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.15);
}

.cl-btn-save {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.2s, transform 0.15s;
}

.cl-btn-save:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Entries */
.cl-entries-header {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}

.cl-entries-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 320px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.cl-entries-empty {
    text-align: center;
    padding: 30px;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.cl-entries-empty i {
    font-size: 2rem;
    opacity: 0.4;
}

.cl-entry {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: border-color 0.2s, transform 0.15s;
}

.cl-entry:hover {
    border-color: var(--primary);
    transform: translateX(2px);
}

.cl-entry-badge {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.cl-cat-feature {
    background: rgba(59, 130, 246, 0.1);
}

.cl-cat-bug {
    background: rgba(239, 68, 68, 0.1);
}

.cl-entry-info {
    flex: 1;
    min-width: 0;
}

.cl-entry-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cl-entry-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 2px;
}

.cl-entry-date {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
}

.cl-entry-link {
    font-size: 0.72rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 3px;
}

.cl-entry-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.cl-action-btn {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.cl-action-edit:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.cl-action-delete:hover {
    color: #ef4444;
    border-color: #ef4444;
}

/* Changelog widget show/hide transition */
.cl-slide-enter-active,
.cl-slide-leave-active {
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: top center;
    overflow: hidden;
}

.cl-slide-enter-from {
    opacity: 0;
    max-height: 0;
    transform: translateY(-12px) scale(0.97);
}

.cl-slide-enter-to {
    opacity: 1;
    max-height: 500px;
    transform: translateY(0) scale(1);
}

.cl-slide-leave-from {
    opacity: 1;
    max-height: 500px;
    transform: translateY(0) scale(1);
}

.cl-slide-leave-to {
    opacity: 0;
    max-height: 0;
    transform: translateY(-12px) scale(0.97);
}
