/* ==========================================================
   CourseHub LMS - Professional Dark Theme & Bootstrap Custom
   ========================================================== */

:root {
    --bg-main: #090d16;
    --bg-card: #111827;
    --bg-header: #0f172a;
    --border-color: #1f2937;
    --text-primary: #f9fafb;
    --text-muted: #9ca3af;
    --theme-primary: #2563eb;
}

body {
    background-color: var(--bg-main) !important;
    color: var(--text-primary) !important;
    font-family: 'Hind Siliguri', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

/* Grayscale helpers */
.bg-gray-900 { background-color: #111827 !important; }
.bg-gray-950 { background-color: #0b0f19 !important; }
.border-secondary { border-color: #1f2937 !important; }

/* Sidebar */
.sidebar {
    width: 260px;
    min-height: 100vh;
    transition: all 0.3s ease;
    z-index: 1040;
}

@media (max-width: 767.98px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: -260px;
        bottom: 0;
    }
    .sidebar.show {
        left: 0;
        box-shadow: 0 0 25px rgba(0, 0, 0, 0.8);
    }
}

.sidebar .nav-link {
    color: #9ca3af;
    padding: 0.65rem 0.85rem;
    font-weight: 500;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s ease;
}

.sidebar .nav-link:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
}

.sidebar .nav-link.active {
    color: #ffffff;
    background-color: var(--theme-primary) !important;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.nav-icon {
    font-size: 1.15rem;
    line-height: 1;
}

/* Main Content */
.main-wrapper {
    min-width: 0;
}

.avatar-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.avatar-large {
    width: 60px;
    height: 60px;
}

/* Forms */
.form-control, .form-select {
    background-color: #0f172a !important;
    border-color: #1f2937 !important;
    color: #f9fafb !important;
}

.form-control:focus, .form-select:focus {
    border-color: var(--theme-primary) !important;
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.25) !important;
}

/* Table */
.table-dark {
    --bs-table-bg: #111827;
    --bs-table-striped-bg: #0d131f;
    --bs-table-hover-bg: #161f33;
    border-color: #1f2937;
}

/* Animation */
.animate-pulse {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
