/* 
   LGA Student Portal - High-Contrast Modern Dashboard
   Theme: "Fintrixity" Style (Deep Dark + Vibrant Orange)
   I designed this to be extremely punchy and professional.
*/

:root {
    --primary: #ff5722;      /* Vibrant Orange */
    --primary-alt: #f4511e;
    --bg-dark: #09090b;      /* Deepest Black */
    --card-bg: #111114;      /* Solid Dark Card */
    --card-border: #27272a;  /* Subtle Card Stroke */
    --text-main: #fafafa;
    --text-muted: #a1a1aa;
    --sidebar-width: 280px;
    --radius-lg: 20px;
    --radius-md: 12px;
    --transition: all 0.25s ease;
    --skeleton-base: rgba(255, 255, 255, 0.05);
    --skeleton-shine: rgba(255, 255, 255, 0.1);
}

/* SKELETON LOADING */
.skeleton {
    background: var(--skeleton-base);
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, var(--skeleton-shine), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Outfit', -apple-system, sans-serif;
    background: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
}

/* Auth Logic Toggle */
.d-none { display: none !important; }

/* LOGIN UI (RESTORED) */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 10% 20%, rgba(255, 87, 34, 0.05) 0%, transparent 40%);
    padding: 20px;
}

.auth-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 420px;
    padding: 48px 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.form-control-lga {
    background: #09090b;
    border: 1px solid var(--card-border);
    color: white;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    width: 100%;
    margin-bottom: 20px;
}

.form-control-lga:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 87, 34, 0.1);
}

.btn-primary-lga {
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px;
    border-radius: var(--radius-md);
    width: 100%;
    font-weight: 700;
    transition: var(--transition);
}

.btn-primary-lga:hover {
    background: var(--primary-alt);
    transform: translateY(-2px);
}

/* PORTAL LAYOUT */
.portal-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styling */
.portal-sidebar {
    width: var(--sidebar-width);
    background: #000000;
    border-right: 1px solid var(--card-border);
    display: flex;
    flex-direction: column;
    padding: 32px 24px;
    position: fixed;
    height: 100vh;
    z-index: 1000;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 48px;
    text-decoration: none;
}

.sidebar-logo-img { 
    width: 44px; height: 44px; 
    border-radius: 12px; 
    overflow: hidden;
    background: var(--card-border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-logo img { width: 100%; height: 100%; object-fit: cover; }

.lga-small-logo {
    font-weight: 800;
    color: var(--primary);
    font-size: 1.5rem;
}

.lga-letter-logo {
    width: 80px;
    height: 80px;
    background: var(--card-border);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 2rem;
    color: var(--primary);
    margin: 0 auto;
}

.nav-links { list-style: none; padding: 0; margin: 0; flex: 1; }
.nav-item { margin-bottom: 8px; }

.nav-link-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: var(--transition);
}

.nav-link-btn:hover, .nav-link-btn.active {
    background: #18181b;
    color: white;
}

.nav-link-btn.active i { color: var(--primary); }

/* Main Content Area */
.portal-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 40px;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
}

/* Dashboard Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 60px; height: 60px;
    background: radial-gradient(circle at top right, rgba(255, 87, 34, 0.1), transparent);
}

.stat-card .value { font-size: 2.25rem; font-weight: 800; margin-bottom: 4px; }
.stat-card .label { color: var(--text-muted); font-size: 0.95rem; font-weight: 500; }

/* Sections */
.lga-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.assignment-item {
    background: #18181b;
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
    transition: var(--transition);
}

.assignment-item:hover {
    border-color: var(--primary);
    transform: scale(1.01);
}

.assignment-info h4 { font-weight: 700; margin-bottom: 6px; }

/* Chat Module Styles */
.chat-container {
    height: 650px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    display: flex;
    overflow: hidden;
}

.chat-sidebar {
    width: 280px;
    background: #09090b;
    border-right: 1px solid var(--card-border);
    padding: 24px;
}

.chat-content { flex: 1; display: flex; flex-direction: column; background: #000000; }
.chat-messages { flex: 1; padding: 32px; overflow-y: auto; }

.chat-bubble-wrapper { margin-bottom: 24px; max-width: 80%; }
.chat-bubble {
    padding: 14px 20px;
    border-radius: 18px;
    background: #18181b;
    border: 1px solid var(--card-border);
    font-size: 0.95rem;
}

.me { align-self: flex-end; }
.me .chat-bubble { background: var(--primary); color: white; border: none; }

.chat-input-area {
    padding: 24px;
    background: #09090b;
    border-top: 1px solid var(--card-border);
    display: flex;
    gap: 16px;
}

.chat-input {
    flex: 1;
    background: #18181b;
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 14px 20px;
    color: white;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #000000; }
::-webkit-scrollbar-thumb { background: #27272a; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* Mobile Adaptations */
@media (max-width: 991px) {
    .portal-sidebar { transform: translateX(-100%); transition: transform 0.3s ease; }
    .portal-sidebar.show { transform: translateX(0); }
    .portal-main { margin-left: 0; padding: 24px; padding-bottom: 100px; }
    
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0; left: 0; right: 0;
        background: #000000;
        border-top: 1px solid var(--card-border);
        padding: 16px;
        justify-content: space-around;
        z-index: 1000;
    }
}

@media (min-width: 992px) {
    .mobile-bottom-nav { display: none; }
}