/* ======================================
   PROMEDIA Admin Panel — Modern UI v3.0
   ====================================== */

/* ─── DESIGN TOKENS ─────────────────────── */
:root {
    --admin-sidebar: #0b1120;
    --admin-sidebar-hover: #131c31;
    --admin-sidebar-active-bg: rgba(59,130,246,0.12);
    --admin-sidebar-active-border: #3b82f6;
    --admin-sidebar-active-text: #60a5fa;
    --admin-sidebar-width: 260px;
    --admin-sidebar-collapsed: 72px;

    --admin-bg: #f1f5f9;
    --admin-card: #ffffff;
    --admin-card-hover: #f8fafc;
    --admin-text: #0f172a;
    --admin-text-secondary: #64748b;
    --admin-text-muted: #94a3b8;
    --admin-border: #e2e8f0;
    --admin-border-light: #f1f5f9;

    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --accent-light: rgba(59,130,246,0.08);
    --accent-glow: rgba(59,130,246,0.2);

    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #06b6d4;
    --purple: #8b5cf6;

    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);

    --transition-fast: 0.15s ease;
    --transition: 0.25s cubic-bezier(.4,0,.2,1);
    --transition-slow: 0.4s cubic-bezier(.4,0,.2,1);

    --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --topbar-height: 64px;
}

/* ─── BASE ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
body {
    background: var(--admin-bg);
    font-family: var(--font);
    color: var(--admin-text);
    font-size: 0.9rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ─── SCROLLBAR ─────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
.admin-sidebar ::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); }
.admin-sidebar ::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ─── AUTH PAGES ────────────────────────── */
:root {
    --auth-brand: #003d7a;
    --auth-brand-2: #00509e;
    --auth-brand-3: #0066cc;
    --auth-glow: rgba(0,61,122,0.35);
    --auth-soft: #e8f0fe;
}
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 24px;
    font-family: var(--font);
    background:
        radial-gradient(1100px 550px at 85% -10%, rgba(0,102,204,0.35), transparent 60%),
        radial-gradient(900px 500px at -10% 110%, rgba(0,133,255,0.28), transparent 60%),
        linear-gradient(135deg, #03274f 0%, #003d5a 45%, #00509e 100%);
}
.login-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(700px 420px at 50% 40%, #000 30%, transparent 80%);
    mask-image: radial-gradient(700px 420px at 50% 40%, #000 30%, transparent 80%);
}
.auth-deco {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
.auth-deco::before {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    top: -140px;
    right: -120px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(96,176,244,0.28), rgba(0,61,122,0.10) 60%, transparent 75%);
    animation: authFloat 18s ease-in-out infinite alternate;
}
.auth-deco::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    bottom: -120px;
    left: -110px;
    border: 3px solid rgba(255,255,255,0.12);
    border-radius: 50%;
    animation: spinSlow 30s linear infinite;
}
@keyframes authFloat { from { transform: translateY(0) translateX(0) scale(1); } to { transform: translateY(36px) translateX(-24px) scale(1.08); } }
@keyframes spinSlow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes logoPulse {
    0%, 100% { box-shadow: 0 10px 28px rgba(0,61,122,0.35); transform: translateY(0); }
    50% { box-shadow: 0 14px 34px rgba(0,61,122,0.5); transform: translateY(-3px); }
}

.login-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    padding: 2.6rem 2.2rem 2.2rem;
    box-shadow: 0 30px 70px rgba(3,39,79,0.45), 0 0 0 1px rgba(255,255,255,0.15);
    animation: loginFadeIn 0.6s ease-out;
}
.login-card.register-card { max-width: 560px; }
@keyframes loginFadeIn { from { opacity: 0; transform: translateY(30px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.login-logo {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--auth-brand-2), var(--auth-brand));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.1rem;
    box-shadow: 0 10px 28px rgba(0,61,122,0.35), inset 0 1px 0 rgba(255,255,255,0.2);
    animation: logoPulse 2.6s ease-in-out infinite;
}
.login-title { font-size: 1.55rem; font-weight: 800; letter-spacing: -0.3px; color: #111c2e; margin-bottom: 0.25rem; }
.login-subtitle { color: #6b7a8f; font-size: 0.9rem; margin-bottom: 1.6rem; }
.login-card .form-label { color: #4a5871; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 0.45rem; }
.login-card .input-group { box-shadow: 0 1px 2px rgba(0,0,0,0.03); border-radius: 14px; transition: all 0.25s; }
.login-card .input-group:focus-within { box-shadow: 0 0 0 4px rgba(0,61,122,0.12); }
.login-card .form-control { border: 1.5px solid #dfe6f0; border-left: none; border-radius: 0 14px 14px 0; padding: 0.72rem 1rem; font-size: 0.95rem; background: #f6f9fc; transition: border-color 0.2s, background 0.2s; }
.login-card .form-control:focus { border-color: var(--auth-brand-2); box-shadow: none; background: #fff; }
.login-card .input-group-text { background: #f6f9fc; border: 1.5px solid #dfe6f0; border-right: none; border-radius: 14px 0 0 14px; color: var(--auth-brand); padding: 0.72rem 1rem; font-size: 1rem; }
.login-card .input-group .form-control::placeholder { color: #a3b0c2; }
.login-card .pw-toggle { cursor: pointer; border: 1.5px solid #dfe6f0; border-left: none; border-radius: 0 14px 14px 0; background: #f6f9fc; color: #6b7a8f; padding: 0.72rem 1rem; font-size: 1rem; transition: color 0.2s; }
.login-card .pw-toggle:hover { color: var(--auth-brand); }
.login-card .pw-toggle + .form-control, .login-card .form-control.pw-field { border-right: none; border-radius: 14px 0 0 14px; }
.login-card .btn-login { width: 100%; padding: 0.8rem; border-radius: 14px; background: linear-gradient(135deg, var(--auth-brand-2), var(--auth-brand)); border: none; color: #fff; font-weight: 700; font-size: 1rem; letter-spacing: 0.2px; transition: all 0.3s; position: relative; overflow: hidden; box-shadow: 0 8px 20px rgba(0,61,90,0.25); }
.login-card .btn-login::after { content: ''; position: absolute; top: 0; left: -80%; width: 50%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent); transform: skewX(-20deg); transition: left 0.5s; }
.login-card .btn-login:hover::after { left: 130%; }
.login-card .btn-login:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,61,90,0.35); }
.login-card .btn-login:active { transform: translateY(0); }
.login-card .btn-login.loading { pointer-events: none; opacity: 0.85; }
.login-card .btn-login .spinner-border-sm { margin-right: 8px; vertical-align: middle; }
.login-card .auth-link { color: #6b7a8f; font-size: 0.86rem; text-decoration: none; transition: color 0.2s; }
.login-card .auth-link:hover { color: var(--auth-brand); }
.login-card .auth-actions { border-top: 1px solid #edf1f6; margin-top: 1.4rem; padding-top: 1.1rem; }
.login-card .auth-actions a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.login-card .btn-login.logout-btn { width: auto; padding: 0.6rem 1.4rem; }
.strength-meter { display: flex; gap: 4px; margin-top: 8px; }
.strength-meter .seg { flex: 1; height: 5px; border-radius: 4px; background: #e6ecf4; transition: background 0.3s; }
.strength-meter.has-1 .seg:nth-child(-n+1) { background: #ef4444; }
.strength-meter.has-2 .seg:nth-child(-n+2) { background: #f59e0b; }
.strength-meter.has-3 .seg:nth-child(-n+3) { background: #10b981; }
.strength-meter.has-4 .seg:nth-child(-n+4) { background: #0ea5e9; }
.strength-label { font-size: 0.75rem; color: #6b7a8f; margin-top: 4px; min-height: 1rem; }
.login-card .alert { border: none; font-size: 0.82rem; }
.login-card .alert-danger { background: #fef2f2; color: #b91c1c; }
.login-card .alert-success { background: #ecfdf5; color: #047857; }
@media (max-width: 576px) {
    .login-page { padding: 16px; align-items: flex-start; padding-top: 5vh; overflow-y: auto; }
    .login-card { padding: 1.8rem 1.3rem 1.5rem; border-radius: 20px; }
    .login-logo { width: 60px; height: 60px; border-radius: 17px; margin-bottom: 0.9rem; }
    .login-title { font-size: 1.3rem; }
    .login-subtitle { font-size: 0.85rem; margin-bottom: 1.2rem; }
    .login-card .form-control, .login-card .input-group-text, .login-card .pw-toggle { padding: 0.62rem 0.85rem; font-size: 0.92rem; }
    .login-card .btn-login { padding: 0.72rem; font-size: 0.95rem; }
    .login-card .form-label { font-size: 0.74rem; }
    .login-card .row.g-3 { --bs-gutter-x: 0.6rem; }
}
@media (max-width: 360px) {
    .login-page { padding: 12px; }
    .login-card { padding: 1.5rem 1.1rem 1.3rem; }
    .login-card .auth-actions { flex-direction: column; gap: 8px; align-items: center; text-align: center; }
}

/* ─── ADMIN LAYOUT ──────────────────────── */
.admin-wrapper { display: flex; min-height: 100vh; }

/* ─── SIDEBAR ───────────────────────────── */
.admin-sidebar {
    width: var(--admin-sidebar-width);
    background: var(--admin-sidebar);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1000;
    transition: transform var(--transition), width var(--transition);
    border-right: 1px solid rgba(255,255,255,0.04);
    overflow: hidden;
}
.admin-sidebar-brand {
    padding: 1rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    min-height: 65px;
    flex-shrink: 0;
}
.admin-sidebar-brand img { height: 30px; flex-shrink: 0; border-radius: 6px; }
.admin-sidebar-brand span { color: rgba(255,255,255,0.85); font-weight: 700; font-size: 0.72rem; line-height: 1.3; letter-spacing: 0.2px; }

/* Sidebar search */
.admin-sidebar-search {
    padding: 0.6rem 1rem;
    flex-shrink: 0;
}
.admin-sidebar-search input {
    width: 100%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-sm);
    color: rgba(255,255,255,0.8);
    font-size: 0.8rem;
    padding: 0.45rem 0.7rem 0.45rem 2rem;
    transition: all var(--transition);
    outline: none;
}
.admin-sidebar-search input::placeholder { color: rgba(255,255,255,0.3); }
.admin-sidebar-search input:focus { background: rgba(255,255,255,0.1); border-color: rgba(59,130,246,0.4); box-shadow: 0 0 0 2px rgba(59,130,246,0.1); }
.admin-sidebar-search { position: relative; }
.admin-sidebar-search::before {
    content: '\F2D5';
    font-family: 'bootstrap-icons';
    position: absolute;
    left: 1.6rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.3);
    font-size: 0.8rem;
    pointer-events: none;
}

.admin-sidebar-nav { flex: 1; padding: 0.5rem 0; overflow-y: auto; overflow-x: hidden; }

/* Collapsible nav sections */
.nav-section {
    padding: 0.65rem 1.2rem 0.3rem;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(255,255,255,0.25);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    transition: color var(--transition);
}
.nav-section:hover { color: rgba(255,255,255,0.4); }
.nav-section .nav-chevron {
    font-size: 0.6rem;
    transition: transform var(--transition);
    opacity: 0.5;
}
.nav-section.collapsed .nav-chevron { transform: rotate(-90deg); }
.nav-section.collapsed + .nav-section-items { display: none; }

.nav-section-items { overflow: hidden; transition: max-height var(--transition-slow); }

.admin-sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.55rem 1.2rem;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all var(--transition);
    border-left: 3px solid transparent;
    position: relative;
    white-space: nowrap;
}
.admin-sidebar-nav a:hover {
    background: var(--admin-sidebar-hover);
    color: rgba(255,255,255,0.85);
    border-left-color: rgba(255,255,255,0.1);
}
.admin-sidebar-nav a.active {
    background: var(--admin-sidebar-active-bg);
    color: var(--admin-sidebar-active-text);
    border-left-color: var(--admin-sidebar-active-border);
    font-weight: 600;
}
.admin-sidebar-nav a.active::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    bottom: 20%;
    width: 3px;
    background: var(--admin-sidebar-active-border);
    border-radius: 3px 0 0 3px;
}
.admin-sidebar-nav a i { width: 20px; text-align: center; font-size: 1rem; flex-shrink: 0; }
.admin-sidebar-nav a .badge { margin-left: auto; font-size: 0.65rem; padding: 0.25em 0.55em; }

/* Sidebar footer */
.admin-sidebar-footer {
    padding: 0.8rem 1.2rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
}
.admin-sidebar-footer a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    font-size: 0.82rem;
    padding: 0.45rem 0;
    transition: color var(--transition);
}
.admin-sidebar-footer a:hover { color: rgba(255,255,255,0.8); }
.admin-sidebar-footer a:last-child:hover { color: #f87171; }

/* ─── MAIN CONTENT ──────────────────────── */
.admin-main {
    flex: 1;
    margin-left: var(--admin-sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left var(--transition);
}

/* ─── TOPBAR ────────────────────────────── */
.admin-topbar {
    background: var(--admin-card);
    padding: 0 2rem;
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-xs);
    border-bottom: 1px solid var(--admin-border-light);
    position: sticky;
    top: 0;
    z-index: 999;
    backdrop-filter: blur(12px);
    background: rgba(255,255,255,0.85);
}
.admin-topbar-left { display: flex; align-items: center; gap: 16px; }
.admin-topbar-left h4 { margin: 0; font-size: 1.15rem; font-weight: 700; color: var(--admin-text); letter-spacing: -0.3px; }
.admin-topbar-left .page-title { color: var(--admin-text-secondary); font-size: 0.8rem; display: flex; align-items: center; gap: 4px; }
.admin-topbar-right { display: flex; align-items: center; gap: 10px; }

/* User dropdown */
.admin-user-menu { position: relative; }
.admin-user-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px 6px 6px;
    border-radius: var(--radius);
    border: 1px solid var(--admin-border);
    background: var(--admin-card);
    cursor: pointer;
    transition: all var(--transition);
}
.admin-user-btn:hover { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.admin-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}
.admin-user-info { line-height: 1.2; }
.admin-user-info .name { font-size: 0.82rem; font-weight: 600; color: var(--admin-text); }
.admin-user-info .role { font-size: 0.7rem; color: var(--admin-text-muted); text-transform: capitalize; }

/* ─── CONTENT AREA ──────────────────────── */
.admin-content { padding: 1.5rem 2rem 2rem; flex: 1; animation: fadeInUp 0.3s ease-out; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ─── MOBILE TOGGLE ─────────────────────── */
.admin-sidebar-toggle {
    display: none;
    background: none;
    border: 1px solid var(--admin-border);
    border-radius: var(--radius-sm);
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
    color: var(--admin-text);
    cursor: pointer;
    transition: all var(--transition);
    align-items: center;
    justify-content: center;
}
.admin-sidebar-toggle:hover { background: var(--admin-bg); }
.admin-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(2px);
    z-index: 999;
    opacity: 0;
    transition: opacity var(--transition);
}
.admin-sidebar-overlay.open { opacity: 1; }

/* ─── CARDS ─────────────────────────────── */
.admin-card-modern {
    background: var(--admin-card);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--admin-border);
    transition: all var(--transition);
}
.admin-card-modern:hover { box-shadow: var(--shadow-md); }
.admin-card-modern h5 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.75rem; }
.admin-card-modern h5 i { opacity: 0.7; }

/* Stat cards */
.stat-card {
    padding: 1.15rem;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    position: relative;
    overflow: hidden;
    cursor: default;
}
.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity var(--transition);
    border-radius: var(--radius);
}
.stat-card:hover::before { opacity: 1; }
.stat-card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: transform var(--transition);
}
.stat-card:hover .stat-card-icon { transform: scale(1.08); }
.stat-card-info h3 { font-size: 1.6rem; font-weight: 800; margin: 0; line-height: 1.1; letter-spacing: -0.5px; }
.stat-card-info small { color: var(--admin-text-secondary); font-size: 0.78rem; font-weight: 500; }

/* Stat card trend indicator */
.stat-trend {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 2px;
}
.stat-trend.up { background: rgba(16,185,129,0.1); color: var(--success); }
.stat-trend.down { background: rgba(239,68,68,0.1); color: var(--danger); }
.stat-trend.neutral { background: rgba(148,163,184,0.1); color: var(--admin-text-muted); }

/* ─── TABLES ────────────────────────────── */
.table-admin { font-size: 0.85rem; margin-bottom: 0; }
.table-admin thead th {
    background: var(--admin-bg);
    color: var(--admin-text-secondary);
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border-bottom: 1px solid var(--admin-border);
    padding: 0.65rem 0.85rem;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 1;
}
.table-admin tbody td {
    padding: 0.65rem 0.85rem;
    border-bottom: 1px solid var(--admin-border-light);
    vertical-align: middle;
    transition: background var(--transition-fast);
}
.table-admin tbody tr { transition: background var(--transition-fast); }
.table-admin tbody tr:hover { background: var(--accent-light); }
.table-admin tbody tr:last-child td { border-bottom: none; }

/* ─── BUTTONS ───────────────────────────── */
.btn-accent {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.5rem 1.1rem;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all var(--transition);
    box-shadow: 0 1px 2px rgba(59,130,246,0.2);
}
.btn-accent:hover { background: var(--accent-hover); color: #fff; box-shadow: 0 4px 12px rgba(59,130,246,0.3); transform: translateY(-1px); }
.btn-accent:active { transform: translateY(0); }

.btn-outline-accent {
    border: 1px solid var(--accent);
    color: var(--accent);
    background: transparent;
    border-radius: var(--radius-sm);
    padding: 0.5rem 1.1rem;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all var(--transition);
}
.btn-outline-accent:hover { background: var(--accent); color: #fff; box-shadow: 0 4px 12px rgba(59,130,246,0.2); }

/* ─── BADGES ────────────────────────────── */
.badge-accent { background: var(--accent-light); color: var(--accent); padding: 0.3em 0.7em; border-radius: 6px; font-weight: 600; font-size: 0.75rem; }
.badge-success-soft { background: rgba(16,185,129,0.1); color: var(--success); }
.badge-warning-soft { background: rgba(245,158,11,0.1); color: var(--warning); }
.badge-danger-soft { background: rgba(239,68,68,0.1); color: var(--danger); }
.badge-info-soft { background: rgba(6,182,212,0.1); color: var(--info); }

/* ─── TOAST NOTIFICATIONS ───────────────── */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}
.toast-item {
    background: var(--admin-card);
    border: 1px solid var(--admin-border);
    border-radius: var(--radius);
    padding: 0.85rem 1.1rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 300px;
    max-width: 420px;
    pointer-events: all;
    animation: toastIn 0.35s cubic-bezier(.4,0,.2,1);
    font-size: 0.85rem;
    border-left: 3px solid var(--accent);
}
.toast-item.success { border-left-color: var(--success); }
.toast-item.warning { border-left-color: var(--warning); }
.toast-item.error { border-left-color: var(--danger); }
.toast-item.info { border-left-color: var(--info); }
.toast-item .toast-icon { font-size: 1.1rem; flex-shrink: 0; }
.toast-item.success .toast-icon { color: var(--success); }
.toast-item.warning .toast-icon { color: var(--warning); }
.toast-item.error .toast-icon { color: var(--danger); }
.toast-item.info .toast-icon { color: var(--info); }
.toast-item .toast-msg { flex: 1; }
.toast-item .toast-close {
    background: none;
    border: none;
    color: var(--admin-text-muted);
    cursor: pointer;
    padding: 2px;
    font-size: 1rem;
    opacity: 0.5;
    transition: opacity var(--transition-fast);
}
.toast-item .toast-close:hover { opacity: 1; }
.toast-item.removing { animation: toastOut 0.3s ease-in forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px) scale(0.95); } to { opacity: 1; transform: translateX(0) scale(1); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(40px) scale(0.95); } }

/* ─── LOADING STATES ────────────────────── */
.admin-skeleton {
    background: linear-gradient(90deg, var(--admin-border-light) 25%, var(--admin-bg) 50%, var(--admin-border-light) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.admin-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--admin-border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── EMPTY STATES ──────────────────────── */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--admin-text-muted);
}
.empty-state i { font-size: 3rem; opacity: 0.3; margin-bottom: 1rem; display: block; }
.empty-state p { font-size: 0.9rem; margin: 0; }

/* ─── ALERT BANNERS ─────────────────────── */
.admin-alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.1rem;
    border-radius: var(--radius);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    animation: fadeInUp 0.3s ease-out;
}
.admin-alert.alert-info { background: rgba(59,130,246,0.06); border-color: rgba(59,130,246,0.15); color: var(--accent); }
.admin-alert.alert-warning { background: rgba(245,158,11,0.06); border-color: rgba(245,158,11,0.15); color: #b45309; }
.admin-alert.alert-danger { background: rgba(239,68,68,0.06); border-color: rgba(239,68,68,0.15); color: #b91c1c; }
.admin-alert.alert-success { background: rgba(16,185,129,0.06); border-color: rgba(16,185,129,0.15); color: #047857; }
.admin-alert i { font-size: 1.1rem; flex-shrink: 0; }

/* ─── SECTION HEADERS ───────────────────── */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.section-header h5 { font-size: 1rem; font-weight: 700; margin: 0; display: flex; align-items: center; gap: 0.5rem; }
.section-header .section-count { font-size: 0.75rem; color: var(--admin-text-muted); font-weight: 500; }

/* ─── PAGINATION ────────────────────────── */
.admin-pagination { display: flex; gap: 4px; align-items: center; }
.admin-pagination .page-link {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px solid var(--admin-border);
    color: var(--admin-text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition);
}
.admin-pagination .page-link:hover { background: var(--accent-light); color: var(--accent); border-color: var(--accent); }
.admin-pagination .page-link.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ─── CHART CONTAINERS ──────────────────── */
.chart-container { position: relative; }
.chart-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.chart-header h6 { font-size: 0.85rem; font-weight: 700; margin: 0; }

/* ─── QUICK ACTIONS ─────────────────────── */
.quick-actions {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    align-items: center;
}
.quick-actions .btn { font-size: 0.8rem; }

/* ─── STATUS INDICATORS ─────────────────── */
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}
.status-dot.online { background: var(--success); box-shadow: 0 0 6px rgba(16,185,129,0.4); }
.status-dot.offline { background: var(--admin-text-muted); }
.status-dot.warning { background: var(--warning); box-shadow: 0 0 6px rgba(245,158,11,0.4); }
.status-dot.danger { background: var(--danger); box-shadow: 0 0 6px rgba(239,68,68,0.4); }

/* ─── PROGRESS BARS ─────────────────────── */
.admin-progress { height: 6px; border-radius: 99px; background: var(--admin-border-light); overflow: hidden; }
.admin-progress-bar { height: 100%; border-radius: 99px; transition: width 0.8s cubic-bezier(.4,0,.2,1); }

/* ─── FORMS ─────────────────────────────── */
.form-control, .form-select {
    border: 1px solid var(--admin-border);
    border-radius: var(--radius-sm);
    padding: 0.55rem 0.85rem;
    font-size: 0.85rem;
    transition: all var(--transition);
    background: var(--admin-card);
    color: var(--admin-text);
}
.form-control:focus, .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-label { font-size: 0.78rem; font-weight: 600; color: var(--admin-text-secondary); margin-bottom: 0.35rem; text-transform: uppercase; letter-spacing: 0.4px; }

/* ─── MODAL OVERRIDES ───────────────────── */
.modal-content { border: 1px solid var(--admin-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); }
.modal-header { border-bottom: 1px solid var(--admin-border-light); padding: 1rem 1.25rem; }
.modal-header .modal-title { font-size: 1rem; font-weight: 700; }
.modal-footer { border-top: 1px solid var(--admin-border-light); }

/* ─── TOOLTIP STYLES ────────────────────── */
[data-bs-toggle="tooltip"] { cursor: help; }

/* ─── RESPONSIVE ────────────────────────── */

/* ── Tablet landscape ────────────────────── */
@media (max-width: 1200px) {
    .admin-content { padding: 1.25rem 1.5rem; }
    .stat-card-info h3 { font-size: 1.4rem; }
}

/* ── Tablet portrait ─────────────────────── */
@media (max-width: 992px) {
    /* Topbar */
    .admin-topbar { padding: 0 1.25rem; }
    .admin-topbar-left h4 { font-size: 1rem; }
    .admin-topbar-left .page-title { display: none; }

    /* Stat cards: 2-col on tablet */
    .row.g-3 > .col-6.col-lg-3 { flex: 0 0 50%; max-width: 50%; }
    .row.g-3 > .col-6.col-lg-2 { flex: 0 0 50%; max-width: 50%; }

    /* Charts & system panel stack */
    .chart-header { flex-direction: column; align-items: flex-start; gap: 4px; }

    /* Tables: hide less important columns */
    .table-admin .d-none-lg { display: none !important; }

    /* Quick actions */
    .quick-actions { gap: 0.35rem; }
    .quick-actions .btn { font-size: 0.75rem; padding: 0.35rem 0.7rem; }

    /* Backup status row */
    .d-flex.align-items-center.gap-3.flex-wrap { gap: 0.5rem !important; }

    /* Filter buttons */
    .d-flex.gap-2.flex-wrap { gap: 0.3rem !important; }
    .d-flex.gap-2.flex-wrap .btn { font-size: 0.75rem; padding: 0.35rem 0.6rem; }

    /* Data tables: reduce padding */
    .table-admin tbody td { padding: 0.55rem 0.65rem; font-size: 0.8rem; }
    .table-admin thead th { padding: 0.5rem 0.65rem; font-size: 0.68rem; }
}

/* ── Mobile ──────────────────────────────── */
@media (max-width: 768px) {
    /* Sidebar: slide in from left */
    .admin-sidebar { transform: translateX(-100%); width: 280px; }
    .admin-sidebar.open { transform: translateX(0); box-shadow: 0 0 40px rgba(0,0,0,0.3); }
    .admin-sidebar-overlay.open { display: block; }
    .admin-main { margin-left: 0; }
    .admin-sidebar-toggle { display: flex; }

    /* Content */
    .admin-content { padding: 1rem 0.75rem 1.5rem; }

    /* Topbar */
    .admin-topbar { padding: 0 0.75rem; height: 52px; }
    .admin-topbar-left h4 { font-size: 0.9rem; letter-spacing: -0.2px; }
    .admin-topbar-left .page-title { display: none; }
    .admin-topbar-right .btn { font-size: 0.75rem; padding: 0.3rem 0.6rem; }

    /* Cards */
    .admin-card-modern { padding: 0.9rem; border-radius: 10px; }
    .admin-card-modern h5 { font-size: 0.88rem; }

    /* Stat cards: 2-col on mobile */
    .row.g-3 > .col-6.col-lg-3,
    .row.g-3 > .col-6.col-lg-2 { flex: 0 0 50%; max-width: 50%; }
    .row.g-3 > .col-md-4.col-lg-3 { flex: 0 0 50%; max-width: 50%; }
    .row.g-3 > .col-xl-2 { flex: 0 0 50%; max-width: 50%; }
    .row.g-4 > .col-lg-6 { flex: 0 0 100%; max-width: 100%; }
    .row.g-4 > .col-lg-8 { flex: 0 0 100%; max-width: 100%; }
    .row.g-4 > .col-lg-4 { flex: 0 0 100%; max-width: 100%; }
    .row.g-4 > .col-lg-12 { flex: 0 0 100%; max-width: 100%; }

    /* Stat card compact */
    .stat-card { padding: 0.75rem; gap: 0.55rem; }
    .stat-card-icon { width: 38px; height: 38px; font-size: 1rem; border-radius: 10px; }
    .stat-card-info h3 { font-size: 1.2rem; }
    .stat-card-info small { font-size: 0.72rem; }
    .stat-trend { font-size: 0.6rem; padding: 1px 4px; top: 0.4rem; right: 0.4rem; }

    /* Tables */
    .table-responsive { border-radius: 0; }
    .table-admin { font-size: 0.78rem; }
    .table-admin thead th { font-size: 0.65rem; padding: 0.45rem 0.55rem; }
    .table-admin tbody td { padding: 0.5rem 0.55rem; }
    .truncate-2 { -webkit-line-clamp: 1; max-width: 140px !important; }
    .sticky-table { max-height: 300px; }

    /* Hide less critical table columns on mobile */
    .table-admin th:nth-child(n+5),
    .table-admin td:nth-child(n+5) { display: none; }
    .table-admin th:nth-child(4),
    .table-admin td:nth-child(4) { max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

    /* Section headers */
    .section-header { gap: 0.4rem; }
    .section-header h5 { font-size: 0.88rem; }

    /* Charts */
    .chart-header { flex-direction: column; align-items: flex-start; gap: 2px; margin-bottom: 0.5rem; }
    canvas { max-height: 180px !important; }

    /* Alerts */
    .admin-alert { font-size: 0.8rem; padding: 0.65rem 0.85rem; flex-wrap: wrap; }
    .admin-alert a { margin-left: 0 !important; margin-top: 4px; }

    /* Quick actions */
    .quick-actions { gap: 0.25rem; }
    .quick-actions .btn { font-size: 0.7rem; padding: 0.3rem 0.55rem; }
    .quick-actions .me-2 { margin-right: 0.3rem !important; }

    /* Toast */
    .toast-container { right: 0.5rem; left: 0.5rem; top: 0.75rem; }
    .toast-item { min-width: auto; max-width: none; padding: 0.65rem 0.85rem; font-size: 0.8rem; }

    /* Forms */
    .form-control, .form-select { font-size: 0.82rem; padding: 0.5rem 0.7rem; }
    .input-group { flex-wrap: nowrap; }
    .input-group .form-control { min-width: 0; }

    /* Modals */
    .modal-dialog { margin: 0.5rem; max-height: 95vh; }
    .modal-content { max-height: 90vh; overflow-y: auto; }

    /* Superadmin panel */
    .row.g-4 > .col-lg-6 { flex: 0 0 100%; max-width: 100%; }

    /* Empty states */
    .empty-state { padding: 2rem 1rem; }
    .empty-state i { font-size: 2rem; }

    /* Backup row */
    .d-flex.align-items-center.gap-3.flex-wrap { flex-direction: column; align-items: flex-start !important; gap: 0.4rem !important; }

    /* Login card adjustments if admin login page used */
    .login-card { padding: 1.5rem 1.1rem 1.3rem; }
}

/* ── Small mobile ────────────────────────── */
@media (max-width: 576px) {
    /* Stat cards: 2-col, very compact */
    .stat-card { padding: 0.6rem; gap: 0.45rem; }
    .stat-card-icon { width: 32px; height: 32px; font-size: 0.9rem; border-radius: 8px; }
    .stat-card-info h3 { font-size: 1.05rem; }
    .stat-card-info small { font-size: 0.68rem; }
    .stat-trend { display: none; }

    /* Hide user info in topbar */
    .admin-user-info { display: none; }
    .admin-topbar-left h4 { font-size: 0.85rem; }

    /* Content */
    .admin-content { padding: 0.75rem 0.6rem 1.25rem; }

    /* Secondary stat cards */
    .row.g-3 > .col-6 { flex: 0 0 50%; max-width: 50%; }

    /* Tables: show only first 3 columns */
    .table-admin th:nth-child(n+4),
    .table-admin td:nth-child(n+4) { display: none; }

    /* Filter buttons: scrollable */
    .d-flex.gap-2.flex-wrap { flex-wrap: nowrap !important; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; scrollbar-width: none; }
    .d-flex.gap-2.flex-wrap::-webkit-scrollbar { display: none; }
    .d-flex.gap-2.flex-wrap .btn { white-space: nowrap; flex-shrink: 0; font-size: 0.7rem; }

    /* Search input full width */
    .input-group[style*="max-width:320px"] { max-width: 100% !important; }

    /* Score ring (audit page) */
    .audit-score-ring { width: 110px; height: 110px; }
    .audit-score-value { font-size: 1.8rem; }
    .audit-check { font-size: 0.78rem; padding: 0.4rem 0.6rem; }

    /* Page title spacing */
    .d-flex.justify-content-between.align-items-center.mb-4 { gap: 0.5rem; }
    .d-flex.justify-content-between.align-items-center.mb-4 h3 { font-size: 1rem; }
    .d-flex.justify-content-between.align-items-center.mb-4 p { font-size: 0.72rem; }
}

/* ── Extra small ─────────────────────────── */
@media (max-width: 380px) {
    .stat-card-info h3 { font-size: 0.95rem; }
    .stat-card-info small { font-size: 0.65rem; }
    .stat-card-icon { width: 28px; height: 28px; font-size: 0.8rem; }
    .row.g-3 > .col-6 { flex: 0 0 50%; max-width: 50%; }
    .admin-topbar-left h4 { font-size: 0.8rem; }
    .admin-card-modern { padding: 0.7rem; }
}

/* ─── PRINT ─────────────────────────────── */
@media print {
    .admin-sidebar, .admin-topbar, .admin-sidebar-toggle, .admin-sidebar-overlay, .toast-container { display: none !important; }
    .admin-main { margin-left: 0 !important; }
    .admin-content { padding: 0 !important; }
    .admin-card-modern { box-shadow: none !important; border: 1px solid #ddd !important; break-inside: avoid; }
}

/* ─── ANIMATIONS ────────────────────────── */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideInUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.animate-fadeIn { animation: fadeIn 0.4s ease-out; }
.animate-slideInRight { animation: slideInRight 0.4s ease-out; }
.animate-slideInUp { animation: slideInUp 0.3s ease-out; }

/* ─── DARK MODE (respects system pref) ──── */
@media (prefers-color-scheme: dark) {
    :root.auto-dark {
        --admin-bg: #0f172a;
        --admin-card: #1e293b;
        --admin-card-hover: #263348;
        --admin-text: #f1f5f9;
        --admin-text-secondary: #94a3b8;
        --admin-text-muted: #64748b;
        --admin-border: #334155;
        --admin-border-light: #1e293b;
    }
    :root.auto-dark .admin-topbar { background: rgba(30,41,59,0.9); border-bottom-color: #334155; }
    :root.auto-dark .table-admin thead th { background: #0f172a; }
    :root.auto-dark .form-control, :root.auto-dark .form-select { background: #0f172a; border-color: #334155; color: #f1f5f9; }
    :root.auto-dark .modal-content { background: #1e293b; }
}

/* ─── UTILITY ───────────────────────────── */
.text-accent { color: var(--accent) !important; }
.text-muted { color: var(--admin-text-muted) !important; }
.border-warning { border-color: #f59e0b !important; }
.glow-accent { box-shadow: 0 0 20px var(--accent-glow); }
.truncate-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sticky-table { max-height: 420px; overflow: auto; }
.relative { position: relative; }

/* ─── NOTIFICATION BELL & DROPDOWN ────── */
.notif-bell-wrapper { position: relative; }
.notif-bell-btn {
    position: relative; background: none; border: 1px solid var(--admin-border);
    border-radius: 10px; width: 40px; height: 40px; display: flex; align-items: center;
    justify-content: center; cursor: pointer; color: var(--admin-text-secondary);
    transition: all 0.2s;
}
.notif-bell-btn:hover { background: var(--accent-light); color: var(--accent); border-color: var(--accent); }
.notif-bell-btn .bi-bell { font-size: 1.15rem; }
.notif-badge {
    position: absolute; top: -5px; right: -5px; background: #ef4444; color: #fff;
    font-size: 0.65rem; font-weight: 700; min-width: 18px; height: 18px;
    border-radius: 9px; display: flex; align-items: center; justify-content: center;
    padding: 0 4px; line-height: 1; animation: notifPulse 2s ease-in-out infinite;
}
@keyframes notifPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.15); } }

.notif-dropdown {
    display: none; position: absolute; top: calc(100% + 8px); right: 0;
    width: 380px; max-height: 500px; background: var(--admin-card);
    border: 1px solid var(--admin-border); border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15); z-index: 9999; overflow: hidden;
    animation: notifSlide 0.2s ease-out;
}
.notif-dropdown.open { display: flex; flex-direction: column; }
@keyframes notifSlide { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

.notif-dropdown-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px 10px; border-bottom: 1px solid var(--admin-border-light);
}
.notif-dropdown-header h6 { color: var(--admin-text); }
.notif-dropdown-list {
    flex: 1; overflow-y: auto; max-height: 360px; padding: 6px 0;
}
.notif-dropdown-footer { padding: 10px 16px; border-top: 1px solid var(--admin-border-light); }

.notif-item {
    display: flex; align-items: flex-start; gap: 10px; padding: 10px 16px;
    cursor: pointer; transition: background 0.15s; border-left: 3px solid transparent;
}
.notif-item:hover { background: var(--admin-card-hover); }
.notif-item.unread { background: rgba(59,130,246,0.04); border-left-color: var(--accent); }
.notif-item-icon {
    width: 34px; height: 34px; border-radius: 8px; display: flex; align-items: center;
    justify-content: center; flex-shrink: 0; font-size: 0.85rem; margin-top: 2px;
}
.notif-item-body { flex: 1; min-width: 0; }
.notif-item-text { font-size: 0.82rem; color: var(--admin-text); line-height: 1.4; word-wrap: break-word; }
.notif-item-time { font-size: 0.7rem; color: var(--admin-text-muted); margin-top: 3px; }
.notif-item-actions { display: flex; gap: 4px; opacity: 0; transition: opacity 0.15s; flex-shrink: 0; margin-top: 2px; }
.notif-item:hover .notif-item-actions { opacity: 1; }
.notif-item-actions button {
    background: none; border: none; color: var(--admin-text-muted); cursor: pointer;
    padding: 2px 4px; border-radius: 4px; font-size: 0.75rem;
}
.notif-item-actions button:hover { background: var(--accent-light); color: var(--accent); }

.notif-loading { text-align: center; padding: 30px; color: var(--admin-text-muted); font-size: 0.85rem; }
.notif-empty { text-align: center; padding: 30px; color: var(--admin-text-muted); }
.notif-empty i { font-size: 2rem; display: block; margin-bottom: 8px; opacity: 0.4; }

.spin { animation: spin 1s linear infinite; display: inline-block; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* notification type colors */
.notif-type-contact { background: rgba(59,130,246,0.1); color: #3b82f6; }
.notif-type-devis { background: rgba(16,185,129,0.1); color: #10b981; }
.notif-type-newsletter { background: rgba(249,115,22,0.1); color: #f97316; }
.notif-type-chatbot_lead, .notif-type-chatbot { background: rgba(20,184,166,0.1); color: #14b8a6; }
.notif-type-inscription { background: rgba(139,92,246,0.1); color: #8b5cf6; }

@media (max-width: 576px) {
    .notif-dropdown { width: calc(100vw - 20px); right: -60px; }
}

/* ─── ADMIN ALERT BANNER (DASHBOARD) ──── */
.admin-alert-banner {
    display: flex; align-items: center; gap: 12px; padding: 14px 20px;
    border-radius: 12px; margin-bottom: 16px; font-size: 0.88rem;
    animation: alertSlideIn 0.3s ease-out;
}
@keyframes alertSlideIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.admin-alert-banner.alert-new-contact { background: rgba(59,130,246,0.08); border: 1px solid rgba(59,130,246,0.2); color: #1e40af; }
.admin-alert-banner.alert-new-devis { background: rgba(16,185,129,0.08); border: 1px solid rgba(16,185,129,0.2); color: #065f46; }
.admin-alert-banner.alert-new-newsletter { background: rgba(249,115,22,0.08); border: 1px solid rgba(249,115,22,0.2); color: #9a3412; }
.admin-alert-banner.alert-new-chatbot { background: rgba(20,184,166,0.08); border: 1px solid rgba(20,184,166,0.2); color: #115e59; }
.admin-alert-banner .alert-close {
    margin-left: auto; background: none; border: none; font-size: 1.1rem;
    cursor: pointer; opacity: 0.6; color: inherit;
}
.admin-alert-banner .alert-close:hover { opacity: 1; }

/* ─── DASHBOARD CHART RESPONSIVE ──────── */
.chart-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
@media (max-width: 576px) {
    .chart-header { flex-direction: column; align-items: flex-start; gap: 6px; }
    .chart-header .d-flex { gap: 12px !important; }
}
