:root {
    /* Couleurs High-Tech */
    --primary: #00d4ff;
    --primary-glow: rgba(0, 212, 255, 0.5);
    --secondary: #00ff88;
    --secondary-glow: rgba(0, 255, 136, 0.5);
    --warning: #ffaa00;
    --danger: #ff0055;
    --sst-color: #ff6b35;
    --env-color: #00ff88;

    /* Thème Sombre Futuriste */
    --dark-bg: #0a0e27;
    --dark-card: #141b3d;
    --dark-card-hover: #1a2350;
    --gray: #8892b0;
    --light: #ccd6f6;
    --white: #ffffff;

    /* Effets Néon */
    --neon-blue: 0 0 20px rgba(0, 212, 255, 0.5), 0 0 40px rgba(0, 212, 255, 0.3);
    --neon-green: 0 0 20px rgba(0, 255, 136, 0.5), 0 0 40px rgba(0, 255, 136, 0.3);
    --neon-orange: 0 0 20px rgba(255, 107, 53, 0.5), 0 0 40px rgba(255, 107, 53, 0.3);

    /* Gradients Futuristes */
    --grad-cyber: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --grad-neon: linear-gradient(135deg, #00d4ff 0%, #00ff88 100%);
    --grad-fire: linear-gradient(135deg, #ff0055 0%, #ffaa00 100%);
    --grad-ice: linear-gradient(135deg, #00d4ff 0%, #a78bfa 100%);
}

* {
    box-sizing: border-box;
    outline: none;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: var(--dark-bg);
    background-image:
        radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 255, 136, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 0, 85, 0.05) 0%, transparent 50%);
    color: var(--light);
    margin: 0;
    display: flex;
    height: 100vh;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Effet de grille futuriste en arrière-plan */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

/* --- HEADER HIGH-TECH --- */
header {
    background: rgba(20, 27, 61, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    height: 70px;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 30px rgba(0, 212, 255, 0.1), 0 1px 0 rgba(0, 212, 255, 0.2);
    z-index: 100;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    position: relative;
}

.logo {
    font-size: 1.4rem;
    font-weight: 900;
    background: var(--grad-neon);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 10px;
    filter: drop-shadow(var(--neon-blue));
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5));
    }

    50% {
        filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.8));
    }
}

.badge-pro {
    background: var(--grad-cyber);
    color: white;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.6em;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-3px);
    }
}

.site-selector-wrapper {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    padding: 10px 18px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.site-selector-wrapper:hover {
    background: rgba(0, 212, 255, 0.15);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

#site-selector {
    border: none;
    background: transparent;
    font-weight: 600;
    color: var(--primary);
    font-size: 1rem;
    cursor: pointer;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: right;
}

.avatar {
    width: 45px;
    height: 45px;
    background: var(--grad-neon);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    border: 2px solid rgba(0, 212, 255, 0.3);
}

.info span {
    font-weight: 700;
    color: var(--light);
}

.info small {
    color: var(--gray);
}

/* --- SIDEBAR FUTURISTE --- */
.sidebar {
    width: 260px;
    background: rgba(20, 27, 61, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(0, 212, 255, 0.2);
    color: white;
    padding: 30px 0;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.3);
}

.nav-section {
    padding: 0 25px;
    font-size: 0.7em;
    font-weight: 800;
    color: var(--primary);
    margin: 20px 0 10px 0;
    letter-spacing: 2px;
    text-shadow: var(--neon-blue);
}

.nav-item {
    padding: 14px 25px;
    color: var(--gray);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: rgba(0, 212, 255, 0.1);
    transition: width 0.3s ease;
}

.nav-item:hover::before {
    width: 100%;
}

.nav-item:hover {
    color: var(--primary);
    background: rgba(0, 212, 255, 0.05);
    border-left-color: var(--primary);
}

.nav-item.active {
    color: var(--primary);
    background: rgba(0, 212, 255, 0.1);
    border-left-color: var(--primary);
    box-shadow: inset 0 0 20px rgba(0, 212, 255, 0.2);
}

.nav-item i {
    width: 20px;
    text-align: center;
}

/* --- MAIN CONTAINER --- */
.main-container {
    display: flex;
    flex: 1;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* CONTENT AREA */
.content-area {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    background: transparent;
}

/* Scrollbar personnalisée */
.content-area::-webkit-scrollbar {
    width: 8px;
}

.content-area::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.content-area::-webkit-scrollbar-thumb {
    background: var(--grad-neon);
    border-radius: 10px;
    box-shadow: var(--neon-blue);
}

/* --- TITRES ET HEADERS --- */
.view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(20, 27, 61, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

h2 {
    margin: 0;
    font-size: 2rem;
    font-weight: 900;
    background: var(--grad-neon);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--light);
    font-weight: 700;
}

.modern-section-title {
    font-size: 1.3em;
    font-weight: 800;
    color: var(--primary);
    margin: 40px 0 20px 0;
    padding: 15px 20px;
    background: rgba(0, 212, 255, 0.05);
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.1);
}

/* --- BOUTONS HIGH-TECH --- */
.btn {
    padding: 12px 24px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 1px;
}

.btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
}

.btn-primary {
    background: var(--grad-neon);
    color: var(--dark-bg);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: var(--primary);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--primary);
}

.btn-ia {
    background: var(--grad-cyber);
    color: white;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}

/* --- HYBRID GRAPHS HIGH-TECH --- */
.hybrid-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

.hybrid-card {
    background: rgba(20, 27, 61, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 25px;
    border-radius: 20px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 0 20px rgba(0, 212, 255, 0.05);
    transition: all 0.3s ease;
}

.hybrid-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 12px 40px rgba(0, 212, 255, 0.3), inset 0 0 30px rgba(0, 212, 255, 0.1);
}

.chart-title {
    margin-bottom: 20px;
    padding-bottom: 15px;
    font-weight: 700;
    color: var(--primary);
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.hybrid-container {
    position: relative;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 212, 255, 0.1);
}

.background-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.6;
}

.foreground-layer {
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 15px rgba(0, 212, 255, 0.5));
}

/* Donut CSS High-Tech */
.donut-chart-css.hybrid-donut {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    position: relative;
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.5));
    animation: rotate-slow 20s linear infinite;
}

@keyframes rotate-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.donut-chart-css.hybrid-donut::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110px;
    height: 110px;
    background: var(--dark-card);
    border-radius: 50%;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.donut-center-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 3;
    animation: none;
}

.donut-value {
    font-size: 2rem;
    font-weight: 900;
    display: block;
    line-height: 1;
    background: var(--grad-neon);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.donut-label {
    font-size: 0.75em;
    color: var(--gray);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Barres mensuelles */
.bar-chart-container {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 100%;
    padding-bottom: 25px;
}

.bar-col {
    width: 12%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.bar {
    width: 100%;
    background: var(--grad-neon);
    border-radius: 8px 8px 0 0;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    transition: all 0.3s ease;
}

.bar:hover {
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.8);
    transform: scaleY(1.05);
}

.bar-col span {
    position: absolute;
    bottom: -22px;
    width: 100%;
    text-align: center;
    font-size: 0.7em;
    color: var(--gray);
    font-weight: 600;
}

.hybrid-footer {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    font-size: 0.85em;
    font-weight: 600;
    color: var(--gray);
}

.legend-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 10px currentColor;
}

/* --- DUAL PANE SST/ENV --- */
.dual-pane-modern {
    display: flex;
    gap: 25px;
    margin-top: 30px;
}

.pane-modern {
    flex: 1;
    background: rgba(20, 27, 61, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: all 0.3s ease;
}

.pane-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 212, 255, 0.3);
}

.sst-accent {
    border-top: 3px solid var(--sst-color);
}

.env-accent {
    border-top: 3px solid var(--env-color);
}

.pane-header-modern {
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    font-weight: 800;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    display: flex;
    gap: 12px;
    align-items: center;
    color: var(--light);
}

.pane-body-modern {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mini-kpi-grid-modern {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.mini-kpi-modern {
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.mini-kpi-modern:hover {
    background: rgba(0, 212, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.mini-kpi-modern .label {
    display: block;
    font-size: 0.75em;
    color: var(--gray);
    margin-bottom: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mini-kpi-modern b {
    font-size: 1.8rem;
    background: var(--grad-neon);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.chart-row-modern {
    display: flex;
    gap: 20px;
}

.chart-col {
    flex: 1;
}

.donut-wrapper-modern {
    display: flex;
    justify-content: center;
    margin: 15px 0;
}

.donut-chart-css.small {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    position: relative;
    filter: drop-shadow(0 0 15px rgba(0, 212, 255, 0.4));
}

.donut-chart-css.small::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: var(--dark-card);
    border-radius: 50%;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.5);
}

.donut-legend {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.85em;
    margin-top: 10px;
}

.chart-curve-container.small-curve {
    height: 100px;
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 255, 0.1);
}

.curve-svg {
    width: 100%;
    height: 100%;
}

/* URGENCES */
.urgency-box-modern h4 {
    margin: 0 0 15px 0;
    font-size: 0.9em;
    color: var(--danger);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.urgency-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.urgent-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(255, 0, 85, 0.1);
    border-left: 3px solid var(--danger);
    border-radius: 8px;
    font-size: 0.85em;
    border: 1px solid rgba(255, 0, 85, 0.2);
    transition: all 0.3s ease;
}

.urgent-item:hover {
    background: rgba(255, 0, 85, 0.15);
    box-shadow: 0 0 20px rgba(255, 0, 85, 0.3);
}

/* --- CARDS GÉNÉRIQUES --- */
.card {
    background: rgba(20, 27, 61, 0.6);
    backdrop-filter: blur(20px);
    padding: 25px;
    border-radius: 20px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 212, 255, 0.3);
}

/* BADGES */
.badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7em;
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-danger {
    background: var(--danger);
    box-shadow: 0 0 15px rgba(255, 0, 85, 0.5);
}

.badge-primary {
    background: var(--primary);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

.badge-warning {
    background: var(--warning);
    box-shadow: 0 0 15px rgba(255, 170, 0, 0.5);
}

/* MODAL */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 39, 0.8);
    z-index: 2000;
    backdrop-filter: blur(10px);
}

.modal-box {
    background: rgba(20, 27, 61, 0.95);
    backdrop-filter: blur(20px);
    width: 500px;
    margin: 100px auto;
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 212, 255, 0.2);
    overflow: hidden;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.modal-head {
    padding: 25px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    color: var(--primary);
}

.modal-body {
    padding: 30px;
    color: var(--light);
}

.close {
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--gray);
    transition: all 0.3s ease;
}

.close:hover {
    color: var(--danger);
    transform: rotate(90deg);
}

/* UTILS */
table {
    width: 100%;
    border-collapse: collapse;
}

td,
th {
    padding: 12px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    text-align: left;
    color: var(--light);
}

th {
    color: var(--primary);
    font-weight: 700;
    flex: 1;
}

.donut-wrapper-modern {
    display: flex;
    justify-content: center;
    margin: 15px 0;
}

.donut-chart-css.small {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    position: relative;
    filter: drop-shadow(0 0 15px rgba(0, 212, 255, 0.4));
}

.donut-chart-css.small::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: var(--dark-card);
    border-radius: 50%;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.5);
}

.donut-legend {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.85em;
    margin-top: 10px;
}

.chart-curve-container.small-curve {
    height: 100px;
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 255, 0.1);
}

.curve-svg {
    width: 100%;
    height: 100%;
}

/* URGENCES */
.urgency-box-modern h4 {
    margin: 0 0 15px 0;
    font-size: 0.9em;
    color: var(--danger);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.urgency-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.urgent-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(255, 0, 85, 0.1);
    border-left: 3px solid var(--danger);
    border-radius: 8px;
    font-size: 0.85em;
    border: 1px solid rgba(255, 0, 85, 0.2);
    transition: all 0.3s ease;
}

.urgent-item:hover {
    background: rgba(255, 0, 85, 0.15);
    box-shadow: 0 0 20px rgba(255, 0, 85, 0.3);
}

/* --- CARDS GÉNÉRIQUES --- */
.card {
    background: rgba(20, 27, 61, 0.6);
    backdrop-filter: blur(20px);
    padding: 25px;
    border-radius: 20px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 212, 255, 0.3);
}

/* BADGES */
.badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7em;
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-danger {
    background: var(--danger);
    box-shadow: 0 0 15px rgba(255, 0, 85, 0.5);
}

.badge-primary {
    background: var(--primary);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

.badge-warning {
    background: var(--warning);
    box-shadow: 0 0 15px rgba(255, 170, 0, 0.5);
}

/* MODAL */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 39, 0.8);
    z-index: 2000;
    backdrop-filter: blur(10px);
}

.modal-box {
    background: rgba(20, 27, 61, 0.95);
    backdrop-filter: blur(20px);
    width: 500px;
    margin: 100px auto;
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 212, 255, 0.2);
    overflow: hidden;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.modal-head {
    padding: 25px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    color: var(--primary);
}

.modal-body {
    padding: 30px;
    color: var(--light);
}

.close {
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--gray);
    transition: all 0.3s ease;
}

.close:hover {
    color: var(--danger);
    transform: rotate(90deg);
}

/* UTILS */
table {
    width: 100%;
    border-collapse: collapse;
}

td,
th {
    padding: 12px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    text-align: left;
    color: var(--light);
}

th {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 1px;
}

/* --- AUDIT & CONFORMITÉ HIGH-TECH --- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.thema-card {
    background: rgba(20, 27, 61, 0.6);
    backdrop-filter: blur(20px);
    padding: 25px;
    border-radius: 16px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    border-left: 4px solid #ccc;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.thema-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.thema-card:hover::before {
    opacity: 1;
}

.thema-card:hover {
    transform: translateY(-5px);
    border-left-color: var(--primary);
    box-shadow: 0 12px 40px rgba(0, 212, 255, 0.4), 0 0 30px rgba(0, 212, 255, 0.2);
}

.thema-header {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.1em;
}

.thema-body {
    color: var(--light);
}

.thema-body strong {
    color: var(--primary);
    font-size: 1.05em;
}

.section-title-audit {
    font-weight: 800;
    color: var(--primary);
    margin: 40px 0 20px 0;
    padding: 15px 20px;
    background: rgba(0, 212, 255, 0.05);
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.1em;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.1);
}

/* Liste d'audit détaillée */
.audit-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 25px;
}

.article-card {
    background: rgba(20, 27, 61, 0.6);
    backdrop-filter: blur(20px);
    padding: 25px;
    border-radius: 16px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-left: 4px solid #ccc;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.3);
}

.card-valid {
    border-left-color: var(--secondary);
    background: rgba(0, 255, 136, 0.05);
    border-color: rgba(0, 255, 136, 0.3);
}

.card-non-conforme {
    border-left-color: var(--danger);
    background: rgba(255, 0, 85, 0.05);
    border-color: rgba(255, 0, 85, 0.3);
}

.card-en-cours {
    border-left-color: var(--warning);
    background: rgba(255, 170, 0, 0.05);
    border-color: rgba(255, 170, 0, 0.3);
}

.art-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.art-header strong {
    color: var(--primary);
    font-size: 1.1em;
}

.art-text {
    background: rgba(0, 0, 0, 0.3);
    padding: 18px;
    border-radius: 12px;
    font-style: italic;
    color: var(--gray);
    border: 1px solid rgba(0, 212, 255, 0.1);
    line-height: 1.6;
}

.art-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.status-select {
    padding: 10px 15px;
    border-radius: 10px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    background: rgba(0, 0, 0, 0.3);
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.status-select:hover {
    background: rgba(0, 212, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.status-select option {
    background: var(--dark-card);
    color: var(--light);
}

/* --- PLAN D'ACTIONS HIGH-TECH --- */
.view-switcher {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 212, 255, 0.2);
    padding: 6px;
    border-radius: 12px;
    display: inline-flex;
    backdrop-filter: blur(10px);
}

.switch-btn {
    padding: 10px 20px;
    border: none;
    background: transparent;
    font-weight: 700;
    color: var(--gray);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 1px;
}

.switch-btn.active {
    background: var(--grad-neon);
    color: var(--dark-bg);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
}

.switch-btn:hover:not(.active) {
    color: var(--primary);
    background: rgba(0, 212, 255, 0.1);
}

.action-item {
    background: rgba(20, 27, 61, 0.6);
    backdrop-filter: blur(20px);
    padding: 25px;
    border-radius: 16px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
    border-left: 4px solid #ccc;
    transition: all 0.3s ease;
}

.action-item:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.3);
}

.action-item.retard {
    border-left-color: var(--danger);
    background: rgba(255, 0, 85, 0.05);
}

.action-item.en-cours {
    border-left-color: var(--warning);
    background: rgba(255, 170, 0, 0.05);
}

.action-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.action-header strong {
    color: var(--primary);
    font-size: 1.1em;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    min-width: 250px;
}

.form-group label {
    display: block;
    font-size: 0.75em;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
    color: var(--light);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    background: rgba(0, 212, 255, 0.05);
}

.form-control::placeholder {
    color: var(--gray);
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

/* KANBAN HIGH-TECH */
.kanban-board {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    padding-bottom: 20px;
}

.kanban-board::-webkit-scrollbar {
    height: 8px;
}

.kanban-board::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.kanban-board::-webkit-scrollbar-thumb {
    background: var(--grad-neon);
    border-radius: 10px;
}

.kanban-col {
    min-width: 320px;
    background: rgba(20, 27, 61, 0.4);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.kanban-title {
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(0, 212, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9em;
}

.kanban-card {
    background: rgba(20, 27, 61, 0.8);
    backdrop-filter: blur(20px);
    padding: 18px;
    margin-bottom: 15px;
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border-left: 3px solid #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.kanban-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
    border-left-color: var(--primary);
}

.kanban-card.red {
    border-left-color: var(--danger);
    background: rgba(255, 0, 85, 0.05);
}

.kanban-card strong {
    color: var(--primary);
    display: block;
    margin-bottom: 8px;
}

.kanban-card small {
    color: var(--gray);
    line-height: 1.5;
}

/* --- VEILLE RÉGLEMENTAIRE HIGH-TECH --- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.news-card {
    background: rgba(20, 27, 61, 0.6);
    backdrop-filter: blur(20px);
    padding: 25px;
    border-radius: 16px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.news-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--grad-neon);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.news-card:hover::before {
    transform: scaleX(1);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 212, 255, 0.4);
    border-color: var(--primary);
}

.news-card h4 {
    color: var(--primary);
    margin: 15px 0;
    font-size: 1.2em;
    font-weight: 700;
}

.news-card p {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 20px;
}

.news-card .badge {
    margin-bottom: 10px;
    display: inline-block;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.8em;
}

/* --- PARAMÈTRES HIGH-TECH --- */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

/* Animations globales */
@keyframes glow-pulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(0, 212, 255, 0.6);
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .hybrid-grid {
        grid-template-columns: 1fr;
    }

    .dual-pane-modern {
        flex-direction: column;
    }

    .form-row {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 200px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }



    /* KANBAN HIGH-TECH */
    .kanban-board {
        display: flex;
        gap: 25px;
        overflow-x: auto;
        padding-bottom: 20px;
    }

    .kanban-board::-webkit-scrollbar {
        height: 8px;
    }

    .kanban-board::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.2);
    }

    .kanban-board::-webkit-scrollbar-thumb {
        background: var(--grad-neon);
        border-radius: 10px;
    }

    .kanban-col {
        min-width: 320px;
        background: rgba(20, 27, 61, 0.4);
        backdrop-filter: blur(10px);
        padding: 20px;
        border-radius: 16px;
        border: 1px solid rgba(0, 212, 255, 0.2);
    }

    .kanban-title {
        font-weight: 800;
        color: var(--primary);
        margin-bottom: 20px;
        padding-bottom: 15px;
        border-bottom: 2px solid rgba(0, 212, 255, 0.2);
        text-transform: uppercase;
        letter-spacing: 2px;
        font-size: 0.9em;
    }

    .kanban-card {
        background: rgba(20, 27, 61, 0.8);
        backdrop-filter: blur(20px);
        padding: 18px;
        margin-bottom: 15px;
        border-radius: 12px;
        border: 1px solid rgba(0, 212, 255, 0.2);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        border-left: 3px solid #ccc;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .kanban-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
        border-left-color: var(--primary);
    }

    .kanban-card.red {
        border-left-color: var(--danger);
        background: rgba(255, 0, 85, 0.05);
    }

    .kanban-card strong {
        color: var(--primary);
        display: block;
        margin-bottom: 8px;
    }

    .kanban-card small {
        color: var(--gray);
        line-height: 1.5;
    }

    /* --- VEILLE RÉGLEMENTAIRE HIGH-TECH --- */
    .news-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 25px;
        margin-top: 25px;
    }

    .news-card {
        background: rgba(20, 27, 61, 0.6);
        backdrop-filter: blur(20px);
        padding: 25px;
        border-radius: 16px;
        border: 1px solid rgba(0, 212, 255, 0.2);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }

    .news-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background: var(--grad-neon);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.3s ease;
    }

    .news-card:hover::before {
        transform: scaleX(1);
    }

    .news-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 40px rgba(0, 212, 255, 0.4);
        border-color: var(--primary);
    }

    .news-card h4 {
        color: var(--primary);
        margin: 15px 0;
        font-size: 1.2em;
        font-weight: 700;
    }

    .news-card p {
        color: var(--gray);
        line-height: 1.6;
        margin-bottom: 20px;
    }

    .news-card .badge {
        margin-bottom: 10px;
        display: inline-block;
    }

    .btn-sm {
        padding: 8px 16px;
        font-size: 0.8em;
    }

    /* --- PARAMÈTRES HIGH-TECH --- */
    .settings-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
        gap: 25px;
        margin-top: 25px;
    }

    /* Animations globales */
    @keyframes glow-pulse {

        0%,
        100% {
            box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
        }

        50% {
            box-shadow: 0 0 40px rgba(0, 212, 255, 0.6);
        }
    }

    /* Responsive */
    @media (max-width: 1200px) {
        .hybrid-grid {
            grid-template-columns: 1fr;
        }

        .dual-pane-modern {
            flex-direction: column;
        }

        .form-row {
            flex-direction: column;
        }
    }

    @media (max-width: 768px) {
        .sidebar {
            width: 200px;
        }

        .cards-grid {
            grid-template-columns: 1fr;
        }

        .news-grid {
            grid-template-columns: 1fr;
        }

        .settings-grid {
            grid-template-columns: 1fr;
        }

        .kanban-board {
            flex-direction: column;
        }

        .kanban-col {
            min-width: 100%;
        }
    }

    /* ============================================
   PHASE 1 - NOUVELLES FONCTIONNALITÉS
   ============================================ */

    /* --- RECHERCHE GLOBALE --- */
    .global-search {
        position: relative;
        flex: 1;
        max-width: 500px;
        margin: 0 20px;
    }

    .global-search i {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--gray);
        z-index: 2;
    }

    .global-search input {
        width: 100%;
        padding: 12px 15px 12px 45px;
        border: 1px solid rgba(0, 212, 255, 0.3);
        border-radius: 12px;
        background: rgba(0, 0, 0, 0.3);
        color: var(--light);
        font-size: 0.95em;
        backdrop-filter: blur(10px);
        transition: all 0.3s ease;
    }

    .global-search input:focus {
        border-color: var(--primary);
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
        background: rgba(0, 212, 255, 0.05);
    }

    .global-search input::placeholder {
        color: var(--gray);
    }

    .search-results-dropdown {
        display: none;
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        background: rgba(20, 27, 61, 0.98);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(0, 212, 255, 0.3);
        border-radius: 12px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
        max-height: 400px;
        overflow-y: auto;
        z-index: 1000;
    }

    .search-result-item {
        display: flex;
        align-items: center;
        gap: 15px;
        padding: 15px;
        border-bottom: 1px solid rgba(0, 212, 255, 0.1);
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .search-result-item:hover {
        background: rgba(0, 212, 255, 0.1);
    }

    .search-result-item:last-child {
        border-bottom: none;
    }

    .search-result-icon {
        width: 40px;
        height: 40px;
        background: rgba(0, 212, 255, 0.1);
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--primary);
    }

    .search-result-content {
        flex: 1;
    }

    .search-result-title {
        font-weight: 700;
        color: var(--light);
        margin-bottom: 4px;
    }

    .search-result-subtitle {
        font-size: 0.85em;
        color: var(--gray);
    }

    .search-result-badge {
        padding: 4px 10px;
        background: rgba(0, 212, 255, 0.2);
        color: var(--primary);
        border-radius: 8px;
        font-size: 0.75em;
        font-weight: 700;
    }

    .search-no-results {
        padding: 30px;
        text-align: center;
        color: var(--gray);
    }

    /* --- PANEL DE NOTIFICATIONS --- */
    .notification-panel {
        position: fixed;
        top: 70px;
        right: -400px;
        width: 400px;
        height: calc(100vh - 70px);
        background: rgba(20, 27, 61, 0.98);
        backdrop-filter: blur(20px);
        border-left: 1px solid rgba(0, 212, 255, 0.3);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
        transition: right 0.3s ease;
        z-index: 999;
        display: flex;
        flex-direction: column;
    }

    .notification-panel.open {
        right: 0;
    }

    .notification-header {
        padding: 20px;
        border-bottom: 1px solid rgba(0, 212, 255, 0.2);
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .notification-header h3 {
        margin: 0;
        color: var(--primary);
        font-size: 1.2em;
    }

    .notification-filters {
        display: flex;
        gap: 10px;
    }

    .filter-btn {
        padding: 6px 12px;
        border: 1px solid rgba(0, 212, 255, 0.3);
        background: transparent;
        color: var(--gray);
        border-radius: 8px;
        font-size: 0.85em;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .filter-btn.active {
        background: var(--grad-neon);
        color: var(--dark-bg);
        border-color: transparent;
    }

    .filter-btn:hover:not(.active) {
        background: rgba(0, 212, 255, 0.1);
        color: var(--primary);
    }

    .close-panel {
        background: transparent;
        border: none;
        color: var(--gray);
        font-size: 1.2em;
        cursor: pointer;
        padding: 5px 10px;
        transition: all 0.3s ease;
    }

    .close-panel:hover {
        color: var(--danger);
        transform: rotate(90deg);
    }

    .notification-list {
        flex: 1;
        overflow-y: auto;
        padding: 10px;
    }

    .notification-list::-webkit-scrollbar {
        width: 6px;
    }

    .notification-list::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.2);
    }

    .notification-list::-webkit-scrollbar-thumb {
        background: var(--grad-neon);
        border-radius: 10px;
    }

    .notification-item {
        display: flex;
        align-items: flex-start;
        gap: 15px;
        padding: 15px;
        margin-bottom: 10px;
        background: rgba(0, 0, 0, 0.3);
        border-radius: 12px;
        border-left: 3px solid var(--primary);
        cursor: pointer;
        transition: all 0.3s ease;
        position: relative;
    }

    .notification-item:hover {
        background: rgba(0, 212, 255, 0.1);
        transform: translateX(-5px);
    }

    .notification-item.unread {
        background: rgba(0, 212, 255, 0.05);
        border-left-color: var(--primary);
    }

    .notification-item.read {
        opacity: 0.7;
        border-left-color: var(--gray);
    }

    .notif-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .notif-icon.audit {
        background: rgba(0, 212, 255, 0.2);
        color: var(--primary);
    }

    .notif-icon.action {
        background: rgba(255, 170, 0, 0.2);
        color: var(--warning);
    }

    .notif-icon.alert {
        background: rgba(255, 0, 85, 0.2);
        color: var(--danger);
    }

    .notif-icon.info {
        background: rgba(0, 255, 136, 0.2);
        color: var(--secondary);
    }

    .notif-content {
        flex: 1;
    }

    .notif-title {
        font-weight: 700;
        color: var(--light);
        margin-bottom: 5px;
    }

    .notif-details {
        font-size: 0.85em;
        color: var(--gray);
    }

    .notif-badge {
        width: 10px;
        height: 10px;
        background: var(--primary);
        border-radius: 50%;
        position: absolute;
        top: 15px;
        right: 15px;
        box-shadow: 0 0 10px var(--primary);
    }

    .no-notifications {
        padding: 40px 20px;
        text-align: center;
        color: var(--gray);
    }

    /* --- GRAPHIQUES INTERACTIFS --- */
    .chart-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(10, 14, 39, 0.9);
        backdrop-filter: blur(10px);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 2000;
        animation: fadeIn 0.3s ease;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

    .chart-modal-content {
        background: rgba(20, 27, 61, 0.98);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(0, 212, 255, 0.3);
        border-radius: 20px;
        max-width: 800px;
        width: 90%;
        max-height: 80vh;
        overflow-y: auto;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    }

    .chart-modal-header {
        padding: 25px;
        border-bottom: 1px solid rgba(0, 212, 255, 0.2);
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .chart-modal-header h3 {
        margin: 0;
        color: var(--primary);
    }

    .chart-modal-header button {
        background: transparent;
        border: none;
        color: var(--gray);
        font-size: 1.5em;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .chart-modal-header button:hover {
        color: var(--danger);
        transform: rotate(90deg);
    }

    .chart-modal-body {
        padding: 30px;
        color: var(--light);
    }

    @media print {

        .sidebar,
        .btn,
        .view-switcher,
        .file-input-zone,
        .notification-panel,
        .global-search {
            display: none !important;
        }

        .content-area {
            padding: 0;
        }
    }


    /* === LSST Mini Stats Cards === */
    .stat-card-mini {
        background: var(--dark-card);
        border-radius: 12px;
        padding: 20px;
        text-align: center;
        border: 1px solid rgba(0, 212, 255, 0.2);
        transition: all 0.3s ease;
    }

    .stat-card-mini:hover {
        transform: translateY(-3px);
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
    }

    .stat-value-mini {
        font-size: 1.8rem;
        font-weight: 900;
        color: var(--primary);
        line-height: 1;
    }

    .stat-label-mini {
        color: var(--gray);
        font-size: 0.75rem;
        margin-top: 8px;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    /* === LSST Status Select === */
    .status-select-lsst {
        appearance: none;
        -webkit-appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2300d4ff' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 12px center;
        transition: all 0.3s ease;
    }

    .status-select-lsst:hover {
        border-color: var(--primary);
    }

    .status-select-lsst:focus {
        outline: none;
        box-shadow: var(--neon-blue);
    }