/* =====================================================
   DARKMODE.CSS
   DocShield AI – Premium Enterprise Dark Theme
   Top 1% Hackathon Winning Medical-Tech UI Theme
===================================================== */


/* =====================================================
   ROOT COLOR SYSTEM
===================================================== */

:root {
    --bg-primary: #07111f;
    --bg-secondary: #0c1628;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-glass: rgba(255, 255, 255, 0.05);

    --text-primary: #ffffff;
    --text-secondary: rgba(255,255,255,0.78);
    --text-muted: rgba(255,255,255,0.60);

    --border-light: rgba(255,255,255,0.08);
    --border-strong: rgba(0,255,255,0.18);

    --accent-primary: #00f0ff;
    --accent-secondary: #008cff;
    --accent-danger: #ff5a5a;
    --accent-warning: #ffb347;
    --accent-success: #2dffb5;

    --shadow-soft: 0 20px 60px rgba(0,0,0,0.12);
    --shadow-strong: 0 25px 70px rgba(0,0,0,0.20);

    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
}


/* =====================================================
   GLOBAL DARK BACKGROUND
===================================================== */

html,
body {
    background:
        radial-gradient(
            circle at top right,
            rgba(0,255,255,0.04),
            transparent 30%
        ),
        radial-gradient(
            circle at bottom left,
            rgba(0,140,255,0.04),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #050b16,
            #081120,
            #0b1526
        );
    color: var(--text-primary);
    min-height: 100vh;
}


/* =====================================================
   GLASS SURFACE ENHANCEMENT
===================================================== */

.glass {
    background: rgba(255,255,255,0.045);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-soft);
}


/* =====================================================
   SECTION DARK THEMES
===================================================== */

.section.dark {
    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,0.015),
            rgba(255,255,255,0.025)
        );
    border-top: 1px solid rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.03);
}


/* =====================================================
   NAVBAR DARK STYLE
===================================================== */

.navbar,
.main-navbar {
    background: rgba(7, 17, 31, 0.75);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    backdrop-filter: blur(18px);
}

.navbar a,
.main-navbar a {
    color: var(--text-secondary);
}

.navbar a:hover,
.main-navbar a:hover,
.navbar a.active,
.main-navbar a.active {
    color: var(--accent-primary);
}


/* =====================================================
   SIDEBAR DARK STYLE
===================================================== */

.main-sidebar {
    background:
        linear-gradient(
            180deg,
            rgba(10,20,35,0.95),
            rgba(8,16,28,0.96)
        );
    border-right: 1px solid rgba(255,255,255,0.05);
    box-shadow: var(--shadow-soft);
}

.sidebar-menu a {
    color: var(--text-secondary);
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: rgba(0,255,255,0.06);
    border-left: 3px solid var(--accent-primary);
    color: white;
}


/* =====================================================
   CARD DARK SYSTEM
===================================================== */

.card,
.feature-card,
.kpi-card {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: var(--shadow-soft);
}

.card h3,
.feature-card h3 {
    color: var(--text-secondary);
}

.card p,
.feature-card p {
    color: var(--text-muted);
}


/* =====================================================
   BUTTON DARK POLISH
===================================================== */

.btn.primary {
    background:
        linear-gradient(
            135deg,
            var(--accent-primary),
            var(--accent-secondary)
        );
    color: #04101d;
}

.btn.ghost {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    color: white;
}

.btn.ghost:hover {
    background: rgba(255,255,255,0.07);
}


/* =====================================================
   FORM INPUT DARK STYLE
===================================================== */

input,
textarea,
select {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    color: white;
}

input::placeholder,
textarea::placeholder {
    color: rgba(255,255,255,0.45);
}

input:focus,
textarea:focus,
select:focus {
    border-color: rgba(0,255,255,0.35);
    box-shadow:
        0 0 0 4px rgba(0,255,255,0.03);
}


/* =====================================================
   TABLE DARK UI
===================================================== */

.table-container {
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.05);
}

table thead th {
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

table tbody td {
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

table tbody tr:hover {
    background: rgba(255,255,255,0.02);
}


/* =====================================================
   TIMELINE DARK UI
===================================================== */

.timeline-item {
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.05);
}

.timeline-item span {
    background:
        linear-gradient(
            135deg,
            rgba(0,255,255,0.12),
            rgba(0,140,255,0.08)
        );
}


/* =====================================================
   NOTIFICATION DARK UI
===================================================== */

.notification {
    background:
        linear-gradient(
            135deg,
            rgba(255,90,90,0.95),
            rgba(255,130,90,0.92)
        );
    box-shadow: var(--shadow-strong);
}


/* =====================================================
   CHATBOT DARK PANEL
===================================================== */

.chatbot-popup {
    background: rgba(10, 18, 30, 0.96);
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: var(--shadow-strong);
}

.bot-message {
    background: rgba(255,255,255,0.04);
}

.user-message {
    background:
        linear-gradient(
            135deg,
            rgba(0,255,255,0.12),
            rgba(0,140,255,0.08)
        );
}


/* =====================================================
   FRAUD ALERT COLORS
===================================================== */

.critical {
    color: var(--accent-danger);
}

.high {
    color: var(--accent-warning);
}

.safe,
.low {
    color: var(--accent-success);
}


/* =====================================================
   FOOTER DARK STYLE
===================================================== */

.footer,
.main-footer {
    background:
        linear-gradient(
            180deg,
            rgba(6,12,20,0.90),
            rgba(4,8,14,0.96)
        );
    border-top: 1px solid rgba(255,255,255,0.04);
}

.footer p,
.main-footer p {
    color: rgba(255,255,255,0.65);
}


/* =====================================================
   SCROLLBAR DARK DESIGN
===================================================== */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.02);
}

::-webkit-scrollbar-thumb {
    background:
        linear-gradient(
            180deg,
            rgba(0,255,255,0.35),
            rgba(0,140,255,0.28)
        );
    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background:
        linear-gradient(
            180deg,
            rgba(0,255,255,0.55),
            rgba(0,140,255,0.45)
        );
}