/*
 ALUQAB AI V7.5 — Luminous Edition
 Premium Navy / Cyan / Gold
*/

/* ===== DESIGN SYSTEM ===== */

:root {
    --lux-navy: #081526;
    --lux-navy-soft: #10253c;
    --lux-cyan: #46dcff;
    --lux-gold: #f0c76c;
    --lux-gold-bright: #ffdf93;
    --lux-white: #ffffff;
    --lux-text: #12223a;
    --lux-muted: #74869c;
    --lux-border: rgba(76, 196, 232, .22);
}

/* ===== SIDEBAR ===== */

#chat-screen #sidebar {
    background:
        radial-gradient(
            circle at 90% 5%,
            rgba(44, 162, 219, .16),
            transparent 43%
        ),
        linear-gradient(
            180deg,
            #0b1b30 0%,
            #10263c 58%,
            #081526 100%
        ) !important;

    color: #f0f7ff !important;

    border-inline-start:
        1px solid rgba(70, 220, 255, .35) !important;

    box-shadow:
        -8px 0 32px rgba(6, 20, 38, .14);
}

/* Sidebar header */

#chat-screen #sidebar .sidebar-header {
    background: transparent !important;
    border-bottom: 0 !important;
    position: relative;
    padding-bottom: 20px;
}

/* Glowing divider under branding */

#chat-screen #sidebar .sidebar-header::after {
    content: "";
    position: absolute;
    inset-inline: 16px;
    bottom: 0;
    height: 2px;
    border-radius: 50px;

    background: linear-gradient(
        90deg,
        transparent,
        var(--lux-cyan),
        var(--lux-gold),
        transparent
    );

    box-shadow:
        0 0 9px rgba(70, 220, 255, .65),
        0 0 16px rgba(240, 199, 108, .3);
}

/* Sidebar text */

#chat-screen #sidebar .sidebar-label,
#chat-screen #sidebar .sidebar-brand,
#chat-screen #sidebar .sidebar-footer {
    color: #edf6ff;
}

/* ===== SECTION DIVIDERS ===== */

/* Light divider above footer */

#chat-screen #sidebar .sidebar-footer {
    position: relative;
    border-top: 0 !important;
    padding-top: 22px;
}

#chat-screen #sidebar .sidebar-footer::before {
    content: "";
    position: absolute;
    top: 5px;
    inset-inline: 15px;
    height: 2px;

    background: linear-gradient(
        90deg,
        transparent,
        #44cfff,
        #e8bb5d,
        transparent
    );

    box-shadow:
        0 0 10px rgba(68, 207, 255, .48);
}

/* ===== SIDEBAR BUTTONS ===== */

#chat-screen #sidebar button,
#chat-screen #sidebar a {
    border-radius: 13px;
    transition:
        transform .2s ease,
        background .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}

/* Referral promotion */

#open-referrals {
    background: linear-gradient(
        135deg,
        #152b45,
        #203d5a
    ) !important;

    color: #ffdc83 !important;

    border:
        1px solid rgba(240, 199, 108, .65) !important;

    box-shadow:
        inset 0 0 12px rgba(240, 199, 108, .05),
        0 0 12px rgba(240, 199, 108, .10);
}

/* Admin referrals */

#admin-referrals-link:not([hidden]) {
    background: linear-gradient(
        135deg,
        #dcae4d,
        #ffe4a1
    ) !important;

    color: #13243c !important;

    border:
        1px solid #ffe2a3 !important;

    box-shadow:
        0 0 12px rgba(240, 199, 108, .28),
        0 0 22px rgba(240, 199, 108, .10);
}

/* Feedback */

#open-feedback {
    background: linear-gradient(
        135deg,
        #133149,
        #17465e
    ) !important;

    color: #c5f6ff !important;

    border:
        1px solid rgba(70, 220, 255, .48) !important;

    box-shadow:
        0 0 12px rgba(70, 220, 255, .10);
}

/* Keep admin button visibility controlled by JS */

#admin-referrals-link[hidden] {
    display: none !important;
}

/* Hover glow */

@media (hover: hover) {
    #chat-screen #sidebar button:hover,
    #chat-screen #sidebar a:hover {
        transform: translateY(-1px);
    }

    #open-referrals:hover,
    #open-feedback:hover,
    #admin-referrals-link:not([hidden]):hover {
        box-shadow:
            0 0 14px rgba(70, 220, 255, .25),
            0 0 25px rgba(240, 199, 108, .12);
    }
}

/* ===== WELCOME AREA ===== */

#chat-screen #welcome {
    color: var(--lux-text);
}

#chat-screen #welcome-title {
    color: #0b2138 !important;
    text-shadow:
        0 2px 15px rgba(60, 150, 205, .08);
}

#chat-screen #welcome .welcome-badge {
    background: linear-gradient(
        135deg,
        #f3fbff,
        #fff4dd
    ) !important;

    border:
        1px solid rgba(231, 189, 92, .45) !important;
}

/* ===== SUGGESTION CARDS ===== */

#chat-screen #welcome .suggestion {
    background:
        linear-gradient(
            145deg,
            #fff,
            #f7fbff
        ) !important;

    border:
        1px solid #dbe9f1 !important;

    box-shadow:
        0 8px 25px rgba(15, 48, 85, .055);
}

@media (hover: hover) {
    #chat-screen #welcome .suggestion:hover {
        border-color: #6bd8f3 !important;

        box-shadow:
            0 0 0 1px rgba(70, 220, 255, .18),
            0 12px 30px rgba(25, 119, 170, .12);
    }
}

/* ===== MESSAGE COMPOSER ===== */

#chat-screen .composer {
    background: rgba(255, 255, 255, .97) !important;

    border:
        1px solid rgba(70, 164, 204, .26) !important;

    box-shadow:
        0 10px 35px rgba(13, 37, 70, .09),
        0 0 0 1px rgba(255, 255, 255, .55);
}

#chat-screen .composer:focus-within {
    border-color:
        rgba(70, 196, 232, .75) !important;

    box-shadow:
        0 0 0 3px rgba(70, 220, 255, .10),
        0 10px 36px rgba(12, 77, 118, .12);
}

/* ===== MOBILE ===== */

@media (max-width: 768px) {
    #chat-screen #sidebar {
        box-shadow:
            -5px 0 25px rgba(5, 19, 39, .22);
    }

    #chat-screen #sidebar .sidebar-header::after {
        inset-inline: 12px;
    }
}

/* ===== ACCESSIBILITY ===== */

@media (prefers-reduced-motion: reduce) {
    #chat-screen #sidebar button,
    #chat-screen #sidebar a {
        transition: none !important;
    }
}
