/* ============================================================
   PRESTIGE ACADEMIC DESIGN SYSTEM v4.5 (MERGED & CLEANED)
   ============================================================ */

:root {
    /* Core Colors */
    --uni-navy: #002147;
    --uni-navy-light: #003366;
    --uni-gold: #C5B358;
    --uni-gold-muted: rgba(197, 179, 88, 0.1);
    --uni-white: #FFFFFF;
    --uni-slate: #f8fafc;
    --text-main: #1e293b;

    /* Glass & Effects */
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-white: rgba(255, 255, 255, 0.85);
    --uni-navy-gradient: linear-gradient(135deg, #002147 0%, #001025 100%);

    /* Motion & Shadows */
    --smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base */
html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--uni-slate);
    color: var(--text-main);
    line-height: 1.6;
    font-family: 'Inter', sans-serif;
}

/* Typography */
.serif-academic {
    font-family: 'Crimson Pro', serif;
}

/* ============================================================
   HEADER / NAV (Merged Glassmorphism)
   ============================================================ */

.glass-nav {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 3px solid var(--uni-navy);
}

/* Nav Links */
.nav-link {
    position: relative;
    transition: color 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--uni-gold);
    transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link-active::after {
    width: 100%;
}

/* ============================================================
   FLOATING BUTTON
   ============================================================ */

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    z-index: 9999;
    transition: var(--smooth);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(5deg);
    background-color: #128c7e;
    color: white;
}

/* ============================================================
   ADMIN SIDEBAR
   ============================================================ */

.admin-sidebar {
    background: linear-gradient(180deg, var(--uni-navy) 0%, #000c1a 100%);
    transition: var(--smooth);
}

/* ============================================================
   COMPONENTS
   ============================================================ */

.id-badge {
    font-family: monospace;
    background: #f1f5f9;
    padding: 4px 8px;
    border-radius: 6px;
    color: var(--uni-navy);
    font-weight: 800;
    border: 1px solid #e2e8f0;
}

/* Buttons */
.btn-uni {
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--uni-navy);
    transition: var(--smooth);
    display: inline-block;
    cursor: pointer;
    text-align: center;
}

.btn-uni:hover {
    background: transparent;
    color: var(--uni-navy);
    transform: translateY(-2px);
}

.btn-gold {
    background: var(--uni-gold);
    color: var(--uni-navy) !important;
    border-color: var(--uni-gold);
}

.btn-gold:hover {
    background: var(--uni-navy) !important;
    color: var(--uni-gold) !important;
    border-color: var(--uni-navy);
}

/* Glass Card */
.glass-card {
    background: var(--glass-white);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* ============================================================
   CHAT SYSTEM (Fixed + Improved)
   ============================================================ */

#chat-terminal {
    position: fixed;
    z-index: 9999;
    display: none;
    bottom: 100px;
    right: 24px;
    width: 360px;
    max-height: 550px;
    border-radius: 20px;
    background: white;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
                0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(20px);
    opacity: 0;
    transition: var(--smooth);
}

#chat-terminal.active {
    display: flex;
    transform: translateY(0);
    opacity: 1;
}

.chat-bubble {
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 13.5px;
    margin-bottom: 10px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.bot-msg {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: var(--uni-navy);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.user-msg {
    background: var(--uni-navy);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-opt {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px;
    font-size: 12px;
    font-weight: 600;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-top: 8px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--uni-navy);
}

.chat-opt:hover {
    border-color: var(--uni-gold);
    background: #fefce8;
    transform: translateX(5px);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scrollTicker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.animate-fade-up {
    animation: fadeInUp 0.8s ease-out forwards;
    will-change: transform, opacity;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

.animate-scroll {
    display: inline-block;
    animation: scrollTicker 30s linear infinite;
}

/* ============================================================
   DISCUSSION MODULE
   ============================================================ */

.discussion-page-bg {
    background: #f0f2f5;
    background-image: radial-gradient(var(--uni-gold) 0.5px, transparent 0.5px);
    background-size: 30px 30px;
}

#discussion-box {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--uni-gold) transparent;
}

#discussion-box::-webkit-scrollbar {
    width: 5px;
}

#discussion-box::-webkit-scrollbar-thumb {
    background: var(--uni-gold);
    border-radius: 10px;
}

.msg-entry {
    transition: var(--smooth);
}

.msg-entry:hover {
    transform: translateY(-2px);
}

.admin-indicator {
    color: var(--uni-gold);
    font-weight: 900;
}

/* ============================================================
   PRINT
   ============================================================ */

@media print {
    .no-print,
    .whatsapp-float {
        display: none !important;
    }
}