/* ==========================================================================
   SCIT-BOSS Platform - Nexes.ai Inspired Dark Futuristic Theme
   ========================================================================== */

:root {
    --bg-main: #080b11;
    --bg-surface: #0f172a;
    --bg-surface-elevated: #162035;
    --bg-surface-glass: rgba(15, 23, 42, 0.75);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-focus: rgba(99, 102, 241, 0.5);
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --accent-cyan: #06b6d4;
    --accent-purple: #8b5cf6;
    --accent-pink: #ec4899;
    --accent-emerald: #10b981;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

[data-bs-theme="light"] {
    --bg-main: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-elevated: #f1f5f9;
    --bg-surface-glass: rgba(255, 255, 255, 0.85);
    --border-subtle: rgba(0, 0, 0, 0.08);
    --border-focus: rgba(99, 102, 241, 0.4);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
}

/* Global Reset & Typography */
* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', 'Inter', 'Hind Siliguri', -apple-system, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Futuristic Background Radial Meshes */
.bg-mesh {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    pointer-events: none;
    background: 
        radial-gradient(circle at 15% 20%, rgba(99, 102, 241, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 85% 25%, rgba(6, 182, 212, 0.10) 0%, transparent 40%),
        radial-gradient(circle at 50% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
}

/* Nexes Glow Badges */
.badge-glow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 9999px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: #a5b4fc;
    font-size: 13px;
    font-weight: 600;
    backdrop-filter: blur(8px);
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
    animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

/* Gradient Text */
.text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-primary {
    background: linear-gradient(135deg, #818cf8 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glassmorphic Cards */
.nexes-card {
    background: var(--bg-surface-glass);
    backdrop-filter: blur(14px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.nexes-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6), 0 0 25px -5px rgba(99, 102, 241, 0.15);
}

.nexes-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: #818cf8;
}

/* Action Buttons */
.btn-nexes-primary {
    background: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
    color: #ffffff;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    border: none;
    box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
    text-decoration: none;
}

.btn-nexes-primary:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(99, 102, 241, 0.6);
}

.btn-nexes-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
    text-decoration: none;
}

.btn-nexes-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Announcement Bar */
.announcement-bar {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.9) 0%, rgba(6, 182, 212, 0.9) 100%);
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 500;
    padding: 8px 16px;
    text-align: center;
    position: relative;
    z-index: 1000;
}

.announcement-bar a {
    color: #ffffff;
    text-decoration: underline;
    font-weight: 700;
    margin-left: 6px;
}

.announcement-bar .btn-close-announcement {
    background: none;
    border: none;
    color: #ffffff;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    opacity: 0.8;
}

.announcement-bar .btn-close-announcement:hover {
    opacity: 1;
}

/* Navbar */
.nexes-navbar {
    background: rgba(8, 11, 17, 0.8);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 990;
    padding: 14px 0;
    transition: all 0.3s ease;
}

.nexes-navbar .nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14.5px;
    padding: 8px 16px;
    transition: color 0.2s ease;
}

.nexes-navbar .nav-link:hover,
.nexes-navbar .nav-link.active {
    color: #ffffff;
}

/* Floating Animated Question Card */
.floating-q-card {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    animation: float-slow 6s ease-in-out infinite alternate;
}

@keyframes float-slow {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-12px) rotate(0.5deg); }
}

/* Chat Assistant Bubbles */
.chat-bubble-user {
    background: #4f46e5;
    color: #ffffff;
    border-radius: 16px 16px 4px 16px;
    padding: 12px 18px;
    max-width: 80%;
    margin-left: auto;
    font-size: 14.5px;
}

.chat-bubble-ai {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    border-radius: 16px 16px 16px 4px;
    padding: 16px 20px;
    max-width: 90%;
    margin-right: auto;
    font-size: 14.5px;
}

/* Multi-column Footer */
.nexes-footer {
    background: #05070a;
    border-top: 1px solid var(--border-subtle);
    padding: 70px 0 30px 0;
    margin-top: auto;
}

.footer-heading {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #f8fafc;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #06b6d4;
    transform: translateX(3px);
}

.dev-attribution-badge {
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    padding: 16px 20px;
    margin-top: 20px;
}

.dev-attribution-badge a {
    color: #38bdf8;
    text-decoration: none;
    font-weight: 600;
}

.dev-attribution-badge a:hover {
    text-decoration: underline;
}

/* Math equations KaTeX styling */
.katex-display {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px 0;
}
