/* ================================================================
   Gayathri Enterprises — Dashboard & Admin CSS
   ================================================================ */

.dashboard-body {
    background: var(--bg-2);
    min-height: 100vh;
}

/* Header */
.dash-header {
    background: rgba(6, 10, 20, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.admin-header { border-left: 3px solid var(--pink); }
.dash-header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 28px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.dash-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-family: var(--font-head);
    color: var(--text);
    font-size: 0.95rem;
    text-decoration: none;
}
.dash-logo:hover { color: var(--accent-2); }
.dash-nav { display: flex; gap: 4px; align-items: center; }
.dash-nav a {
    padding: 8px 14px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-2);
    border-radius: 8px;
    text-decoration: none;
    transition: all var(--transition);
}
.dash-nav a:hover { color: var(--text); background: var(--surface-2); }
.dash-nav a.active { color: var(--accent-2); background: var(--surface-3); }
.dash-nav a.dash-logout { color: var(--red); }
.dash-nav a.dash-logout:hover { background: rgba(248,113,113,0.15); }

/* Main */
.dash-main { padding: 40px 0 80px; }
.dash-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 28px; }
.dash-welcome { margin-bottom: 32px; }
.dash-welcome h1 { font-size: 2rem; margin-bottom: 6px; }
.dash-welcome p { color: var(--text-2); font-size: 1.05rem; }

/* Cards */
.dash-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}
.dash-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.dash-card-icon { font-size: 2rem; }
.dash-card-value { font-size: 1.6rem; font-weight: 700; font-family: var(--font-head); color: var(--text); }
.dash-card-label { font-size: 0.82rem; color: var(--text-2); margin-top: 2px; }

/* Grid */
.dash-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
@media (max-width: 768px) { .dash-grid { grid-template-columns: 1fr; } }

/* Panels */
.dash-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
}
.dash-panel h3 { margin-bottom: 16px; font-size: 1.1rem; }

/* Forms */
.dash-form { display: flex; flex-direction: column; gap: 12px; }
.dash-form input, .dash-form select, .dash-form textarea {
    background: var(--bg-3);
    border: 1px solid var(--border-2);
    border-radius: 8px;
    padding: 12px 14px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.92rem;
    width: 100%;
    box-sizing: border-box;
}
.dash-form input:focus, .dash-form select:focus, .dash-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.dash-form select { cursor: pointer; }
.dash-form select option { background: var(--bg-3); color: var(--text); }
.form-row { display: flex; gap: 10px; }
.form-row > * { flex: 1; }

/* Tables */
.dash-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.dash-table th {
    text-align: left;
    padding: 12px 10px;
    border-bottom: 1px solid var(--border-2);
    font-weight: 600;
    color: var(--text-2);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.dash-table td {
    padding: 10px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}
.dash-table tr:hover td { background: var(--surface-2); }

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}
.status-active { background: rgba(74,222,128,0.15); color: var(--green); }
.status-inactive { background: rgba(248,113,113,0.15); color: var(--red); }
.status-suspended { background: rgba(251,191,36,0.15); color: var(--yellow); }
.status-sent { background: rgba(74,222,128,0.12); color: var(--green); }
.status-failed { background: rgba(248,113,113,0.12); color: var(--red); }
.status-queued { background: rgba(34,197,94,0.12); color: var(--blue); }
.status-delivered { background: rgba(34,211,238,0.12); color: var(--cyan); }
.status-rejected { background: rgba(248,113,113,0.12); color: var(--red); }

/* Activity rows */
.recent-activity { display: flex; flex-direction: column; gap: 8px; }
.activity-row {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 8px 10px;
    background: var(--surface-2);
    border-radius: 8px;
    font-size: 0.84rem;
}
.activity-row span { flex: 0 0 auto; }
.act-status { text-transform: uppercase; font-weight: 600; font-size: 0.72rem; }
.act-msg { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1 !important; }
.act-time { color: var(--text-3); font-size: 0.75rem; font-family: var(--font-mono); }
.text-muted { color: var(--text-3); }

/* SMS result */
.sms-result { padding: 12px; border-radius: 8px; font-weight: 500; }
.sms-success { background: rgba(74,222,128,0.1); color: var(--green); }
.sms-error { background: rgba(248,113,113,0.1); color: var(--red); }

/* WhatsApp float button */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
}
.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(37,211,102,0.55);
}
.whatsapp-float svg { width: 28px; height: 28px; fill: #fff; }

/* Auth modals on homepage */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}
.modal-box {
    background: var(--bg-3);
    border: 1px solid var(--border-2);
    border-radius: var(--radius-lg);
    padding: 36px;
    width: 440px;
    max-width: 95vw;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.25s ease;
}
.modal-box h2 { margin-bottom: 20px; text-align: center; }
.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-2);
    font-size: 1.4rem;
    cursor: pointer;
}
.modal-close:hover { color: var(--text); }
.modal-links { text-align: center; margin-top: 14px; font-size: 0.88rem; color: var(--text-2); }
.modal-links a { color: var(--accent-2); cursor: pointer; font-weight: 500; }
.modal-links a:hover { text-decoration: underline; }

@keyframes fadeIn { from { opacity:0 } to { opacity:1 } }
@keyframes slideUp { from { transform:translateY(20px); opacity:0 } to { transform:translateY(0); opacity:1 } }

/* Auth buttons in nav */
nav a.btn-login {
    padding: 8px 16px;
    font-weight: 600;
    color: var(--accent-2);
    border: 1px solid var(--accent-2);
    border-radius: 8px;
    margin-left: 4px;
}
nav a.btn-login:hover { background: var(--accent-glow); color: var(--accent-2); }
nav a.btn-register {
    padding: 8px 16px;
    font-weight: 600;
    background: var(--accent);
    color: #fff;
    border-radius: 8px;
    margin-left: 4px;
}
nav a.btn-register:hover { background: var(--accent-3); color: #fff; }
/* ================================================================
   Gayathri Enterprises — UNIQUE COLORFUL Admin Panel CSS v17
   No :root variable conflicts — all colors hardcoded
   Every element has its own unique vibrant color
   ================================================================ */

/* ===== SIDEBAR: Deep purple gradient ===== */
.admin-sidebar {
    width: 260px;
    background: linear-gradient(185deg, #2d1b69 0%, #4c1d95 30%, #5b21b6 60%, #0b0f14 100%) !important;
    position: fixed; top: 0; left: 0; bottom: 0;
    z-index: 200; display: flex; flex-direction: column;
    border-right: 2px solid #22c55e;
    box-shadow: 4px 0 30px rgba(109,40,217,0.35);
    color: #e0e7ff;
}

/* Sidebar brand */
.admin-sb-brand {
    padding: 20px 18px 18px;
    display: flex; align-items: center; gap: 12px;
    text-decoration: none;
    background: linear-gradient(135deg, rgba(34,197,94,0.3), rgba(34,197,94,0.2));
    border-bottom: 2px solid #22c55e;
    position: relative;
}
.admin-sb-brand::before {
    content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
    height: 2px;
    background: linear-gradient(90deg, #f59e0b, #10b981, #06b6d4, #22c55e);
}
.admin-sb-brand img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 0 20px rgba(34,197,94,0.5); }
.admin-sb-brand strong { font-family: 'Space Grotesk', sans-serif; font-size: 0.95rem; font-weight: 700; color: #0b0f14; }
.admin-sb-brand small { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.1em; color: #c4b5fd; font-weight: 600; }

/* Sidebar user card */
.admin-sb-user {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 18px;
    background: rgba(255,255,255,0.08);
    margin: 8px 12px; border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
}
.admin-sb-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #22c55e);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.82rem; color: #fff;
    box-shadow: 0 0 14px rgba(245,158,11,0.4);
}
.admin-sb-userinfo strong { font-size: 0.82rem; color: #0b0f14; display: block; }
.admin-sb-userinfo small { font-size: 0.7rem; color: #a78bfa; }

/* Sidebar nav label */
.admin-sb-navlabel {
    font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.12em;
    color: #a78bfa; padding: 14px 20px 8px; font-weight: 700;
    display: flex; align-items: center; gap: 8px;
}
.admin-sb-navlabel::before {
    content: ''; width: 14px; height: 2px; background: #a78bfa;
    border-radius: 1px; opacity: 0.6;
}

/* Sidebar navigation */
.admin-sb-nav { flex: 1; overflow-y: auto; padding: 0 6px; display: flex; flex-direction: column; gap: 3px; }

/* Sidebar button (sb-btn) */
.sb-btn {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; border-radius: 10px;
    text-decoration: none; transition: all 0.2s;
    border: 1px solid transparent;
    position: relative;
    color: #c4b5fd;
}
.sb-btn:hover {
    background: rgba(255,255,255,0.1);
    color: #0b0f14;
    border-color: rgba(255,255,255,0.15);
    transform: translateX(3px);
}
.sb-btn.active {
    background: linear-gradient(135deg, var(--btn-color, #16a34a), color-mix(in srgb, var(--btn-color, #16a34a) 70%, #000));
    color: #0b0f14;
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 4px 16px rgba(34,197,94,0.4);
}
.sb-btn-icon {
    font-size: 1.2rem; width: 36px; height: 36px;
    border-radius: 8px; display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.1);
    flex-shrink: 0;
}
.sb-btn.active .sb-btn-icon { background: rgba(255,255,255,0.2); }
.sb-btn-text { display: flex; flex-direction: column; line-height: 1.2; }
.sb-btn-text strong { font-size: 0.82rem; font-weight: 600; }
.sb-btn-text small { font-size: 0.65rem; opacity: 0.7; }
.sb-btn-active-dot {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    width: 6px; height: 6px; border-radius: 50%;
    background: #0b0f14; box-shadow: 0 0 8px rgba(255,255,255,0.6);
}

/* Sidebar footer */
.admin-sb-footer {
    padding: 12px 10px; border-top: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.15);
    display: flex; flex-direction: column; gap: 4px;
}
.sb-btn-footer { color: #c4b5fd; }
.sb-btn-footer:hover { background: rgba(255,255,255,0.08); }
.sb-btn-logout { color: #fca5a5; }
.sb-btn-logout:hover { background: rgba(239,68,68,0.2); }

/* ===== MAIN AREA ===== */
.admin-main-area {
    margin-left: 260px; flex: 1; display: flex; flex-direction: column; min-height: 100vh;
}

/* ===== TOPBAR: Rainbow gradient border ===== */
.admin-topbar {
    height: 64px;
    background: linear-gradient(180deg, #0b0f14 0%, #111827 100%);
    position: sticky; top: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 28px;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, #16a34a, #22c55e, #22c55e, #f59e0b, #10b981, #06b6d4, #3b82f6) 1;
    box-shadow: 0 4px 20px rgba(34,197,94,0.12);
}
.admin-tb-search { position: relative; flex: 1; max-width: 400px; }
.admin-tb-search input {
    background: #111827; border: 2px solid #ddd6fe;
    border-radius: 10px; padding: 9px 14px 9px 38px; color: #1e1b4b;
    width: 100%; font-size: 0.85rem; transition: all 0.2s;
}
.admin-tb-search input:focus { outline: none; border-color: #22c55e; background: #fff; box-shadow: 0 0 0 3px rgba(34,197,94,0.15); }
.admin-tb-search .search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); opacity: 0.5; }

.admin-tb-right { display: flex; align-items: center; gap: 14px; }
.admin-tb-notif {
    position: relative; cursor: pointer; padding: 8px; border-radius: 8px;
    transition: all 0.15s; color: #475569; font-size: 1.1rem;
    background: #111827;
}
.admin-tb-notif:hover { background: #111827; }
.admin-tb-notif .dot {
    position: absolute; top: 6px; right: 6px;
    width: 8px; height: 8px; background: #ef4444;
    border-radius: 50%; border: 2px solid #fff;
}
.admin-tb-user {
    display: flex; align-items: center; gap: 10px;
    cursor: pointer; padding: 5px 12px 5px 5px;
    border-radius: 10px; transition: all 0.15s;
    background: #111827;
}
.admin-tb-user:hover { background: #111827; }
.admin-tb-avatar {
    width: 34px; height: 34px; border-radius: 50%;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.82rem; color: #fff;
    box-shadow: 0 4px 10px rgba(34,197,94,0.4);
}
.admin-tb-info strong { font-size: 0.82rem; display: block; color: #1e1b4b; }
.admin-tb-info span { font-size: 0.7rem; color: #22c55e; }

/* Mobile menu button */
.mobile-menu-btn {
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #fff; border: none; padding: 8px 14px; border-radius: 8px;
    font-size: 1.1rem; cursor: pointer; display: none;
    box-shadow: 0 2px 8px rgba(34,197,94,0.3);
}
@media (max-width: 900px) { .mobile-menu-btn { display: block; } }

/* ===== SHELL BACKGROUND: Multi-color radial+linear ===== */
.admin-shell {
    display: flex; min-height: 100vh;
    background:
        radial-gradient(ellipse at 2% 5%, rgba(34,197,94,0.18) 0%, transparent 45%),
        radial-gradient(ellipse at 95% 15%, rgba(34,197,94,0.15) 0%, transparent 40%),
        radial-gradient(ellipse at 85% 85%, rgba(6,182,212,0.14) 0%, transparent 40%),
        radial-gradient(ellipse at 10% 90%, rgba(16,185,129,0.12) 0%, transparent 38%),
        radial-gradient(ellipse at 50% 50%, rgba(245,158,11,0.08) 0%, transparent 55%),
        linear-gradient(155deg, #111827 0%, #111827 18%, #111827 35%, #111827 52%, #f0fdf4 68%, #111827 82%, #fff1f2 100%) !important;
}

/* ===== CONTENT BACKGROUND: Micro-dot pattern + glow ===== */
.admin-content {
    flex: 1; padding: 28px; max-width: 1500px; width: 100%;
    position: relative;
    background:
        radial-gradient(circle at 30% 10%, rgba(34,197,94,0.06) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(34,197,94,0.05) 0%, transparent 40%),
        radial-gradient(circle at 15% 85%, rgba(6,182,212,0.05) 0%, transparent 40%);
}
.admin-content::before {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(circle, rgba(34,197,94,0.06) 1px, transparent 1px);
    background-size: 36px 36px; pointer-events: none; z-index: 0;
}
.admin-content > * { position: relative; z-index: 1; }

/* ===== BREADCRUMB ===== */
.admin-breadcrumb { display: flex; gap: 5px; align-items: center; font-size: 0.75rem; color: #a78bfa; margin-bottom: 6px; }
.admin-breadcrumb a { color: #22c55e; text-decoration: none; }
.admin-breadcrumb a:hover { color: #16a34a; }
.admin-breadcrumb .bc-sep { color: #c4b5fd; }

/* ===== PAGE HEADER: Gradient accent bar ===== */
.admin-page-header {
    margin-bottom: 22px; padding: 18px 22px;
    background: linear-gradient(135deg, rgba(34,197,94,0.08) 0%, rgba(34,197,94,0.04) 50%, transparent 100%);
    border-radius: 16px; border: 1px solid rgba(34,197,94,0.12);
    position: relative;
}
.admin-page-header::before {
    content: ''; position: absolute; left: 0; top: 12px; bottom: 12px;
    width: 5px; border-radius: 0 4px 4px 0;
    background: linear-gradient(180deg, #16a34a, #22c55e, #22c55e);
}
.admin-page-header h1 {
    font-size: 1.65rem; font-weight: 700; margin-bottom: 4px;
    background: linear-gradient(135deg, #166534, #22c55e);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.admin-page-header p { color: #16a34a; font-size: 0.9rem; }

/* ===== TICKER BAR: Vibrant animated gradient ===== */
.admin-ticker {
    display: flex; flex-wrap: wrap; gap: 8px;
    padding: 16px 20px; margin-bottom: 24px;
    border-radius: 16px;
    background: linear-gradient(105deg, #0b0f14 0%, #166534 20%, #16a34a 45%, #15803d 65%, #166534 100%) !important;
    box-shadow: 0 8px 28px rgba(34,197,94,0.3), inset 0 1px 0 rgba(255,255,255,0.15);
    position: relative; overflow: hidden;
}
.admin-ticker::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.08) 50%, transparent 100%);
    animation: tickerShimmer 3s ease-in-out infinite;
}
@keyframes tickerShimmer {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}
.admin-ticker-item {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 18px;
    background: rgba(255,255,255,0.14); backdrop-filter: blur(8px);
    border-radius: 12px; color: #e0e7ff;
    font-size: 0.84rem; font-weight: 500;
    border: 1px solid rgba(255,255,255,0.12);
    position: relative; z-index: 1;
}
.admin-ticker-item strong { color: #0b0f14; font-size: 1.1rem; font-weight: 800; }
.admin-ticker-dot.green { background: #4ade80; box-shadow: 0 0 10px #4ade80; }

/* ===== STATS GRID + CARDS ===== */
.admin-stats-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px; margin-bottom: 24px;
}

/* Base stat card */
.admin-stat-card {
    background: #0b0f14; border: 1px solid rgba(0,0,0,0.06);
    border-radius: 16px; padding: 22px; transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    position: relative; overflow: hidden;
}
.admin-stat-card::before {
    content: ''; position: absolute; top: 0; right: 0;
    width: 80px; height: 80px; border-radius: 50%;
    opacity: 0.1;
}
.admin-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 36px rgba(0,0,0,0.12);
}
.admin-stat-card .asc-icon { font-size: 1.5rem; margin-bottom: 12px; width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.admin-stat-card .asc-value { font-size: 2rem; font-weight: 800; font-family: 'Space Grotesk', sans-serif; line-height: 1.1; }
.admin-stat-card .asc-label { font-size: 0.78rem; margin-top: 3px; font-weight: 500; }
.admin-stat-card .asc-change { display: inline-flex; align-items: center; gap: 3px; font-size: 0.72rem; margin-top: 8px; font-weight: 600; padding: 3px 10px; border-radius: 100px; }

/* Blue card */
.admin-stat-card.accent-blue { border-color: rgba(59,130,246,0.3); background: linear-gradient(135deg, #111827 0%, #111827 50%, #0b0f14 100%); }
.admin-stat-card.accent-blue::before { background: #3b82f6; }
.admin-stat-card.accent-blue .asc-icon { background: rgba(59,130,246,0.15); }
.admin-stat-card.accent-blue .asc-value { color: #1e40af; }
.admin-stat-card.accent-blue .asc-label { color: #1d4ed8; }
.admin-stat-card.accent-blue:hover { border-color: #3b82f6; box-shadow: 0 12px 32px rgba(59,130,246,0.2); }

/* Green card */
.admin-stat-card.accent-green { border-color: rgba(16,185,129,0.3); background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 50%, #0b0f14 100%); }
.admin-stat-card.accent-green::before { background: #10b981; }
.admin-stat-card.accent-green .asc-icon { background: rgba(16,185,129,0.15); }
.admin-stat-card.accent-green .asc-value { color: #166534; }
.admin-stat-card.accent-green .asc-label { color: #15803d; }
.admin-stat-card.accent-green:hover { border-color: #10b981; box-shadow: 0 12px 32px rgba(16,185,129,0.2); }

/* Purple card */
.admin-stat-card.accent-purple { border-color: rgba(34,197,94,0.3); background: linear-gradient(135deg, #111827 0%, #111827 50%, #0b0f14 100%); }
.admin-stat-card.accent-purple::before { background: #22c55e; }
.admin-stat-card.accent-purple .asc-icon { background: rgba(34,197,94,0.15); }
.admin-stat-card.accent-purple .asc-value { color: #6b21a8; }
.admin-stat-card.accent-purple .asc-label { color: #7e22ce; }
.admin-stat-card.accent-purple:hover { border-color: #22c55e; box-shadow: 0 12px 32px rgba(34,197,94,0.2); }

/* Amber card */
.admin-stat-card.accent-amber { border-color: rgba(245,158,11,0.3); background: linear-gradient(135deg, #111827 0%, #111827 50%, #0b0f14 100%); }
.admin-stat-card.accent-amber::before { background: #f59e0b; }
.admin-stat-card.accent-amber .asc-icon { background: rgba(245,158,11,0.15); }
.admin-stat-card.accent-amber .asc-value { color: #92400e; }
.admin-stat-card.accent-amber .asc-label { color: #b45309; }
.admin-stat-card.accent-amber:hover { border-color: #f59e0b; box-shadow: 0 12px 32px rgba(245,158,11,0.2); }

/* Cyan card */
.admin-stat-card.accent-cyan { border-color: rgba(6,182,212,0.3); background: linear-gradient(135deg, #111827 0%, #111827 50%, #0b0f14 100%); }
.admin-stat-card.accent-cyan::before { background: #06b6d4; }
.admin-stat-card.accent-cyan .asc-icon { background: rgba(6,182,212,0.15); }
.admin-stat-card.accent-cyan .asc-value { color: #155e75; }
.admin-stat-card.accent-cyan .asc-label { color: #0e7490; }
.admin-stat-card.accent-cyan:hover { border-color: #06b6d4; box-shadow: 0 12px 32px rgba(6,182,212,0.2); }

/* Orange card */
.admin-stat-card.accent-orange { border-color: rgba(249,115,22,0.3); background: linear-gradient(135deg, #111827 0%, #111827 50%, #0b0f14 100%); }
.admin-stat-card.accent-orange::before { background: #f97316; }
.admin-stat-card.accent-orange .asc-icon { background: rgba(249,115,22,0.15); }
.admin-stat-card.accent-orange .asc-value { color: #9a3412; }
.admin-stat-card.accent-orange .asc-label { color: #c2410c; }
.admin-stat-card.accent-orange:hover { border-color: #f97316; box-shadow: 0 12px 32px rgba(249,115,22,0.2); }

/* Red card */
.admin-stat-card.accent-red { border-color: rgba(239,68,68,0.3); background: linear-gradient(135deg, #111827 0%, #111827 50%, #0b0f14 100%); }
.admin-stat-card.accent-red::before { background: #ef4444; }
.admin-stat-card.accent-red .asc-icon { background: rgba(239,68,68,0.15); }
.admin-stat-card.accent-red .asc-value { color: #991b1b; }
.admin-stat-card.accent-red .asc-label { color: #b91c1c; }
.admin-stat-card.accent-red:hover { border-color: #ef4444; box-shadow: 0 12px 32px rgba(239,68,68,0.2); }

/* Pink card */
.admin-stat-card.accent-pink { border-color: rgba(34,197,94,0.3); background: linear-gradient(135deg, #111827 0%, #fce7f3 50%, #0b0f14 100%); }
.admin-stat-card.accent-pink::before { background: #22c55e; }
.admin-stat-card.accent-pink .asc-icon { background: rgba(34,197,94,0.15); }
.admin-stat-card.accent-pink .asc-value { color: #166534; }
.admin-stat-card.accent-pink .asc-label { color: #15803d; }
.admin-stat-card.accent-pink:hover { border-color: #22c55e; box-shadow: 0 12px 32px rgba(34,197,94,0.2); }

/* Glow effect */
.admin-stat-card.glow { position: relative; }
.admin-stat-card.glow::after {
    content: ''; position: absolute; inset: -1px; border-radius: 17px;
    background: linear-gradient(135deg, var(--card-color, #16a34a), transparent 60%);
    opacity: 0.15; z-index: -1; filter: blur(8px);
}
.admin-stat-card .asc-change.up { background: rgba(16,185,129,0.12); color: #10b981; }
.admin-stat-card .asc-change.down { background: rgba(239,68,68,0.12); color: #ef4444; }

/* ===== PANELS ===== */
.admin-panel {
    background: #0b0f14; border-radius: 16px; padding: 22px;
    border: 1px solid rgba(34,197,94,0.1);
    box-shadow: 0 2px 12px rgba(34,197,94,0.04);
    transition: all 0.25s;
    border-top: 4px solid #16a34a;
}
.admin-panel:hover { box-shadow: 0 8px 28px rgba(34,197,94,0.1); }

.admin-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.admin-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 1100px) { .admin-grid-2 { grid-template-columns: 1fr; } .admin-grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) { .admin-grid-3 { grid-template-columns: 1fr; } }

/* Alternate panel colors */
.admin-grid-2 > .admin-panel:nth-child(2) { border-top-color: #06b6d4; }
.admin-grid-2 > .admin-panel:nth-child(3) { border-top-color: #22c55e; }
.admin-grid-3 > .admin-panel:nth-child(2) { border-top-color: #10b981; }
.admin-grid-3 > .admin-panel:nth-child(3) { border-top-color: #f59e0b; }

/* Panel header with glowing dot */
.admin-panel-header {
    display: flex; align-items: center; justify-content: space-between;
    margin: -22px -22px 18px -22px;
    padding: 16px 22px 12px 38px;
    background: linear-gradient(90deg, rgba(34,197,94,0.07), transparent 60%);
    border-bottom: 1px solid rgba(34,197,94,0.1);
    border-radius: 16px 16px 0 0;
    position: relative;
}
.admin-panel-header::before {
    content: ''; position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
    width: 9px; height: 9px; border-radius: 50%;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    box-shadow: 0 0 12px rgba(34,197,94,0.6);
}
.admin-panel-header h3 { font-size: 0.95rem; color: #1e1b4b; font-weight: 700; }

/* ===== ALERT BOXES ===== */
.admin-alert { border-radius: 12px; padding: 14px 18px; margin-bottom: 18px; font-weight: 600; font-size: 0.88rem; }
.admin-alert.alert-danger { background: linear-gradient(135deg, #111827, #111827); border: 1px solid #fecaca; color: #991b1b; }
.admin-alert.alert-success { background: linear-gradient(135deg, #f0fdf4, #dcfce7); border: 1px solid #bbf7d0; color: #166534; }

/* ===== CHART BARS ===== */
.admin-chart-bar {
    background: linear-gradient(180deg, #16a34a 0%, #22c55e 35%, #22c55e 65%, #f97316 100%) !important;
    border-radius: 4px 4px 0 0; min-height: 4px;
    box-shadow: 0 1px 8px rgba(34,197,94,0.35);
}
.admin-chart-bar-wrap { display: flex; align-items: flex-end; justify-content: space-around; height: 180px; gap: 4px; padding: 0 8px; }
.admin-chart-bar-wrap .admin-chart-bar { flex: 1; }
.admin-chart-labels { display: flex; justify-content: space-around; gap: 4px; padding: 8px 8px 0; font-size: 0.7rem; color: #22c55e; font-weight: 600; }
.admin-chart-legend { display: flex; gap: 16px; padding: 10px 0 0; font-size: 0.75rem; color: #16a34a; }
.admin-chart-legend-item { display: flex; align-items: center; gap: 6px; }
.admin-chart-legend-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* ===== SMS TIMELINE ===== */
.sms-timeline { display: flex; flex-direction: column; gap: 1px; }
.sms-timeline-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; border-left: 4px solid #10b981; transition: all 0.15s; }
.sms-timeline-item:hover { background: rgba(34,197,94,0.04); }
.sms-timeline-item.sent { border-left-color: #10b981; background: rgba(16,185,129,0.03); }
.sms-timeline-item.failed { border-left-color: #ef4444; background: rgba(239,68,68,0.03); }
.sms-timeline-item.queued { border-left-color: #f59e0b; background: rgba(245,158,11,0.03); }
.sms-timeline-icon { font-size: 1rem; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,0.8); flex-shrink: 0; }
.sms-timeline-item.sent .sms-timeline-icon { color: #10b981; }
.sms-timeline-item.failed .sms-timeline-icon { color: #ef4444; }
.sms-timeline-item.queued .sms-timeline-icon { color: #f59e0b; }
.sms-timeline-body { flex: 1; min-width: 0; }
.stb-recipient { font-size: 0.82rem; font-weight: 600; color: #1e1b4b; font-family: 'JetBrains Mono', monospace; }
.stb-msg { font-size: 0.75rem; color: #6b7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sms-timeline-meta { text-align: right; flex-shrink: 0; }
.stm-status { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
.sms-timeline-item.sent .stm-status { color: #10b981; }
.sms-timeline-item.failed .stm-status { color: #ef4444; }
.stm-time { font-size: 0.68rem; color: #9ca3af; margin-top: 2px; }

/* ===== SMPP CONNECTION CARDS ===== */
.smpp-conn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.smpp-conn-card {
    background: #fff; border: 1px solid rgba(0,0,0,0.06);
    border-radius: 14px; padding: 16px;
    border-left: 5px solid #16a34a;
    transition: all 0.2s;
}
.smpp-conn-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.08); }
.smpp-conn-card.live { border-left-color: #10b981; background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #0b0f14 100%); }
.smpp-conn-card.dead { border-left-color: #ef4444; background: linear-gradient(135deg, #111827 0%, #fff5f5 50%, #0b0f14 100%); }
.smpp-conn-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.smpp-conn-name { font-weight: 700; font-size: 0.9rem; color: #1e1b4b; }
.smpp-conn-status { display: flex; align-items: center; gap: 6px; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; }
.smpp-conn-dot { width: 8px; height: 8px; border-radius: 50%; }
.smpp-conn-dot.live { background: #10b981; box-shadow: 0 0 8px rgba(16,185,129,0.5); }
.smpp-conn-dot.dead { background: #ef4444; }
.smpp-conn-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; font-size: 0.72rem; color: #6b7280; }
.smpp-conn-meta div { display: flex; flex-direction: column; }
.smpp-conn-meta strong { color: #1e1b4b; font-size: 0.78rem; }
.conn-health-bar { height: 4px; background: #e5e7eb; border-radius: 2px; margin-top: 10px; overflow: hidden; }
.conn-health-fill { height: 100%; border-radius: 2px; transition: width 0.5s ease; }
.conn-health-fill.good { background: linear-gradient(90deg, #10b981, #34d399); }
.conn-health-fill.bad { background: linear-gradient(90deg, #ef4444, #f87171); }
.smpp-conn-actions { display: flex; gap: 6px; margin-top: 10px; }

/* ===== TABLES ===== */
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.admin-table thead th {
    background: linear-gradient(180deg, #111827, #111827) !important;
    color: #4c1d95 !important;
    font-weight: 700; font-size: 0.75rem; text-transform: uppercase;
    letter-spacing: 0.05em; padding: 12px 14px;
    border-bottom: 2px solid #c4b5fd !important;
    text-align: left;
}
.admin-table tbody td { padding: 10px 14px; border-bottom: 1px solid #f3f0ff; color: #1e1b4b; }
.admin-table tbody tr:hover { background: rgba(34,197,94,0.05); }

/* ===== FORMS ===== */
.admin-form-group { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.admin-form-group label { font-size: 0.8rem; font-weight: 600; color: #4c1d95; }
.admin-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.admin-form-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 768px) { .admin-form-row, .admin-form-row-3 { grid-template-columns: 1fr; } }
.admin-input, .admin-select, .admin-textarea {
    width: 100%; padding: 10px 14px; border: 2px solid #e2e8f0;
    border-radius: 10px; font-size: 0.88rem; font-family: inherit;
    background: #f8fafc; color: #1e1b4b; transition: all 0.2s;
}
.admin-input:focus, .admin-select:focus, .admin-textarea:focus {
    outline: none; border-color: #22c55e;
    background: #0b0f14; box-shadow: 0 0 0 4px rgba(34,197,94,0.12);
}
.admin-textarea { resize: vertical; min-height: 80px; }
.text-mono { font-family: 'JetBrains Mono', monospace; }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px; border-radius: 10px; font-weight: 600; font-size: 0.88rem; cursor: pointer; border: none; transition: all 0.2s; text-decoration: none; }
.btn-primary {
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #0b0f14; box-shadow: 0 4px 14px rgba(34,197,94,0.35);
}
.btn-primary:hover { background: linear-gradient(135deg, #15803d, #166534); box-shadow: 0 6px 20px rgba(34,197,94,0.45); transform: translateY(-1px); }
.btn-sm { padding: 8px 16px; font-size: 0.82rem; }
.btn-xs { padding: 5px 12px; font-size: 0.74rem; border-radius: 8px; }
.btn-outline { background: transparent; border: 2px solid #c7d2fe; color: #15803d; }
.btn-outline:hover { background: rgba(34,197,94,0.08); border-color: #818cf8; color: #166534; }
.btn-danger { background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff; }
.btn-danger:hover { background: linear-gradient(135deg, #dc2626, #b91c1c); }

/* ===== BADGES ===== */
.admin-badge {
    display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 100px;
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;
}
.admin-badge.badge-active { background: rgba(16,185,129,0.12); color: #10b981; }
.admin-badge.badge-inactive { background: rgba(239,68,68,0.12); color: #ef4444; }
.admin-badge.badge-failed { background: rgba(239,68,68,0.12); color: #ef4444; }

/* ===== TOAST ===== */
#admin-toast-container { position: fixed; top: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.admin-toast { padding: 12px 20px; border-radius: 12px; font-weight: 600; font-size: 0.85rem; box-shadow: 0 8px 24px rgba(0,0,0,0.15); animation: toastIn 0.3s ease; }
.admin-toast.success { background: linear-gradient(135deg, #10b981, #059669); color: #fff; }
.admin-toast.error { background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff; }
.admin-toast.info { background: linear-gradient(135deg, #16a34a, #15803d); color: #fff; }
@keyframes toastIn { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: translateX(0); } }

/* ===== EMPTY STATE ===== */
.admin-empty { padding: 36px; text-align: center; }
.admin-empty-icon { font-size: 3rem; margin-bottom: 10px; }
.admin-empty h3 { color: #16a34a; font-size: 1rem; margin-bottom: 4px; }
.admin-empty p { color: #22c55e; font-size: 0.82rem; }

/* ===== SMS COMPOSER ===== */
.sms-composer { display: grid; grid-template-columns: 1fr 340px; gap: 18px; margin-bottom: 24px; }
.sms-composer-left { min-width: 0; }
.sms-composer-right { display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 900px) { .sms-composer { grid-template-columns: 1fr; } }
.sms-tabs { display: flex; gap: 2px; margin-bottom: 16px; border-radius: 12px; background: #111827; padding: 4px; }
.sms-tab { flex: 1; padding: 10px 16px; border: none; background: transparent; border-radius: 10px; font-weight: 600; font-size: 0.85rem; cursor: pointer; color: #16a34a; transition: all 0.2s; }
.sms-tab.active { background: linear-gradient(135deg, #16a34a, #15803d); color: #fff; box-shadow: 0 2px 8px rgba(34,197,94,0.3); }
.sms-tab:hover:not(.active) { background: rgba(34,197,94,0.1); }
.sms-template-picker { display: flex; flex-wrap: wrap; gap: 6px; }
.sms-template-chip { padding: 6px 14px; border-radius: 100px; font-size: 0.74rem; font-weight: 600; cursor: pointer; border: 2px solid #ddd6fe; color: #16a34a; background: #111827; transition: all 0.15s; }
.sms-template-chip:hover { border-color: #22c55e; background: #111827; }
.sms-template-chip.selected { background: linear-gradient(135deg, #22c55e, #16a34a); color: #fff; border-color: #22c55e; }
.sms-char-count { font-size: 0.72rem; text-align: right; margin-top: 4px; color: #a78bfa; }
.sms-char-count.warn { color: #f59e0b; }
.sms-char-count.over { color: #ef4444; }
.sms-preview-phone { background: linear-gradient(180deg, #1e1b4b, #0b0f14); border-radius: 20px; padding: 16px; box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.sms-preview-screen { background: #111827; border-radius: 12px; padding: 16px; min-height: 120px; }
.sms-preview-sender { font-size: 0.75rem; color: #22c55e; font-weight: 700; margin-bottom: 8px; }
.sms-preview-bubble { background: linear-gradient(135deg, #16a34a, #15803d); color: #fff; padding: 12px 16px; border-radius: 14px 14px 14px 4px; font-size: 0.85rem; line-height: 1.5; max-width: 85%; }

/* ===== SIDEBAR BACKDROP ===== */
.sidebar-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 190; }
.sidebar-backdrop.show { display: block; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .admin-sidebar { transform: translateX(-100%); transition: transform 0.3s; }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-main-area { margin-left: 0; }
}

/* ===== REPORT CHARTS ===== */
.report-chart-wrap { display: flex; flex-direction: column; gap: 8px; }
.report-bar-row { display: flex; align-items: center; gap: 10px; font-size: 0.82rem; }
.report-bar-label { width: 70px; color: #16a34a; font-weight: 600; flex-shrink: 0; }
.report-bar-track { flex: 1; height: 10px; background: #f3f0ff; border-radius: 5px; overflow: hidden; }
.report-bar-fill { height: 100%; background: linear-gradient(90deg, #22c55e, #f97316); border-radius: 5px; transition: width 0.5s ease; }
.report-bar-value { width: 45px; text-align: right; color: #1e1b4b; font-weight: 700; }

/* ===== LIVE PULSE ANIMATION ===== */
.live-pulse { animation: pulse 2s infinite; }
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

/* ===== GAYATHRI DARK GREEN THEME ===== */

body{
    background:#0b0f0c;
    color:#39ff14;
}

.card,
.panel,
.sidebar,
.table,
.modal{
    background:#111111;
    border:1px solid #39ff14;
    border-radius:12px;
    box-shadow:0 0 15px rgba(57,255,20,.15);
}

.btn{
    background:#141414;
    color:#39ff14;
    border:2px solid #39ff14;
    border-radius:6px;
    font-weight:600;
    transition:.2s;
}

.btn:hover{
    background:#1d1d1d;
    box-shadow:0 0 12px #39ff14;
}

input,
select,
textarea{
    background:#111;
    color:#39ff14;
    border:1px solid #39ff14;
}

table th{
    background:#101010;
    color:#39ff14;
}

table td{
    background:#141414;
    color:#39ff14;
}

/* STATUS */

.status-success,
.delivered{
    background:#0d220d;
    color:#39ff14;
    border:1px solid #39ff14;
}

.status-pending,
.pending{
    background:#302500;
    color:#ffc107;
    border:1px solid #ffc107;
}

.status-failed,
.failed,
.status-rejected,
.rejected,
.status-cancelled,
.cancelled{
    background:#250000;
    color:#ff3b3b;
    border:1px solid #ff3b3b;
}

/* ================================================================
   Gayathri Enterprises — UNIQUE COLORFUL Admin Panel CSS v17
   No :root variable conflicts — all colors hardcoded
   Every element has its own unique vibrant color
   ================================================================ */

/* ===== SIDEBAR: Deep purple gradient ===== */
.admin-sidebar {
    width: 260px;
    background: linear-gradient(185deg, #2d1b69 0%, #4c1d95 30%, #5b21b6 60%, #0b0f14 100%) !important;
    position: fixed; top: 0; left: 0; bottom: 0;
    z-index: 200; display: flex; flex-direction: column;
    border-right: 2px solid #22c55e;
    box-shadow: 4px 0 30px rgba(109,40,217,0.35);
    color: #e0e7ff;
}

/* Sidebar brand */
.admin-sb-brand {
    padding: 20px 18px 18px;
    display: flex; align-items: center; gap: 12px;
    text-decoration: none;
    background: linear-gradient(135deg, rgba(34,197,94,0.3), rgba(34,197,94,0.2));
    border-bottom: 2px solid #22c55e;
    position: relative;
}
.admin-sb-brand::before {
    content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
    height: 2px;
    background: linear-gradient(90deg, #f59e0b, #10b981, #06b6d4, #22c55e);
}
.admin-sb-brand img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 0 20px rgba(34,197,94,0.5); }
.admin-sb-brand strong { font-family: 'Space Grotesk', sans-serif; font-size: 0.95rem; font-weight: 700; color: #0b0f14; }
.admin-sb-brand small { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.1em; color: #c4b5fd; font-weight: 600; }

/* Sidebar user card */
.admin-sb-user {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 18px;
    background: rgba(255,255,255,0.08);
    margin: 8px 12px; border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
}
.admin-sb-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #22c55e);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.82rem; color: #fff;
    box-shadow: 0 0 14px rgba(245,158,11,0.4);
}
.admin-sb-userinfo strong { font-size: 0.82rem; color: #0b0f14; display: block; }
.admin-sb-userinfo small { font-size: 0.7rem; color: #a78bfa; }

/* Sidebar nav label */
.admin-sb-navlabel {
    font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.12em;
    color: #a78bfa; padding: 14px 20px 8px; font-weight: 700;
    display: flex; align-items: center; gap: 8px;
}
.admin-sb-navlabel::before {
    content: ''; width: 14px; height: 2px; background: #a78bfa;
    border-radius: 1px; opacity: 0.6;
}

/* Sidebar navigation */
.admin-sb-nav { flex: 1; overflow-y: auto; padding: 0 6px; display: flex; flex-direction: column; gap: 3px; }

/* Sidebar button (sb-btn) */
.sb-btn {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; border-radius: 10px;
    text-decoration: none; transition: all 0.2s;
    border: 1px solid transparent;
    position: relative;
    color: #c4b5fd;
}
.sb-btn:hover {
    background: rgba(255,255,255,0.1);
    color: #0b0f14;
    border-color: rgba(255,255,255,0.15);
    transform: translateX(3px);
}
.sb-btn.active {
    background: linear-gradient(135deg, var(--btn-color, #16a34a), color-mix(in srgb, var(--btn-color, #16a34a) 70%, #000));
    color: #0b0f14;
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 4px 16px rgba(34,197,94,0.4);
}
.sb-btn-icon {
    font-size: 1.2rem; width: 36px; height: 36px;
    border-radius: 8px; display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.1);
    flex-shrink: 0;
}
.sb-btn.active .sb-btn-icon { background: rgba(255,255,255,0.2); }
.sb-btn-text { display: flex; flex-direction: column; line-height: 1.2; }
.sb-btn-text strong { font-size: 0.82rem; font-weight: 600; }
.sb-btn-text small { font-size: 0.65rem; opacity: 0.7; }
.sb-btn-active-dot {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    width: 6px; height: 6px; border-radius: 50%;
    background: #0b0f14; box-shadow: 0 0 8px rgba(255,255,255,0.6);
}

/* Sidebar footer */
.admin-sb-footer {
    padding: 12px 10px; border-top: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.15);
    display: flex; flex-direction: column; gap: 4px;
}
.sb-btn-footer { color: #c4b5fd; }
.sb-btn-footer:hover { background: rgba(255,255,255,0.08); }
.sb-btn-logout { color: #fca5a5; }
.sb-btn-logout:hover { background: rgba(239,68,68,0.2); }

/* ===== MAIN AREA ===== */
.admin-main-area {
    margin-left: 260px; flex: 1; display: flex; flex-direction: column; min-height: 100vh;
}

/* ===== TOPBAR: Rainbow gradient border ===== */
.admin-topbar {
    height: 64px;
    background: linear-gradient(180deg, #0b0f14 0%, #111827 100%);
    position: sticky; top: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 28px;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, #16a34a, #22c55e, #22c55e, #f59e0b, #10b981, #06b6d4, #3b82f6) 1;
    box-shadow: 0 4px 20px rgba(34,197,94,0.12);
}
.admin-tb-search { position: relative; flex: 1; max-width: 400px; }
.admin-tb-search input {
    background: #111827; border: 2px solid #ddd6fe;
    border-radius: 10px; padding: 9px 14px 9px 38px; color: #1e1b4b;
    width: 100%; font-size: 0.85rem; transition: all 0.2s;
}
.admin-tb-search input:focus { outline: none; border-color: #22c55e; background: #fff; box-shadow: 0 0 0 3px rgba(34,197,94,0.15); }
.admin-tb-search .search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); opacity: 0.5; }

.admin-tb-right { display: flex; align-items: center; gap: 14px; }
.admin-tb-notif {
    position: relative; cursor: pointer; padding: 8px; border-radius: 8px;
    transition: all 0.15s; color: #475569; font-size: 1.1rem;
    background: #111827;
}
.admin-tb-notif:hover { background: #111827; }
.admin-tb-notif .dot {
    position: absolute; top: 6px; right: 6px;
    width: 8px; height: 8px; background: #ef4444;
    border-radius: 50%; border: 2px solid #fff;
}
.admin-tb-user {
    display: flex; align-items: center; gap: 10px;
    cursor: pointer; padding: 5px 12px 5px 5px;
    border-radius: 10px; transition: all 0.15s;
    background: #111827;
}
.admin-tb-user:hover { background: #111827; }
.admin-tb-avatar {
    width: 34px; height: 34px; border-radius: 50%;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.82rem; color: #fff;
    box-shadow: 0 4px 10px rgba(34,197,94,0.4);
}
.admin-tb-info strong { font-size: 0.82rem; display: block; color: #1e1b4b; }
.admin-tb-info span { font-size: 0.7rem; color: #22c55e; }

/* Mobile menu button */
.mobile-menu-btn {
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #fff; border: none; padding: 8px 14px; border-radius: 8px;
    font-size: 1.1rem; cursor: pointer; display: none;
    box-shadow: 0 2px 8px rgba(34,197,94,0.3);
}
@media (max-width: 900px) { .mobile-menu-btn { display: block; } }

/* ===== SHELL BACKGROUND: Multi-color radial+linear ===== */
.admin-shell {
    display: flex; min-height: 100vh;
    background:
        radial-gradient(ellipse at 2% 5%, rgba(34,197,94,0.18) 0%, transparent 45%),
        radial-gradient(ellipse at 95% 15%, rgba(34,197,94,0.15) 0%, transparent 40%),
        radial-gradient(ellipse at 85% 85%, rgba(6,182,212,0.14) 0%, transparent 40%),
        radial-gradient(ellipse at 10% 90%, rgba(16,185,129,0.12) 0%, transparent 38%),
        radial-gradient(ellipse at 50% 50%, rgba(245,158,11,0.08) 0%, transparent 55%),
        linear-gradient(155deg, #111827 0%, #111827 18%, #111827 35%, #111827 52%, #f0fdf4 68%, #111827 82%, #fff1f2 100%) !important;
}

/* ===== CONTENT BACKGROUND: Micro-dot pattern + glow ===== */
.admin-content {
    flex: 1; padding: 28px; max-width: 1500px; width: 100%;
    position: relative;
    background:
        radial-gradient(circle at 30% 10%, rgba(34,197,94,0.06) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(34,197,94,0.05) 0%, transparent 40%),
        radial-gradient(circle at 15% 85%, rgba(6,182,212,0.05) 0%, transparent 40%);
}
.admin-content::before {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(circle, rgba(34,197,94,0.06) 1px, transparent 1px);
    background-size: 36px 36px; pointer-events: none; z-index: 0;
}
.admin-content > * { position: relative; z-index: 1; }

/* ===== BREADCRUMB ===== */
.admin-breadcrumb { display: flex; gap: 5px; align-items: center; font-size: 0.75rem; color: #a78bfa; margin-bottom: 6px; }
.admin-breadcrumb a { color: #22c55e; text-decoration: none; }
.admin-breadcrumb a:hover { color: #16a34a; }
.admin-breadcrumb .bc-sep { color: #c4b5fd; }

/* ===== PAGE HEADER: Gradient accent bar ===== */
.admin-page-header {
    margin-bottom: 22px; padding: 18px 22px;
    background: linear-gradient(135deg, rgba(34,197,94,0.08) 0%, rgba(34,197,94,0.04) 50%, transparent 100%);
    border-radius: 16px; border: 1px solid rgba(34,197,94,0.12);
    position: relative;
}
.admin-page-header::before {
    content: ''; position: absolute; left: 0; top: 12px; bottom: 12px;
    width: 5px; border-radius: 0 4px 4px 0;
    background: linear-gradient(180deg, #16a34a, #22c55e, #22c55e);
}
.admin-page-header h1 {
    font-size: 1.65rem; font-weight: 700; margin-bottom: 4px;
    background: linear-gradient(135deg, #166534, #22c55e);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.admin-page-header p { color: #16a34a; font-size: 0.9rem; }

/* ===== TICKER BAR: Vibrant animated gradient ===== */
.admin-ticker {
    display: flex; flex-wrap: wrap; gap: 8px;
    padding: 16px 20px; margin-bottom: 24px;
    border-radius: 16px;
    background: linear-gradient(105deg, #0b0f14 0%, #166534 20%, #16a34a 45%, #15803d 65%, #166534 100%) !important;
    box-shadow: 0 8px 28px rgba(34,197,94,0.3), inset 0 1px 0 rgba(255,255,255,0.15);
    position: relative; overflow: hidden;
}
.admin-ticker::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.08) 50%, transparent 100%);
    animation: tickerShimmer 3s ease-in-out infinite;
}
@keyframes tickerShimmer {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}
.admin-ticker-item {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 18px;
    background: rgba(255,255,255,0.14); backdrop-filter: blur(8px);
    border-radius: 12px; color: #e0e7ff;
    font-size: 0.84rem; font-weight: 500;
    border: 1px solid rgba(255,255,255,0.12);
    position: relative; z-index: 1;
}
.admin-ticker-item strong { color: #0b0f14; font-size: 1.1rem; font-weight: 800; }
.admin-ticker-dot.green { background: #4ade80; box-shadow: 0 0 10px #4ade80; }

/* ===== STATS GRID + CARDS ===== */
.admin-stats-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px; margin-bottom: 24px;
}

/* Base stat card */
.admin-stat-card {
    background: #0b0f14; border: 1px solid rgba(0,0,0,0.06);
    border-radius: 16px; padding: 22px; transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    position: relative; overflow: hidden;
}
.admin-stat-card::before {
    content: ''; position: absolute; top: 0; right: 0;
    width: 80px; height: 80px; border-radius: 50%;
    opacity: 0.1;
}
.admin-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 36px rgba(0,0,0,0.12);
}
.admin-stat-card .asc-icon { font-size: 1.5rem; margin-bottom: 12px; width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.admin-stat-card .asc-value { font-size: 2rem; font-weight: 800; font-family: 'Space Grotesk', sans-serif; line-height: 1.1; }
.admin-stat-card .asc-label { font-size: 0.78rem; margin-top: 3px; font-weight: 500; }
.admin-stat-card .asc-change { display: inline-flex; align-items: center; gap: 3px; font-size: 0.72rem; margin-top: 8px; font-weight: 600; padding: 3px 10px; border-radius: 100px; }

/* Blue card */
.admin-stat-card.accent-blue { border-color: rgba(59,130,246,0.3); background: linear-gradient(135deg, #111827 0%, #111827 50%, #0b0f14 100%); }
.admin-stat-card.accent-blue::before { background: #3b82f6; }
.admin-stat-card.accent-blue .asc-icon { background: rgba(59,130,246,0.15); }
.admin-stat-card.accent-blue .asc-value { color: #1e40af; }
.admin-stat-card.accent-blue .asc-label { color: #1d4ed8; }
.admin-stat-card.accent-blue:hover { border-color: #3b82f6; box-shadow: 0 12px 32px rgba(59,130,246,0.2); }

/* Green card */
.admin-stat-card.accent-green { border-color: rgba(16,185,129,0.3); background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 50%, #0b0f14 100%); }
.admin-stat-card.accent-green::before { background: #10b981; }
.admin-stat-card.accent-green .asc-icon { background: rgba(16,185,129,0.15); }
.admin-stat-card.accent-green .asc-value { color: #166534; }
.admin-stat-card.accent-green .asc-label { color: #15803d; }
.admin-stat-card.accent-green:hover { border-color: #10b981; box-shadow: 0 12px 32px rgba(16,185,129,0.2); }

/* Purple card */
.admin-stat-card.accent-purple { border-color: rgba(34,197,94,0.3); background: linear-gradient(135deg, #111827 0%, #111827 50%, #0b0f14 100%); }
.admin-stat-card.accent-purple::before { background: #22c55e; }
.admin-stat-card.accent-purple .asc-icon { background: rgba(34,197,94,0.15); }
.admin-stat-card.accent-purple .asc-value { color: #6b21a8; }
.admin-stat-card.accent-purple .asc-label { color: #7e22ce; }
.admin-stat-card.accent-purple:hover { border-color: #22c55e; box-shadow: 0 12px 32px rgba(34,197,94,0.2); }

/* Amber card */
.admin-stat-card.accent-amber { border-color: rgba(245,158,11,0.3); background: linear-gradient(135deg, #111827 0%, #111827 50%, #0b0f14 100%); }
.admin-stat-card.accent-amber::before { background: #f59e0b; }
.admin-stat-card.accent-amber .asc-icon { background: rgba(245,158,11,0.15); }
.admin-stat-card.accent-amber .asc-value { color: #92400e; }
.admin-stat-card.accent-amber .asc-label { color: #b45309; }
.admin-stat-card.accent-amber:hover { border-color: #f59e0b; box-shadow: 0 12px 32px rgba(245,158,11,0.2); }

/* Cyan card */
.admin-stat-card.accent-cyan { border-color: rgba(6,182,212,0.3); background: linear-gradient(135deg, #111827 0%, #111827 50%, #0b0f14 100%); }
.admin-stat-card.accent-cyan::before { background: #06b6d4; }
.admin-stat-card.accent-cyan .asc-icon { background: rgba(6,182,212,0.15); }
.admin-stat-card.accent-cyan .asc-value { color: #155e75; }
.admin-stat-card.accent-cyan .asc-label { color: #0e7490; }
.admin-stat-card.accent-cyan:hover { border-color: #06b6d4; box-shadow: 0 12px 32px rgba(6,182,212,0.2); }

/* Orange card */
.admin-stat-card.accent-orange { border-color: rgba(249,115,22,0.3); background: linear-gradient(135deg, #111827 0%, #111827 50%, #0b0f14 100%); }
.admin-stat-card.accent-orange::before { background: #f97316; }
.admin-stat-card.accent-orange .asc-icon { background: rgba(249,115,22,0.15); }
.admin-stat-card.accent-orange .asc-value { color: #9a3412; }
.admin-stat-card.accent-orange .asc-label { color: #c2410c; }
.admin-stat-card.accent-orange:hover { border-color: #f97316; box-shadow: 0 12px 32px rgba(249,115,22,0.2); }

/* Red card */
.admin-stat-card.accent-red { border-color: rgba(239,68,68,0.3); background: linear-gradient(135deg, #111827 0%, #111827 50%, #0b0f14 100%); }
.admin-stat-card.accent-red::before { background: #ef4444; }
.admin-stat-card.accent-red .asc-icon { background: rgba(239,68,68,0.15); }
.admin-stat-card.accent-red .asc-value { color: #991b1b; }
.admin-stat-card.accent-red .asc-label { color: #b91c1c; }
.admin-stat-card.accent-red:hover { border-color: #ef4444; box-shadow: 0 12px 32px rgba(239,68,68,0.2); }

/* Pink card */
.admin-stat-card.accent-pink { border-color: rgba(34,197,94,0.3); background: linear-gradient(135deg, #111827 0%, #fce7f3 50%, #0b0f14 100%); }
.admin-stat-card.accent-pink::before { background: #22c55e; }
.admin-stat-card.accent-pink .asc-icon { background: rgba(34,197,94,0.15); }
.admin-stat-card.accent-pink .asc-value { color: #166534; }
.admin-stat-card.accent-pink .asc-label { color: #15803d; }
.admin-stat-card.accent-pink:hover { border-color: #22c55e; box-shadow: 0 12px 32px rgba(34,197,94,0.2); }

/* Glow effect */
.admin-stat-card.glow { position: relative; }
.admin-stat-card.glow::after {
    content: ''; position: absolute; inset: -1px; border-radius: 17px;
    background: linear-gradient(135deg, var(--card-color, #16a34a), transparent 60%);
    opacity: 0.15; z-index: -1; filter: blur(8px);
}
.admin-stat-card .asc-change.up { background: rgba(16,185,129,0.12); color: #10b981; }
.admin-stat-card .asc-change.down { background: rgba(239,68,68,0.12); color: #ef4444; }

/* ===== PANELS ===== */
.admin-panel {
    background: #0b0f14; border-radius: 16px; padding: 22px;
    border: 1px solid rgba(34,197,94,0.1);
    box-shadow: 0 2px 12px rgba(34,197,94,0.04);
    transition: all 0.25s;
    border-top: 4px solid #16a34a;
}
.admin-panel:hover { box-shadow: 0 8px 28px rgba(34,197,94,0.1); }

.admin-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.admin-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 1100px) { .admin-grid-2 { grid-template-columns: 1fr; } .admin-grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) { .admin-grid-3 { grid-template-columns: 1fr; } }

/* Alternate panel colors */
.admin-grid-2 > .admin-panel:nth-child(2) { border-top-color: #06b6d4; }
.admin-grid-2 > .admin-panel:nth-child(3) { border-top-color: #22c55e; }
.admin-grid-3 > .admin-panel:nth-child(2) { border-top-color: #10b981; }
.admin-grid-3 > .admin-panel:nth-child(3) { border-top-color: #f59e0b; }

/* Panel header with glowing dot */
.admin-panel-header {
    display: flex; align-items: center; justify-content: space-between;
    margin: -22px -22px 18px -22px;
    padding: 16px 22px 12px 38px;
    background: linear-gradient(90deg, rgba(34,197,94,0.07), transparent 60%);
    border-bottom: 1px solid rgba(34,197,94,0.1);
    border-radius: 16px 16px 0 0;
    position: relative;
}
.admin-panel-header::before {
    content: ''; position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
    width: 9px; height: 9px; border-radius: 50%;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    box-shadow: 0 0 12px rgba(34,197,94,0.6);
}
.admin-panel-header h3 { font-size: 0.95rem; color: #1e1b4b; font-weight: 700; }

/* ===== ALERT BOXES ===== */
.admin-alert { border-radius: 12px; padding: 14px 18px; margin-bottom: 18px; font-weight: 600; font-size: 0.88rem; }
.admin-alert.alert-danger { background: linear-gradient(135deg, #111827, #111827); border: 1px solid #fecaca; color: #991b1b; }
.admin-alert.alert-success { background: linear-gradient(135deg, #f0fdf4, #dcfce7); border: 1px solid #bbf7d0; color: #166534; }

/* ===== CHART BARS ===== */
.admin-chart-bar {
    background: linear-gradient(180deg, #16a34a 0%, #22c55e 35%, #22c55e 65%, #f97316 100%) !important;
    border-radius: 4px 4px 0 0; min-height: 4px;
    box-shadow: 0 1px 8px rgba(34,197,94,0.35);
}
.admin-chart-bar-wrap { display: flex; align-items: flex-end; justify-content: space-around; height: 180px; gap: 4px; padding: 0 8px; }
.admin-chart-bar-wrap .admin-chart-bar { flex: 1; }
.admin-chart-labels { display: flex; justify-content: space-around; gap: 4px; padding: 8px 8px 0; font-size: 0.7rem; color: #22c55e; font-weight: 600; }
.admin-chart-legend { display: flex; gap: 16px; padding: 10px 0 0; font-size: 0.75rem; color: #16a34a; }
.admin-chart-legend-item { display: flex; align-items: center; gap: 6px; }
.admin-chart-legend-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* ===== SMS TIMELINE ===== */
.sms-timeline { display: flex; flex-direction: column; gap: 1px; }
.sms-timeline-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; border-left: 4px solid #10b981; transition: all 0.15s; }
.sms-timeline-item:hover { background: rgba(34,197,94,0.04); }
.sms-timeline-item.sent { border-left-color: #10b981; background: rgba(16,185,129,0.03); }
.sms-timeline-item.failed { border-left-color: #ef4444; background: rgba(239,68,68,0.03); }
.sms-timeline-item.queued { border-left-color: #f59e0b; background: rgba(245,158,11,0.03); }
.sms-timeline-icon { font-size: 1rem; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,0.8); flex-shrink: 0; }
.sms-timeline-item.sent .sms-timeline-icon { color: #10b981; }
.sms-timeline-item.failed .sms-timeline-icon { color: #ef4444; }
.sms-timeline-item.queued .sms-timeline-icon { color: #f59e0b; }
.sms-timeline-body { flex: 1; min-width: 0; }
.stb-recipient { font-size: 0.82rem; font-weight: 600; color: #1e1b4b; font-family: 'JetBrains Mono', monospace; }
.stb-msg { font-size: 0.75rem; color: #6b7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sms-timeline-meta { text-align: right; flex-shrink: 0; }
.stm-status { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
.sms-timeline-item.sent .stm-status { color: #10b981; }
.sms-timeline-item.failed .stm-status { color: #ef4444; }
.stm-time { font-size: 0.68rem; color: #9ca3af; margin-top: 2px; }

/* ===== SMPP CONNECTION CARDS ===== */
.smpp-conn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.smpp-conn-card {
    background: #fff; border: 1px solid rgba(0,0,0,0.06);
    border-radius: 14px; padding: 16px;
    border-left: 5px solid #16a34a;
    transition: all 0.2s;
}
.smpp-conn-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.08); }
.smpp-conn-card.live { border-left-color: #10b981; background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #0b0f14 100%); }
.smpp-conn-card.dead { border-left-color: #ef4444; background: linear-gradient(135deg, #111827 0%, #fff5f5 50%, #0b0f14 100%); }
.smpp-conn-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.smpp-conn-name { font-weight: 700; font-size: 0.9rem; color: #1e1b4b; }
.smpp-conn-status { display: flex; align-items: center; gap: 6px; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; }
.smpp-conn-dot { width: 8px; height: 8px; border-radius: 50%; }
.smpp-conn-dot.live { background: #10b981; box-shadow: 0 0 8px rgba(16,185,129,0.5); }
.smpp-conn-dot.dead { background: #ef4444; }
.smpp-conn-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; font-size: 0.72rem; color: #6b7280; }
.smpp-conn-meta div { display: flex; flex-direction: column; }
.smpp-conn-meta strong { color: #1e1b4b; font-size: 0.78rem; }
.conn-health-bar { height: 4px; background: #e5e7eb; border-radius: 2px; margin-top: 10px; overflow: hidden; }
.conn-health-fill { height: 100%; border-radius: 2px; transition: width 0.5s ease; }
.conn-health-fill.good { background: linear-gradient(90deg, #10b981, #34d399); }
.conn-health-fill.bad { background: linear-gradient(90deg, #ef4444, #f87171); }
.smpp-conn-actions { display: flex; gap: 6px; margin-top: 10px; }

/* ===== TABLES ===== */
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.admin-table thead th {
    background: linear-gradient(180deg, #111827, #111827) !important;
    color: #4c1d95 !important;
    font-weight: 700; font-size: 0.75rem; text-transform: uppercase;
    letter-spacing: 0.05em; padding: 12px 14px;
    border-bottom: 2px solid #c4b5fd !important;
    text-align: left;
}
.admin-table tbody td { padding: 10px 14px; border-bottom: 1px solid #f3f0ff; color: #1e1b4b; }
.admin-table tbody tr:hover { background: rgba(34,197,94,0.05); }

/* ===== FORMS ===== */
.admin-form-group { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.admin-form-group label { font-size: 0.8rem; font-weight: 600; color: #4c1d95; }
.admin-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.admin-form-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 768px) { .admin-form-row, .admin-form-row-3 { grid-template-columns: 1fr; } }
.admin-input, .admin-select, .admin-textarea {
    width: 100%; padding: 10px 14px; border: 2px solid #e2e8f0;
    border-radius: 10px; font-size: 0.88rem; font-family: inherit;
    background: #f8fafc; color: #1e1b4b; transition: all 0.2s;
}
.admin-input:focus, .admin-select:focus, .admin-textarea:focus {
    outline: none; border-color: #22c55e;
    background: #0b0f14; box-shadow: 0 0 0 4px rgba(34,197,94,0.12);
}
.admin-textarea { resize: vertical; min-height: 80px; }
.text-mono { font-family: 'JetBrains Mono', monospace; }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px; border-radius: 10px; font-weight: 600; font-size: 0.88rem; cursor: pointer; border: none; transition: all 0.2s; text-decoration: none; }
.btn-primary {
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #0b0f14; box-shadow: 0 4px 14px rgba(34,197,94,0.35);
}
.btn-primary:hover { background: linear-gradient(135deg, #15803d, #166534); box-shadow: 0 6px 20px rgba(34,197,94,0.45); transform: translateY(-1px); }
.btn-sm { padding: 8px 16px; font-size: 0.82rem; }
.btn-xs { padding: 5px 12px; font-size: 0.74rem; border-radius: 8px; }
.btn-outline { background: transparent; border: 2px solid #c7d2fe; color: #15803d; }
.btn-outline:hover { background: rgba(34,197,94,0.08); border-color: #818cf8; color: #166534; }
.btn-danger { background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff; }
.btn-danger:hover { background: linear-gradient(135deg, #dc2626, #b91c1c); }

/* ===== BADGES ===== */
.admin-badge {
    display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 100px;
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;
}
.admin-badge.badge-active { background: rgba(16,185,129,0.12); color: #10b981; }
.admin-badge.badge-inactive { background: rgba(239,68,68,0.12); color: #ef4444; }
.admin-badge.badge-failed { background: rgba(239,68,68,0.12); color: #ef4444; }

/* ===== TOAST ===== */
#admin-toast-container { position: fixed; top: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.admin-toast { padding: 12px 20px; border-radius: 12px; font-weight: 600; font-size: 0.85rem; box-shadow: 0 8px 24px rgba(0,0,0,0.15); animation: toastIn 0.3s ease; }
.admin-toast.success { background: linear-gradient(135deg, #10b981, #059669); color: #fff; }
.admin-toast.error { background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff; }
.admin-toast.info { background: linear-gradient(135deg, #16a34a, #15803d); color: #fff; }
@keyframes toastIn { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: translateX(0); } }

/* ===== EMPTY STATE ===== */
.admin-empty { padding: 36px; text-align: center; }
.admin-empty-icon { font-size: 3rem; margin-bottom: 10px; }
.admin-empty h3 { color: #16a34a; font-size: 1rem; margin-bottom: 4px; }
.admin-empty p { color: #22c55e; font-size: 0.82rem; }

/* ===== SMS COMPOSER ===== */
.sms-composer { display: grid; grid-template-columns: 1fr 340px; gap: 18px; margin-bottom: 24px; }
.sms-composer-left { min-width: 0; }
.sms-composer-right { display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 900px) { .sms-composer { grid-template-columns: 1fr; } }
.sms-tabs { display: flex; gap: 2px; margin-bottom: 16px; border-radius: 12px; background: #111827; padding: 4px; }
.sms-tab { flex: 1; padding: 10px 16px; border: none; background: transparent; border-radius: 10px; font-weight: 600; font-size: 0.85rem; cursor: pointer; color: #16a34a; transition: all 0.2s; }
.sms-tab.active { background: linear-gradient(135deg, #16a34a, #15803d); color: #fff; box-shadow: 0 2px 8px rgba(34,197,94,0.3); }
.sms-tab:hover:not(.active) { background: rgba(34,197,94,0.1); }
.sms-template-picker { display: flex; flex-wrap: wrap; gap: 6px; }
.sms-template-chip { padding: 6px 14px; border-radius: 100px; font-size: 0.74rem; font-weight: 600; cursor: pointer; border: 2px solid #ddd6fe; color: #16a34a; background: #111827; transition: all 0.15s; }
.sms-template-chip:hover { border-color: #22c55e; background: #111827; }
.sms-template-chip.selected { background: linear-gradient(135deg, #22c55e, #16a34a); color: #fff; border-color: #22c55e; }
.sms-char-count { font-size: 0.72rem; text-align: right; margin-top: 4px; color: #a78bfa; }
.sms-char-count.warn { color: #f59e0b; }
.sms-char-count.over { color: #ef4444; }
.sms-preview-phone { background: linear-gradient(180deg, #1e1b4b, #0b0f14); border-radius: 20px; padding: 16px; box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.sms-preview-screen { background: #111827; border-radius: 12px; padding: 16px; min-height: 120px; }
.sms-preview-sender { font-size: 0.75rem; color: #22c55e; font-weight: 700; margin-bottom: 8px; }
.sms-preview-bubble { background: linear-gradient(135deg, #16a34a, #15803d); color: #fff; padding: 12px 16px; border-radius: 14px 14px 14px 4px; font-size: 0.85rem; line-height: 1.5; max-width: 85%; }

/* ===== SIDEBAR BACKDROP ===== */
.sidebar-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 190; }
.sidebar-backdrop.show { display: block; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .admin-sidebar { transform: translateX(-100%); transition: transform 0.3s; }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-main-area { margin-left: 0; }
}

/* ===== REPORT CHARTS ===== */
.report-chart-wrap { display: flex; flex-direction: column; gap: 8px; }
.report-bar-row { display: flex; align-items: center; gap: 10px; font-size: 0.82rem; }
.report-bar-label { width: 70px; color: #16a34a; font-weight: 600; flex-shrink: 0; }
.report-bar-track { flex: 1; height: 10px; background: #f3f0ff; border-radius: 5px; overflow: hidden; }
.report-bar-fill { height: 100%; background: linear-gradient(90deg, #22c55e, #f97316); border-radius: 5px; transition: width 0.5s ease; }
.report-bar-value { width: 45px; text-align: right; color: #1e1b4b; font-weight: 700; }

/* ===== LIVE PULSE ANIMATION ===== */
.live-pulse { animation: pulse 2s infinite; }
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

/* ===== GAYATHRI DARK GREEN THEME ===== */

body{
    background:#0b0f0c;
    color:#39ff14;
}

.card,
.panel,
.sidebar,
.table,
.modal{
    background:#111111;
    border:1px solid #39ff14;
    border-radius:12px;
    box-shadow:0 0 15px rgba(57,255,20,.15);
}

.btn{
    background:#141414;
    color:#39ff14;
    border:2px solid #39ff14;
    border-radius:6px;
    font-weight:600;
    transition:.2s;
}

.btn:hover{
    background:#1d1d1d;
    box-shadow:0 0 12px #39ff14;
}

input,
select,
textarea{
    background:#111;
    color:#39ff14;
    border:1px solid #39ff14;
}

table th{
    background:#101010;
    color:#39ff14;
}

table td{
    background:#141414;
    color:#39ff14;
}

/* STATUS */

.status-success,
.delivered{
    background:#0d220d;
    color:#39ff14;
    border:1px solid #39ff14;
}

.status-pending,
.pending{
    background:#302500;
    color:#ffc107;
    border:1px solid #ffc107;
}

.status-failed,
.failed,
.status-rejected,
.rejected,
.status-cancelled,
.cancelled{
    background:#250000;
    color:#ff3b3b;
    border:1px solid #ff3b3b;
}


/* ===== FINAL DARK GREEN OVERRIDE ===== */

html,body{
    background:#0b0f0c !important;
    color:#39ff14 !important;
}

.card,.panel,.modal,.table,.sidebar,.content,.container{
    background:#111 !important;
    color:#39ff14 !important;
    border:1px solid #39ff14 !important;
}

.btn,
.btn-primary,
.btn-outline{
    background:#141414 !important;
    color:#39ff14 !important;
    border:2px solid #39ff14 !important;
    border-radius:4px !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.08),
        0 5px 14px rgba(57,255,20,.20) !important;
    transition:.2s;
}

.btn:hover,
.btn-primary:hover,
.btn-outline:hover{
    background:#1f1f1f !important;
    color:#39ff14 !important;
    box-shadow:0 0 18px #39ff14 !important;
}

.btn-danger,
.failed,
.rejected,
.cancelled,
.status-failed,
.status-rejected,
.status-cancelled{
    background:#2a0000 !important;
    color:#ff4040 !important;
    border:2px solid #ff4040 !important;
}

.delivered,
.status-success{
    background:#102810 !important;
    color:#39ff14 !important;
    border:2px solid #39ff14 !important;
}

.pending,
.status-pending{
    background:#2b2300 !important;
    color:#ffd54a !important;
    border:2px solid #ffd54a !important;
}

input,select,textarea{
    background:#101010 !important;
    color:#39ff14 !important;
    border:1px solid #39ff14 !important;
}

table th{
    background:#090909 !important;
    color:#39ff14 !important;
}

table td{
    background:#141414 !important;
    color:#39ff14 !important;
}

/* ===== CYBER OVERRIDE ===== */

.admin-sidebar{
    background:#05070b !important;
    border-right:2px solid #22c55e !important;
}

.admin-topbar{
    background:#05070b !important;
    border-bottom:2px solid #22c55e !important;
}

.admin-content{
    background:#0b0f14 !important;
}

.admin-stat-card{
    background:#111827 !important;
    border:1px solid #22c55e !important;
    color:#22c55e !important;
}

.admin-stat-card *{
    color:#22c55e !important;
}

.sb-btn{
    border-radius:0 !important;
    color:#22c55e !important;
}

.sb-btn:hover,
.sb-btn.active{
    background:#14532d !important;
}

table,
th,
td{
    background:#111827 !important;
    color:#22c55e !important;
    border-color:#22c55e !important;
}

button,
.btn{
    border-radius:0 !important;
    border:2px solid #22c55e !important;
}

body{
    background:#0b0f14 !important;
    color:#22c55e !important;
}

