/* ========================================
   Portal Kuliah - Modern CSS Styles
   Green & Yellow Theme - Fully Responsive
   ======================================== */

:root {
    /* Primary Colors - Green Theme */
    --primary: #16a34a;
    --primary-dark: #15803d;
    --primary-light: #22c55e;
    --primary-lighter: #86efac;

    /* Secondary Colors - Yellow/Gold Theme */
    --secondary: #eab308;
    --secondary-dark: #ca8a04;
    --secondary-light: #facc15;

    /* Accent - Yellow */
    --accent: #fbbf24;
    --accent-dark: #f59e0b;

    /* Status Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #0ea5e9;

    /* Dark Colors */
    --dark: #14532d;
    --dark-alt: #052e16;

    /* Gray Scale */
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --white: #ffffff;

    /* Gradients - Green & Yellow */
    --gradient-1: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    --gradient-2: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    --gradient-3: linear-gradient(135deg, #eab308 0%, #f59e0b 100%);
    --gradient-4: linear-gradient(135deg, #16a34a 0%, #eab308 100%);
    --gradient-hero: linear-gradient(135deg, #14532d 0%, #166534 50%, #15803d 100%);

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-green: 0 4px 15px rgba(22, 163, 74, 0.3);
    --shadow-yellow: 0 4px 15px rgba(234, 179, 8, 0.3);

    /* Border Radius */
    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
    --transition-slow: all 0.5s ease;

    /* Font */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

[data-theme="dark"] {
    --bg-primary: #052e16;
    --bg-secondary: #14532d;
    --bg-card: #166534;
    --text-primary: #ffffff;
    --text-secondary: #bbf7d0;
    --border-color: #22c55e;
}

[data-theme="light"] {
    --bg-primary: #f0fdf4;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --text-primary: #14532d;
    --text-secondary: #166534;
    --border-color: #86efac;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    transition: var(--transition);
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    inset: 0;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-logo {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: pulse 2s infinite;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.hidden {
    display: none !important;
}

/* Glass Card Effect */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

/* Fix: Icons inside buttons should not intercept clicks */
.btn i,
.btn svg,
.btn span,
button i,
button svg,
a.btn i,
a.btn svg,
.nav-item i,
.nav-item span,
.btn i,
.btn svg,
.btn span,
button i,
button svg,
button span,
a i,
a svg,
[data-action] i,
[data-action] svg,
[onclick] i,
[onclick] svg {
    pointer-events: none;
}

.btn-primary {
    background: var(--gradient-2);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-google {
    background: white;
    color: #333;
    border: 1px solid #ddd;
    width: 100%;
    padding: 1rem;
}

.btn-google:hover {
    background: #f5f5f5;
    box-shadow: var(--shadow);
}

.btn-google img {
    width: 20px;
    height: 20px;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-warning {
    background: var(--warning);
    color: white;
}

.btn-warning:hover {
    background: var(--secondary-dark);
    transform: translateY(-1px);
}

/* Login Page */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-background {
    position: absolute;
    inset: 0;
    background: var(--gradient-1);
}

.bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 20s infinite;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: white;
    top: -100px;
    right: -100px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--accent);
    bottom: -50px;
    left: -50px;
    animation-delay: -5s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: var(--secondary);
    top: 50%;
    left: 10%;
    animation-delay: -10s;
}

.shape-4 {
    width: 150px;
    height: 150px;
    background: white;
    bottom: 20%;
    right: 15%;
    animation-delay: -15s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    33% {
        transform: translateY(-30px) rotate(5deg);
    }

    66% {
        transform: translateY(20px) rotate(-5deg);
    }
}

.login-main-container {
    position: relative;
    z-index: 10;
    display: flex;
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    width: 100%;
    align-items: flex-start;
    justify-content: center;
}

/* Announcements Panel on Login Page */
.login-announcements-panel {
    flex: 1;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
}

.login-announcements-panel .announcements-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.login-announcements-panel .announcements-header i {
    font-size: 1.5rem;
    color: var(--secondary);
}

.login-announcements-panel .announcements-header h2 {
    color: white;
    font-size: 1.25rem;
    margin: 0;
}

.public-announcements-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.public-announcement-item {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    transition: var(--transition);
}

.public-announcement-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.announcement-badge {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.announcement-badge.info {
    background: rgba(14, 165, 233, 0.3);
    color: #38bdf8;
}

.announcement-badge.warning {
    background: rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

.announcement-badge.success {
    background: rgba(22, 163, 74, 0.3);
    color: #4ade80;
}

.announcement-body {
    flex: 1;
    min-width: 0;
}

.announcement-body h4 {
    color: white;
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
    line-height: 1.3;
}

.announcement-body p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

/* Login Styles Removed - Redesigned with Tailwind */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar - Modern Design */
.sidebar {
    width: 280px;
    background: #14532d;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
    transition: all 0.3s ease;
    border-right: 1px solid rgba(34, 197, 94, 0.3);
}

/* Collapsed Sidebar - Neater Design */
.sidebar.collapsed {
    width: 90px;
    align-items: center;
    padding-top: 1rem;
}

.sidebar.collapsed .sidebar-header {
    justify-content: center;
    padding: 0;
    margin-bottom: 2rem;
    height: auto;
    border: none;
}

.sidebar.collapsed .sidebar-logo {
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #CA8A04;
    /* Gold background for logo */
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(202, 138, 4, 0.4);
    transition: transform 0.2s;
}

.sidebar.collapsed .sidebar-logo:hover {
    transform: scale(1.05);
}

.sidebar.collapsed .sidebar-logo i {
    font-size: 1.75rem;
    color: #14532d;
    background: none;
    padding: 0;
    box-shadow: none;
}

.sidebar.collapsed .sidebar-logo span {
    display: none;
}

.sidebar.collapsed .toggle-sidebar-btn {
    display: none;
}

.sidebar.collapsed .user-profile {
    display: none;
    /* Hide profile in collapsed mode for cleaner look */
}

.sidebar.collapsed .user-info,
.sidebar.collapsed .sidebar-text,
.sidebar.collapsed .nav-badge,
.sidebar.collapsed .sidebar-footer span {
    display: none;
}

.sidebar.collapsed .sidebar-nav {
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.sidebar.collapsed .sidebar-nav ul {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.sidebar.collapsed .sidebar-nav li {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 0;
}

.sidebar.collapsed .sidebar-nav a,
.sidebar.collapsed .sidebar-nav button.nav-item {
    width: 50px;
    height: 50px;
    padding: 0;
    justify-content: center;
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.6);
    background: transparent;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.sidebar.collapsed .sidebar-nav a i,
.sidebar.collapsed .sidebar-nav button.nav-item i {
    font-size: 1.5rem;
    width: auto;
    padding: 0;
    background: none;
    transition: all 0.2s ease;
}

/* Hover State */
.sidebar.collapsed .sidebar-nav a:hover,
.sidebar.collapsed .sidebar-nav button.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateY(-2px);
}

/* Active State - Gold Glowing Border */
.sidebar.collapsed .sidebar-nav a.active {
    background: rgba(202, 138, 4, 0.15);
    border: 1px solid #CA8A04;
    color: #CA8A04;
    box-shadow: 0 0 15px rgba(202, 138, 4, 0.2);
}

.sidebar.collapsed .sidebar-nav a.active::before {
    display: none;
}

.sidebar.collapsed .sidebar-nav a.active i {
    background: none;
    color: #CA8A04;
    box-shadow: none;
}

.sidebar.collapsed .sidebar-footer {
    margin-top: auto;
    padding: 1.5rem 0;
    border: none;
    width: 100%;
    display: flex;
    justify-content: center;
}

.sidebar.collapsed .btn-logout {
    width: 50px;
    height: 50px;
    padding: 0;
    justify-content: center;
    border-radius: 14px;
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
    transition: all 0.2s;
}

.sidebar.collapsed .btn-logout:hover {
    background: #ef4444;
    color: white;
    transform: scale(1.05);
}

/* Tooltips */
.nav-tooltip {
    position: absolute;
    left: 70px;
    top: 50%;
    transform: translateY(-50%) translateX(-10px);
    background: #1f2937;
    color: white;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    font-weight: 500;
}

.nav-tooltip::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent #1f2937 transparent transparent;
}

.sidebar.collapsed .sidebar-nav a:hover .nav-tooltip,
.sidebar.collapsed .sidebar-nav button.nav-item:hover .nav-tooltip,
.sidebar.collapsed .btn-logout:hover .nav-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

/* Sidebar Header */
.sidebar-header {
    height: 80px;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(34, 197, 94, 0.2);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.sidebar-logo i {
    font-size: 2.5rem;
    color: #CA8A04;
    background: rgba(202, 138, 4, 0.1);
    padding: 0.5rem;
    border-radius: 10px;
    transition: all 0.3s;
}

.sidebar-logo span {
    font-weight: 700;
    font-size: 1.25rem;
    color: white;
}

.sidebar-logo span .highlight {
    color: #CA8A04;
}

.toggle-sidebar-btn {
    background: rgba(34, 197, 94, 0.2);
    border: none;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    margin-left: auto;
    transition: all 0.2s;
}

.toggle-sidebar-btn:hover {
    background: #CA8A04;
    color: white;
}

.user-profile {
    padding: 1.25rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(34, 197, 94, 0.2);
    margin: 0 0.5rem;
}

.avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #CA8A04;
    flex-shrink: 0;
}

.user-info h4 {
    font-size: 0.9rem;
    color: white;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.user-role {
    font-size: 0.75rem;
    color: #CA8A04;
    background: rgba(202, 138, 4, 0.15);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0.75rem;
    overflow-y: auto;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 0.35rem;
}

.sidebar-nav a,
.sidebar-nav button.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    color: rgba(220, 252, 231, 0.8);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.2s;
    font-size: 0.9rem;
    width: 100%;
    border: none;
    background: none;
    cursor: pointer;
    font-family: var(--font);
    position: relative;
}

.sidebar-nav a i,
.sidebar-nav button.nav-item i {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
    padding: 0.35rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.sidebar-nav a:hover,
.sidebar-nav button.nav-item:hover {
    background: rgba(34, 197, 94, 0.15);
    color: white;
}

.sidebar-nav a:hover i,
.sidebar-nav button.nav-item:hover i {
    background: rgba(34, 197, 94, 0.3);
}

/* Active nav item */
.sidebar-nav a.active {
    background: rgba(202, 138, 4, 0.2);
    color: white;
    font-weight: 600;
}

.sidebar-nav a.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: #CA8A04;
    border-radius: 0 4px 4px 0;
}

.sidebar-nav a.active i {
    background: #CA8A04;
    color: white;
    box-shadow: 0 2px 8px rgba(202, 138, 4, 0.3);
}

.nav-badge {
    margin-left: auto;
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid rgba(34, 197, 94, 0.2);
}

.btn-logout {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: transparent;
    color: #fca5a5;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-family: var(--font);
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-logout:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    min-height: 100vh;
    background: var(--bg-primary);
    transition: var(--transition);
}

.sidebar.collapsed~.main-content {
    margin-left: 80px;
}

/* Topbar */
.topbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 50;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
}

.topbar-search {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.topbar-search i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
}

.topbar-search input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: var(--font);
}

.topbar-search input:focus {
    outline: none;
    border-color: var(--primary);
}

.topbar-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    position: relative;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.action-btn:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    background: var(--danger);
    color: white;
    font-size: 0.7rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dashboard Content */
.dashboard-content {
    padding: 2rem;
}

/* Cards */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
}

.card-body {
    padding: 1.5rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-icon.blue {
    background: rgba(22, 163, 74, 0.15);
    color: var(--primary);
}

.stat-icon.green {
    background: rgba(34, 197, 94, 0.15);
    color: var(--primary-light);
}

.stat-icon.orange {
    background: rgba(234, 179, 8, 0.15);
    color: var(--secondary);
}

.stat-icon.yellow {
    background: rgba(251, 191, 36, 0.15);
    color: var(--accent);
}

.stat-icon.red {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.stat-info h4 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Course Grid */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.course-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.course-banner {
    height: 140px;
    background: var(--gradient-2);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-banner i {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.3);
}

.course-code {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    color: white;
    font-size: 0.8rem;
}

.course-info {
    padding: 1.25rem;
}

.course-info h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.course-info p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.course-meta {
    display: flex;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.course-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Modal */
.modal-container {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--danger);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Forms */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* Toast Notifications */
/* Toast Notifications - Centered */
.toast-container {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    /* Ensure items inside are also centered if needed */
}



.toast {
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    background: var(--bg-card);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 300px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.success {
    border-left: 4px solid var(--success);
    background: #dcfce7;
    /* Green-100 */
    color: var(--dark);
}

.toast.error {
    border-left: 4px solid var(--danger);
}

.toast.warning {
    border-left: 4px solid var(--warning);
}

.toast.info {
    border-left: 4px solid var(--primary);
}

/* Meetings/Pertemuan List */
.meeting-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.meeting-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.meeting-item:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.meeting-number {
    width: 40px;
    height: 40px;
    background: var(--gradient-2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
}

.meeting-info h5 {
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.meeting-info p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.meeting-status {
    margin-left: auto;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.meeting-status.completed {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.meeting-status.ongoing {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
}

.meeting-status.upcoming {
    background: rgba(107, 114, 128, 0.15);
    color: var(--gray-500);
}

/* Assignment Card */
.assignment-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.assignment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.assignment-type {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.assignment-type.individual {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
}

.assignment-type.group {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.assignment-deadline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.assignment-deadline.urgent {
    color: var(--danger);
}

.assignment-title {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.assignment-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Tables */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-primary);
}

td {
    color: var(--text-secondary);
}

tr:hover {
    background: rgba(99, 102, 241, 0.05);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 4rem;
    color: var(--gray-300);
    margin-bottom: 1rem;
}

.empty-state h4 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* File Upload */
.file-upload {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.file-upload:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.file-upload i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.file-upload p {
    color: var(--text-secondary);
}

/* Progress Bar */
.progress-bar {
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-2);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* ========================================
   RESPONSIVE DESIGN - ALL DEVICES
   ======================================== */

/* Extra Large Screens (1400px+) */
@media (min-width: 1400px) {
    .dashboard-content {
        max-width: 1400px;
        margin: 0 auto;
        padding: 2.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .course-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Large Screens / Desktop (1200px - 1399px) */
@media (max-width: 1399px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .course-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Medium-Large Screens / Small Desktop (1024px - 1199px) */
@media (max-width: 1199px) {
    .sidebar {
        width: 260px;
    }

    .main-content {
        margin-left: 260px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .course-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet Landscape (992px - 1023px) */
@media (max-width: 1023px) {
    .sidebar {
        position: fixed;
        transform: translateX(-100%);
        width: 280px;
        z-index: 1000;
    }

    .sidebar.open {
        transform: translateX(0);
        box-shadow: 0 0 50px rgba(0, 0, 0, 0.3);
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .topbar-search {
        max-width: 300px;
    }
}

/* Tablet Portrait (768px - 991px) */
@media (max-width: 991px) {
    .login-container {
        padding: 1.5rem;
    }

    .login-card {
        padding: 2rem;
    }

    .login-tabs {
        flex-wrap: wrap;
    }

    .tab-btn {
        flex: 1 1 calc(50% - 0.25rem);
        font-size: 0.85rem;
        padding: 0.6rem;
    }

    .tab-btn:nth-child(3) {
        flex: 1 1 100%;
        margin-top: 0.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .course-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .dashboard-content {
        padding: 1.5rem;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .card-header .btn {
        width: 100%;
    }
}

/* Mobile Landscape / Large Mobile (576px - 767px) */
@media (max-width: 767px) {
    html {
        font-size: 15px;
    }

    .login-container {
        padding: 1rem;
    }

    .login-card {
        padding: 1.5rem;
        border-radius: var(--radius);
    }

    .login-logo {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
    }

    .login-card h1 {
        font-size: 1.5rem;
    }

    .tagline {
        font-size: 0.85rem;
    }

    .login-features {
        flex-direction: column;
        gap: 0.75rem;
    }

    .feature-item {
        font-size: 0.8rem;
    }

    .dashboard-content {
        padding: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .stat-card {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .stat-info h4 {
        font-size: 1.5rem;
    }

    .stat-info p {
        font-size: 0.8rem;
    }

    .course-grid {
        grid-template-columns: 1fr;
    }

    .topbar {
        padding: 0.75rem 1rem;
    }

    .topbar-search {
        display: none;
    }

    .topbar-actions {
        margin-left: auto;
    }

    .action-btn {
        width: 40px;
        height: 40px;
    }

    /* Table responsive */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table-container table {
        min-width: 600px;
    }

    /* Modal responsive */
    .modal-content {
        margin: 1rem;
        max-height: calc(100vh - 2rem);
    }

    .modal-body {
        padding: 1rem;
    }

    .modal-footer {
        flex-direction: column;
    }

    .modal-footer .btn {
        width: 100%;
    }

    /* Course detail tabs */
    .course-tabs {
        flex-wrap: wrap;
    }

    .course-tab {
        flex: 1 1 calc(50% - 0.25rem);
        font-size: 0.8rem;
        padding: 0.6rem;
    }
}

/* Small Mobile (480px - 575px) */
@media (max-width: 575px) {
    html {
        font-size: 14px;
    }

    .login-container {
        padding: 0.75rem;
    }

    .login-card {
        padding: 1.25rem;
    }

    .login-tabs {
        gap: 0.25rem;
    }

    .tab-btn {
        padding: 0.5rem;
        font-size: 0.75rem;
    }

    .tab-btn i {
        display: none;
    }

    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .input-group input {
        padding: 0.85rem 0.85rem 0.85rem 2.75rem;
        font-size: 0.9rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .dashboard-header h2 {
        font-size: 1.25rem;
    }

    .dashboard-header p {
        font-size: 0.85rem;
    }

    .sidebar {
        width: 100%;
    }

    .user-profile {
        padding: 1rem;
    }

    .sidebar-nav {
        padding: 0.75rem;
    }

    .course-banner {
        height: 100px;
    }

    .course-info h4 {
        font-size: 1rem;
    }

    .meeting-item {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .meeting-number {
        width: 35px;
        height: 35px;
        font-size: 0.85rem;
    }
}

/* Extra Small Mobile (below 360px) */
@media (max-width: 359px) {
    html {
        font-size: 13px;
    }

    .login-card {
        padding: 1rem;
    }

    .login-logo {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        flex-direction: row;
        text-align: left;
    }

    .tab-btn {
        flex: 1 1 100%;
    }

    .course-tabs .course-tab {
        flex: 1 1 100%;
    }
}

/* Touch Device Enhancements */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
    }

    .nav-item {
        min-height: 48px;
    }

    .input-group input {
        min-height: 48px;
    }

    .course-card:hover {
        transform: none;
    }

    .stat-card:hover {
        transform: none;
    }

    .card:hover {
        transform: none;
    }
}

/* Print Styles */
@media print {

    .sidebar,
    .topbar,
    .btn,
    .modal-container {
        display: none !important;
    }

    .main-content {
        margin-left: 0 !important;
    }

    .dashboard-content {
        padding: 0 !important;
    }
}

/* Dark Mode Toggle Transition */
body,
.sidebar,
.topbar,
.card,
.stat-card,
.course-card,
.modal-content {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Login/Register Toggle */
.login-toggle {
    margin-top: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.login-toggle a {
    color: var(--secondary-light);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.login-toggle a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* Form animations */
.email-login-form {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button small variant */
.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

/* Input validation styles */
.input-group input:invalid:not(:placeholder-shown) {
    border-color: var(--danger);
}

.input-group input:valid:not(:placeholder-shown) {
    border-color: var(--success);
}

/* Admin Panel Styles */
.role-select {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    min-width: 120px;
}

.role-select:hover:not(:disabled) {
    border-color: var(--primary);
}

.role-select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.role-select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

/* Admin badge styling */
.user-role {
    text-transform: capitalize;
    background: rgba(22, 163, 74, 0.15);
    color: var(--primary);
}

/* Color picker enhancement */
input[type="color"] {
    -webkit-appearance: none;
    appearance: none;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 0.25rem;
    cursor: pointer;
    width: 100%;
}

input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: var(--radius-sm);
}

/* Yellow Accent Button */
.btn-accent {
    background: var(--gradient-3);
    color: var(--dark);
    box-shadow: var(--shadow-yellow);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(234, 179, 8, 0.5);
}

/* Green Primary Button Enhancement */
.btn-primary {
    background: var(--gradient-1);
    box-shadow: var(--shadow-green);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.5);
}

/* Overlay for mobile sidebar */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.sidebar.open+.sidebar-overlay,
.sidebar.open~.main-content .sidebar-overlay {
    display: block;
}

@media (max-width: 1023px) {
    .sidebar-overlay.active {
        display: block;
    }
}

/* Role Badges */
.role-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

.role-badge.role-admin {
    background: rgba(22, 163, 74, 0.15);
    color: var(--primary);
}

.role-badge.role-dosen {
    background: rgba(234, 179, 8, 0.15);
    color: var(--secondary);
}

.role-badge.role-mahasiswa {
    background: rgba(14, 165, 233, 0.15);
    color: var(--info);
}

/* Quick Action Cards */
.quick-action-card {
    transition: var(--transition);
}

.quick-action-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.quick-action-card:active {
    transform: scale(0.98);
}

/* Loading Placeholder */
.loading-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 3rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.loading-placeholder i {
    font-size: 1.5rem;
    color: var(--primary);
}

/* Filter Buttons */
.filter-btn {
    transition: var(--transition);
}

.filter-btn.active {
    background: var(--primary);
    color: white;
}

.filter-btn:not(.active):hover {
    background: var(--gray-200);
}

[data-theme="dark"] .filter-btn:not(.active):hover {
    background: var(--gray-700);
}

/* Announcements */
.announcements-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.announcement-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.25rem;
    transition: var(--transition);
}

.announcement-item:hover {
    box-shadow: var(--shadow);
}

.announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.announcement-type {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.announcement-type.info {
    background: rgba(14, 165, 233, 0.15);
    color: var(--info);
}

.announcement-type.warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.announcement-type.success {
    background: rgba(22, 163, 74, 0.15);
    color: var(--primary);
}

.announcement-date {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.announcement-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.announcement-content {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.announcement-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: var(--gradient-4);
    color: white;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    margin-bottom: 1rem;
}

.announcement-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.announcement-link i {
    font-size: 1.1rem;
}

.announcement-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.announcement-author {
    color: var(--text-secondary);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Dashboard Announcements Banner */
.announcements-banner {
    background: var(--gradient-4);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    color: white;
}

.announcements-banner h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.announcement-preview {
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 0.5rem;
}

.announcement-preview:last-child {
    margin-bottom: 0;
}

.announcement-preview h4 {
    margin-bottom: 0.5rem;
}

.announcement-preview p {
    opacity: 0.9;
    font-size: 0.9rem;
}

.announcement-preview a {
    color: white;
    text-decoration: underline;
}

/* Material Cards with Google Drive */
.material-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

.material-item:hover {
    border-color: var(--primary);
}

.material-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.material-icon {
    width: 45px;
    height: 45px;
    background: var(--gradient-4);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.material-details h4 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.material-details p {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.material-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-drive {
    background: #4285f4;
    color: white;
}

.btn-drive:hover {
    background: #357abd;
}

/* Meeting Cards with Materials */
.meeting-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    overflow: hidden;
}

.meeting-card .meeting-item {
    margin-bottom: 0;
    border: none;
    border-radius: 0;
}

.meeting-materials {
    background: var(--bg-secondary);
}

.materials-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Progress Bar */
.progress-bar {
    background: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
}

[data-theme="dark"] .progress-bar {
    background: var(--gray-700);
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-fill.warning {
    background: var(--warning);
}

/* Document Cards */
.document-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    transition: var(--transition);
}

.document-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.document-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.document-info {
    flex: 1;
}

.document-info h4 {
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.document-info p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.document-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* Grade Input */
.grade-input {
    padding: 0.4rem 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    text-align: center;
    font-size: 0.9rem;
    background: var(--card-bg);
    color: var(--text-primary);
}

.grade-input:focus {
    border-color: var(--primary);
    outline: none;
}

/* Assignments List */
.assignments-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Global Clickability Fixes */
.card-header button,
.modal-close,
.tab-btn,
.course-tab,
.filter-btn,
.quick-action-card,
.meeting-item,
.announcement-item,
.document-card,
.material-item a,
.material-item button {
    cursor: pointer;
}

/* Ensure clickable elements have proper z-index */
.btn,
button,
a,
.nav-item,
input,
select,
textarea {
    position: relative;
    z-index: 1;
}

/* Card header buttons need higher z-index */
.card-header .btn,
.card-header button,
#adminAddCourseBtn {
    z-index: 20 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* Disabled state */
.btn:disabled,
button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* Touch-friendly tap targets */
@media (max-width: 768px) {

    .btn,
    button,
    .nav-item,
    .tab-btn {
        min-height: 44px;
        min-width: 44px;
    }

    .btn-sm {
        min-height: 36px;
        min-width: 36px;
    }
}

/* Avatar Container with Upload Overlay */
.avatar-container {
    position: relative;
    display: inline-block;
}

.avatar-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 24px;
    height: 24px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.7rem;
    border: 2px solid var(--card-bg);
    transition: var(--transition);
    opacity: 0.8;
}

.user-profile:hover .avatar-overlay {
    opacity: 1;
    transform: scale(1.1);
}

/* Upload Method Tabs */
.upload-method-btn.active {
    background: var(--gradient-2) !important;
    color: white !important;
}

/* ========================================
   Admin Notification System Styles
   ======================================== */

/* Notification Pulse Animation */
@keyframes pulse-notification {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

/* Notification Bell Button */
.notification-bell-btn {
    transition: var(--transition);
    border-radius: 50%;
}

.notification-bell-btn:hover {
    background: var(--bg-secondary);
}

.notification-bell-btn:hover i {
    color: var(--primary);
}

/* Notification Badge */
.notification-badge,
.notification-dot {
    animation: pulse-notification 2s infinite;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

/* Notification Dropdown */
.notification-dropdown {
    animation: slideIn 0.2s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Notification Items */
.notification-item {
    transition: all 0.2s ease;
}

.notification-item:hover {
    background: var(--bg-secondary) !important;
}

.notification-item:last-child {
    border-bottom: none !important;
}

/* Notification Wrapper */
.notification-wrapper {
    display: flex;
    align-items: center;
}

/* Responsive Notification Dropdown */
@media (max-width: 480px) {
    .notification-dropdown {
        width: 280px !important;
        right: -50px !important;
    }

    .notification-body {
        max-height: 250px !important;
    }
}

/* Dark mode adjustments */
[data-theme="dark"] .notification-dropdown {
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .notification-item:hover {
    background: rgba(255, 255, 255, 0.05) !important;
}

/* Pending Alert Banner Animations */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pending-alert-banner {
    animation: slideInDown 0.4s ease;
}

.pending-alert-banner:hover {
    box-shadow: var(--shadow-lg);
}

/* Stat Card Hover for Pending Verifications */
.card[onclick]:hover {
    transform: scale(1.02);
}

/* Toast notification for new pending verifications */
.verification-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--success) 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    z-index: 9999;
    animation: slideInUp 0.4s ease, fadeOut 0.4s ease 4s forwards;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* ========================================
   Lecturer Cards Styles
   ======================================== */
.lecturer-card {
    transition: all 0.3s ease;
}

.lecturer-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.lecturer-card .lecturer-header {
    position: relative;
}

.lecturer-card:hover .lecturer-header {
    filter: brightness(1.1);
}

/* Lecturer Grid - Fullscreen Desktop */
.lecturers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

/* Desktop: more columns for larger screens */
@media (min-width: 1400px) {
    .lecturers-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .lecturers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .lecturers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Lecturer Grid Responsive */
@media (max-width: 768px) {
    .lecturers-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .lecturer-card .lecturer-body {
        padding: 1rem !important;
    }

    .lecturers-stats {
        flex-direction: column;
    }
}

/* ========================================
   Grades Table Styles
   ======================================== */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
}

.table thead {
    background: var(--gradient-1);
    color: white;
}

.table thead th {
    padding: 0.75rem 0.5rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
}

.table tbody td {
    padding: 0.75rem 0.5rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.table tbody tr:hover {
    background: var(--bg-secondary);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* Grade Input Style */
.grade-input {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.grade-input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.2);
}

.final-grade-input {
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
    color: var(--text-primary);
}

.final-grade-input:focus {
    border-color: var(--warning);
    border-style: solid;
    outline: none;
}

/* ========================================
   RESPONSIVE STYLES - All Devices
   ======================================== */

/* Extra Large Screens (1400px+) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }

    .courses-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Large Screens / Desktop (1200px - 1399px) */
@media (max-width: 1399px) {
    .courses-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Medium Screens / Tablet Landscape (992px - 1199px) */
@media (max-width: 1199px) {
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        position: relative;
        height: auto;
    }
}

/* Tablet Portrait (768px - 991px) */
@media (max-width: 991px) {
    .navbar {
        padding: 0.75rem 1rem;
    }

    .nav-brand h1 {
        font-size: 1.25rem;
    }

    .nav-menu {
        gap: 0.5rem;
    }

    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .modal-content {
        width: 90%;
        max-width: 600px;
        margin: 1rem;
    }

    .card {
        padding: 1rem;
    }

    .dashboard-header h2 {
        font-size: 1.5rem;
    }
}

/* Mobile Landscape / Small Tablet (576px - 767px) */
@media (max-width: 767px) {
    body {
        font-size: 14px;
    }

    .navbar {
        padding: 0.5rem 1rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .nav-brand {
        flex: 1;
    }

    .nav-brand h1 {
        font-size: 1.1rem;
    }

    .nav-brand i {
        font-size: 1.25rem;
    }

    .nav-menu {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px solid var(--border-color);
    }

    .nav-item {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }

    .nav-item span {
        display: none;
    }

    .nav-actions {
        gap: 0.5rem;
    }

    .courses-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .course-card {
        margin-bottom: 0;
    }

    .modal-content {
        width: 95%;
        max-height: 90vh;
        margin: 5vh auto;
    }

    .modal-header h3 {
        font-size: 1.1rem;
    }

    .modal-body {
        padding: 1rem;
    }

    .modal-footer {
        flex-direction: column;
        gap: 0.5rem;
    }

    .modal-footer .btn {
        width: 100%;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.75rem;
        font-size: 16px;
        /* Prevents zoom on iOS */
    }

    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .btn-sm {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }

    .dashboard-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .dashboard-header h2 {
        font-size: 1.25rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-card .stat-value {
        font-size: 1.5rem;
    }

    /* Table Responsive */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table {
        min-width: 600px;
        font-size: 0.85rem;
    }

    .table thead th {
        padding: 0.5rem 0.25rem;
        font-size: 0.75rem;
    }

    .table tbody td {
        padding: 0.5rem 0.25rem;
    }

    .grade-input {
        width: 55px !important;
        font-size: 0.85rem;
    }

    .final-grade-input {
        width: 50px !important;
        font-size: 0.75rem;
    }

    /* Course Tab Buttons */
    .course-tabs {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .course-tab {
        flex: 1;
        min-width: calc(50% - 0.25rem);
        padding: 0.5rem;
        font-size: 0.8rem;
    }

    /* Meeting Cards */
    .meeting-card {
        padding: 0.75rem;
    }

    .meeting-item {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .meeting-number {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    /* Material items */
    .material-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .material-actions {
        width: 100%;
        justify-content: flex-end;
    }

    /* Assignment cards */
    .assignment-card {
        padding: 1rem;
    }

    .assignment-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .assignment-footer {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch !important;
    }

    .assignment-footer>div {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }
}

/* Mobile Portrait (max-width: 575px) */
@media (max-width: 575px) {
    body {
        font-size: 13px;
    }

    .navbar {
        padding: 0.5rem 0.75rem;
    }

    .nav-brand h1 {
        font-size: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .course-card .course-header {
        padding: 1rem;
    }

    .course-card .course-body {
        padding: 1rem;
    }

    .course-card h3 {
        font-size: 1rem;
    }

    /* Login Page */
    .login-container {
        padding: 1rem;
    }

    .login-card {
        padding: 1.5rem;
    }

    .login-card h2 {
        font-size: 1.25rem;
    }

    /* Hero Section */
    .hero-section {
        padding: 2rem 1rem;
    }

    .hero-section h1 {
        font-size: 1.5rem;
    }

    .hero-section p {
        font-size: 0.9rem;
    }

    /* Badges */
    .badge {
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
    }

    /* Toast */
    .toast {
        width: 90%;
        left: 5%;
        right: 5%;
        font-size: 0.85rem;
    }

    /* Modal for small screens */
    .modal-content {
        width: 98%;
        margin: 1vh auto;
        max-height: 98vh;
        border-radius: var(--radius);
    }

    .modal-header {
        padding: 0.75rem 1rem;
    }

    .modal-header h3 {
        font-size: 1rem;
    }

    .modal-body {
        padding: 0.75rem 1rem;
    }

    .modal-footer {
        padding: 0.75rem 1rem;
    }

    /* Card adjustments */
    .card {
        border-radius: var(--radius);
        margin-bottom: 1rem;
    }

    .card-header {
        padding: 0.75rem 1rem;
    }

    .card-body {
        padding: 0.75rem 1rem;
    }
}

/* Extra Small Devices (max-width: 400px) */
@media (max-width: 400px) {
    .nav-brand h1 {
        font-size: 0.9rem;
    }

    .nav-item {
        padding: 0.4rem 0.5rem;
    }

    .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }

    .course-tab {
        min-width: 100%;
        text-align: center;
    }

    .grade-input {
        width: 45px !important;
    }

    .final-grade-input {
        width: 40px !important;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
    }

    .nav-item {
        min-height: 44px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        min-height: 44px;
    }

    .grade-input,
    .final-grade-input {
        min-height: 40px;
    }
}

/* Print Styles */
@media print {

    .navbar,
    .nav-menu,
    .btn,
    .modal-container {
        display: none !important;
    }

    .table {
        font-size: 10pt;
    }

    body {
        background: white !important;
        color: black !important;
    }
}

/* Landscape Mode Adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .modal-content {
        max-height: 95vh;
    }

    .modal-body {
        max-height: 60vh;
        overflow-y: auto;
    }

    .login-card {
        padding: 1rem;
    }
}

/* ========================================
   Footer Styles
   ======================================== */
.app-footer {
    background: var(--gradient-hero);
    color: white;
    padding: 1.5rem 2rem;
    text-align: center;
    margin-top: auto;
    border-top: 3px solid var(--secondary);
}

.app-footer .footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.app-footer p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.app-footer strong {
    color: var(--secondary);
    font-weight: 700;
    letter-spacing: 1px;
}

.app-footer a {
    color: var(--secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.app-footer a:hover {
    color: white;
    text-decoration: underline;
}

/* Footer responsive */
@media (max-width: 767px) {
    .app-footer {
        padding: 1rem;
    }

    .app-footer p {
        font-size: 0.8rem;
    }
}

/* Ensure footer stays at bottom */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.app-container {
    flex: 1;
}

/* ========================================
   Android & Mobile Optimizations
   ======================================== */

/* Safe area for notched devices */
.app-container,
.navbar,
.app-footer {
    padding-left: env(safe-area-inset-left, 0);
    padding-right: env(safe-area-inset-right, 0);
}

.app-footer {
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0));
}

/* Smooth scrolling for Android */
html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Prevent text selection on buttons */
.btn,
.nav-item,
.course-tab {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* Better touch feedback */
.btn:active,
.nav-item:active,
.course-card:active,
.meeting-card:active {
    transform: scale(0.98);
    opacity: 0.9;
}

/* Android keyboard push fix */
.modal-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
}

/* Prevent horizontal scroll */
html,
body {
    overflow-x: hidden;
    width: 100%;
}

/* Mobile-specific card styles */
@media (max-width: 767px) {

    /* Full-width containers */
    .container,
    .dashboard-content {
        padding: 0.75rem;
    }

    /* Course cards - full width, compact */
    .course-card {
        border-radius: var(--radius);
        margin-bottom: 0.75rem;
    }

    .course-card .course-header {
        padding: 0.75rem 1rem;
    }

    .course-card .course-body {
        padding: 0.75rem 1rem;
    }

    .course-card h3 {
        font-size: 1rem;
        line-height: 1.3;
    }

    .course-card p {
        font-size: 0.85rem;
    }

    /* Navbar compact */
    .navbar {
        padding: 0.5rem 0.75rem;
        position: sticky;
        top: 0;
        z-index: 100;
    }

    .nav-brand {
        gap: 0.5rem;
    }

    .nav-brand i {
        font-size: 1.25rem;
    }

    .nav-brand h1 {
        font-size: 1rem;
        white-space: nowrap;
    }

    /* Nav menu as bottom bar alternative */
    .nav-menu {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 0.5rem 0;
    }

    .nav-menu::-webkit-scrollbar {
        display: none;
    }

    .nav-item {
        flex-shrink: 0;
        padding: 0.5rem 0.75rem;
        border-radius: var(--radius-sm);
    }

    /* Stats grid - 2 columns */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .stat-card {
        padding: 0.75rem;
    }

    .stat-card i {
        font-size: 1.25rem;
    }

    .stat-card .stat-value {
        font-size: 1.25rem;
    }

    .stat-card .stat-label {
        font-size: 0.75rem;
    }

    /* Dashboard header */
    .dashboard-header {
        margin-bottom: 1rem;
        text-align: left;
    }

    .dashboard-header h2 {
        font-size: 1.25rem;
    }

    /* Meeting cards */
    .meeting-card {
        margin-bottom: 0.75rem;
        padding: 0.75rem;
    }

    .meeting-item {
        gap: 0.5rem;
    }

    .meeting-number {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
        flex-shrink: 0;
    }

    .meeting-info {
        flex: 1;
        min-width: 0;
    }

    .meeting-info h5 {
        font-size: 0.9rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .meeting-info p {
        font-size: 0.8rem;
    }

    .meeting-status {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }

    /* Material items - stacked */
    .materials-list {
        gap: 0.5rem;
    }

    .material-item {
        padding: 0.75rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .material-info {
        width: 100%;
    }

    .material-actions {
        width: 100%;
        display: flex;
        gap: 0.5rem;
    }

    .material-actions .btn {
        flex: 1;
        justify-content: center;
    }

    /* Course tabs - horizontal scroll */
    .course-tabs {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 0.5rem;
        padding-bottom: 0.5rem;
        margin-bottom: 1rem;
        -webkit-overflow-scrolling: touch;
    }

    .course-tabs::-webkit-scrollbar {
        display: none;
    }

    .course-tab {
        flex-shrink: 0;
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    /* Modal - full screen on mobile */
    .modal-content {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        margin: 0;
        border-radius: 0;
        display: flex;
        flex-direction: column;
    }

    .modal-header {
        padding: 0.75rem 1rem;
        flex-shrink: 0;
    }

    .modal-body {
        flex: 1;
        overflow-y: auto;
        padding: 1rem;
    }

    .modal-footer {
        padding: 0.75rem 1rem;
        flex-shrink: 0;
        border-top: 1px solid var(--border-color);
    }

    /* Button improvements */
    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }

    .btn-sm {
        padding: 0.5rem 0.75rem;
        min-height: 36px;
        font-size: 0.8rem;
    }

    /* Form inputs - larger touch targets */
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.875rem 1rem;
        font-size: 16px;
        min-height: 48px;
        border-radius: var(--radius);
    }

    /* Assignment cards */
    .assignment-card {
        padding: 0.75rem;
    }

    .assignment-header {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .assignment-title {
        font-size: 1rem;
    }

    .assignment-footer {
        flex-direction: column;
        gap: 0.5rem;
    }

    /* Login page */
    .login-container {
        padding: 1rem;
        min-height: calc(100vh - 60px);
    }

    .login-card {
        padding: 1.25rem;
        border-radius: var(--radius-lg);
    }

    .login-card h2 {
        font-size: 1.25rem;
    }

    /* Hero section */
    .hero-section {
        padding: 2rem 1rem;
    }

    .hero-section h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    /* Footer */
    .app-footer {
        padding: 1rem 0.75rem;
    }

    /* Tables - horizontal scroll wrapper */
    .table-responsive {
        margin: 0 -0.75rem;
        padding: 0 0.75rem;
        overflow-x: auto;
    }

    .table {
        min-width: 500px;
    }
}

/* Extra small screens (< 400px) */
@media (max-width: 400px) {
    .navbar {
        padding: 0.5rem;
    }

    .nav-brand h1 {
        font-size: 0.9rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.4rem;
    }

    .stat-card {
        padding: 0.6rem;
    }

    .stat-card .stat-value {
        font-size: 1.1rem;
    }

    .course-tab {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }

    .btn {
        padding: 0.6rem 0.75rem;
    }
}

/* ========================================
   Dashboard Mobile Fix
   ======================================== */
@media (max-width: 767px) {

    /* Hide hamburger menu icon if not needed */
    .hamburger-menu {
        display: none;
    }

    /* Navbar improvements */
    .navbar {
        background: var(--gradient-hero);
        padding: 0.75rem 1rem;
        gap: 0.5rem;
    }

    .navbar .search-box {
        flex: 1;
        max-width: none;
        order: 2;
    }

    .navbar .search-box input {
        width: 100%;
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
        border-radius: var(--radius);
    }

    .nav-actions {
        order: 3;
    }

    /* Dashboard welcome section */
    .dashboard-header {
        padding: 1rem;
        text-align: left;
    }

    .dashboard-header h2 {
        font-size: 1.35rem;
        margin-bottom: 0.25rem;
        color: var(--primary-dark);
    }

    .dashboard-header p {
        font-size: 0.9rem;
        color: var(--text-secondary);
    }

    /* Stats cards - 2x2 grid */
    .stats-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        padding: 0 1rem;
        margin-bottom: 1.5rem;
    }

    .stat-card {
        background: var(--bg-card);
        border-radius: var(--radius);
        padding: 1rem;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        box-shadow: var(--shadow-sm);
        border: 1px solid var(--border-color);
    }

    .stat-card .stat-icon {
        width: 40px;
        height: 40px;
        border-radius: var(--radius-sm);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.1rem;
        flex-shrink: 0;
    }

    .stat-card .stat-info {
        flex: 1;
        min-width: 0;
    }

    .stat-card .stat-value {
        font-size: 1.5rem;
        font-weight: 700;
        line-height: 1.2;
        color: var(--text-primary);
    }

    .stat-card .stat-label {
        font-size: 0.75rem;
        color: var(--text-secondary);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Course section */
    .courses-section {
        padding: 0 1rem;
    }

    .section-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1rem;
    }

    .section-header h3 {
        font-size: 1.1rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    /* Course cards - side by side */
    .courses-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .course-card {
        background: var(--bg-card);
        border-radius: var(--radius);
        overflow: hidden;
        box-shadow: var(--shadow-sm);
        border: 1px solid var(--border-color);
    }

    .course-card .course-header {
        padding: 0.5rem 0.75rem;
        background: var(--gradient-2);
        position: relative;
    }

    .course-card .course-code {
        font-size: 0.65rem;
        background: rgba(255, 255, 255, 0.2);
        padding: 0.15rem 0.4rem;
        border-radius: 4px;
        color: white;
        position: absolute;
        top: 0.5rem;
        left: 0.5rem;
    }

    .course-card .course-icon {
        width: 100%;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 1.5rem;
        opacity: 0.9;
    }

    .course-card .course-body {
        padding: 0.75rem;
    }

    .course-card h3 {
        font-size: 0.85rem;
        font-weight: 600;
        line-height: 1.3;
        margin-bottom: 0.25rem;
        color: var(--text-primary);
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .course-card .course-subtitle {
        font-size: 0.75rem;
        color: var(--text-secondary);
        margin-bottom: 0.5rem;
    }

    .course-card .course-meta {
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 0.7rem;
        color: var(--text-secondary);
    }

    .course-card .course-meta span {
        display: flex;
        align-items: center;
        gap: 0.25rem;
    }

    /* Add Course Button - Full width */
    .add-course-btn {
        width: 100%;
        grid-column: 1 / -1;
        padding: 0.75rem;
        margin-top: 0.5rem;
    }

    /* Cards general */
    .card {
        margin: 0 1rem 1rem;
        border-radius: var(--radius);
    }

    .card-header {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid var(--border-color);
    }

    .card-body {
        padding: 1rem;
    }
}

/* Single column for very small screens */
@media (max-width: 359px) {
    .courses-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .stat-card {
        padding: 0.75rem;
    }

    .stat-card .stat-value {
        font-size: 1.25rem;
    }
}

/* ========================================
   Full Screen Mobile Experience
   ======================================== */

/* Full viewport height */
html,
body {
    height: 100%;
    min-height: 100vh;
    min-height: -webkit-fill-available;
}

/* App container full screen */
.app-container {
    min-height: 100vh;
    min-height: -webkit-fill-available;
    display: flex;
    flex-direction: column;
}

/* Hide scrollbar on mobile but allow scroll */
@media (max-width: 767px) {
    html {
        height: -webkit-fill-available;
    }

    body {
        min-height: 100vh;
        min-height: -webkit-fill-available;
        overflow-x: hidden;
    }

    /* Full screen app container */
    .app-container {
        min-height: 100vh;
        min-height: -webkit-fill-available;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }

    /* Dashboard content fills remaining space */
    .dashboard-content,
    #dashboardContent {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Navbar fixed at top */
    .navbar {
        position: sticky;
        top: 0;
        z-index: 100;
        width: 100%;
    }

    /* Footer stays at bottom */
    .app-footer {
        margin-top: auto;
        width: 100%;
    }

    /* Remove any margins causing white space */
    .container,
    .dashboard-content,
    .courses-section,
    #dashboardContent {
        margin-left: 0;
        margin-right: 0;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    /* Full width cards */
    .card {
        border-radius: var(--radius);
        margin-left: 0;
        margin-right: 0;
    }

    /* Hide horizontal scrollbar */
    ::-webkit-scrollbar {
        width: 0;
        height: 0;
        background: transparent;
    }

    /* For Firefox */
    * {
        scrollbar-width: none;
    }
}

/* PWA Fullscreen Mode */
@media (display-mode: standalone) {
    body {
        padding-top: env(safe-area-inset-top);
    }

    .navbar {
        padding-top: calc(0.5rem + env(safe-area-inset-top));
    }

    .app-footer {
        padding-bottom: calc(1rem + env(safe-area-inset-bottom));
    }
}

/* Landscape mode optimization */
@media (max-height: 500px) and (orientation: landscape) {
    .navbar {
        padding: 0.25rem 0.75rem;
    }

    .nav-brand h1 {
        font-size: 0.9rem;
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
    }

    .stat-card {
        padding: 0.5rem;
    }

    .stat-card .stat-value {
        font-size: 1rem;
    }

    .courses-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========================================
   Collapsible Sidebar Styles
   ======================================== */

/* Dashboard container with sidebar */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar base styles */
.sidebar {
    width: 260px;
    min-width: 260px;
    background: var(--gradient-hero);
    color: white;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 200;
    overflow-x: hidden;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.sidebar-logo i {
    font-size: 1.5rem;
    color: var(--secondary);
}

/* Toggle button - always clickable */
.toggle-sidebar-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--secondary);
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    z-index: 999;
    position: relative;
    flex-shrink: 0;
}

.toggle-sidebar-btn i {
    font-size: 1.1rem;
    pointer-events: none;
}

.toggle-sidebar-btn:hover {
    background: var(--secondary);
    color: var(--dark);
    border-color: var(--secondary);
    transform: scale(1.05);
}

.toggle-sidebar-btn:active {
    transform: scale(0.95);
}

/* User profile in sidebar */
.user-profile {
    padding: 1.25rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.avatar-container {
    position: relative;
    flex-shrink: 0;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--secondary);
    object-fit: cover;
}

.avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-fast);
}

.user-profile:hover .avatar-overlay {
    opacity: 1;
}

.user-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    color: white;
}

.user-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: white;
}

.user-role {
    font-size: 0.75rem;
    opacity: 0.8;
    background: var(--secondary);
    color: var(--dark);
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    font-weight: 600;
}

/* Sidebar navigation - ENHANCED */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
}

.sidebar-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sidebar-nav .nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    margin: 0 0.75rem;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.sidebar-nav .nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
}

.sidebar-nav .nav-item:hover::before {
    opacity: 1;
}

.sidebar-nav .nav-item:hover {
    color: white;
    transform: translateX(4px);
}

.sidebar-nav .nav-item:hover i {
    transform: scale(1.15) rotate(-5deg);
    box-shadow: 0 4px 15px rgba(234, 179, 8, 0.4);
}

.sidebar-nav .nav-item.active {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.25) 0%, rgba(234, 179, 8, 0.1) 100%);
    color: white;
    box-shadow: inset 0 0 20px rgba(234, 179, 8, 0.1);
}

.sidebar-nav .nav-item.active::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: linear-gradient(180deg, var(--secondary) 0%, var(--accent) 100%);
    border-radius: 0 4px 4px 0;
}

/* Icon styling - PREMIUM with gradient glow */
.sidebar-nav .nav-item i {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    color: var(--secondary);
    background: linear-gradient(145deg, rgba(234, 179, 8, 0.2) 0%, rgba(234, 179, 8, 0.05) 100%);
    border: 1px solid rgba(234, 179, 8, 0.3);
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    position: relative;
    z-index: 1;
}

.sidebar-nav .nav-item.active i {
    background: linear-gradient(145deg, var(--secondary) 0%, var(--accent) 100%);
    color: var(--dark);
    border-color: var(--secondary);
    box-shadow: 0 4px 20px rgba(234, 179, 8, 0.5);
}

/* Text styling - elegant with shadow */
.sidebar-nav .nav-item span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Sidebar footer */
.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-logout {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
}

.btn-logout:hover {
    background: var(--danger);
    border-color: var(--danger);
}

/* Main content area */
.main-content {
    flex: 1;
    margin-left: 260px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s ease;
}

/* ========================================
   COLLAPSED SIDEBAR STATE
   ======================================== */
.sidebar.collapsed {
    width: 70px;
    min-width: 70px;
}

.sidebar.collapsed .sidebar-logo span,
.sidebar.collapsed .user-info,
.sidebar.collapsed .sidebar-nav .nav-item span,
.sidebar.collapsed .btn-logout span {
    display: none;
}

.sidebar.collapsed .sidebar-header {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem 0.5rem;
    position: relative;
}

.sidebar.collapsed .sidebar-logo {
    margin: 0;
}

.sidebar.collapsed .sidebar-logo i {
    font-size: 1.5rem;
}

/* Toggle button always visible in collapsed state */
.sidebar.collapsed .toggle-sidebar-btn {
    position: relative;
    width: 100%;
    height: 36px;
    margin-top: 0.5rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar.collapsed .user-profile {
    justify-content: center;
    padding: 1rem 0.5rem;
}

.sidebar.collapsed .avatar-container {
    margin: 0 auto;
}

.sidebar.collapsed .avatar {
    width: 44px;
    height: 44px;
    border: 2px solid var(--secondary);
    box-shadow: 0 4px 15px rgba(234, 179, 8, 0.3);
}

/* Nav items in collapsed state - ENHANCED */
/* Nav items in collapsed state - FIXED */
.sidebar.collapsed .sidebar-nav .nav-item {
    justify-content: center;
    padding: 0;
    margin: 0.5rem auto;
    width: 50px;
    height: 50px;
    min-height: 50px;
    cursor: pointer;
    position: relative;
    z-index: 1;
    border-radius: 12px;
    display: flex;
    align-items: center;
}

.sidebar.collapsed .sidebar-nav .nav-item:hover {
    transform: translateY(-2px);
    background: rgba(234, 179, 8, 0.2);
    /* Neat yellow hover */
    box-shadow: 0 4px 12px rgba(234, 179, 8, 0.3);
}

.sidebar.collapsed .sidebar-nav .nav-item.active {
    background: rgba(234, 179, 8, 0.25);
    border: 1px solid #CA8A04;
    color: #CA8A04;
    box-shadow: 0 0 15px rgba(202, 138, 4, 0.2);
}

.sidebar.collapsed .sidebar-nav .nav-item i {
    font-size: 1.4rem;
    width: auto;
    height: auto;
    pointer-events: none;
    background: none;
    box-shadow: none;
    margin: 0;
    padding: 0;
}

.sidebar.collapsed .sidebar-nav .nav-item:hover i {
    transform: scale(1.1);
}

.sidebar.collapsed .sidebar-nav .nav-item.active i {
    color: #CA8A04;
}

/* Logout button in collapsed state - ENHANCED */
.sidebar.collapsed .btn-logout {
    padding: 0.75rem;
    justify-content: center;
    min-height: 48px;
    cursor: pointer;
    margin: 0 0.5rem;
    border-radius: 10px;
}

.sidebar.collapsed .btn-logout:hover {
    transform: scale(1.05);
}

.sidebar.collapsed .btn-logout i {
    font-size: 1.25rem;
    pointer-events: none;
}

/* Main content when sidebar collapsed - FULL SCREEN */
.main-content.sidebar-collapsed {
    margin-left: 70px;
}

/* Tooltip for collapsed sidebar items */
.sidebar.collapsed .nav-item {
    position: relative;
}

.sidebar.collapsed .nav-item::after {
    content: attr(data-title);
    position: absolute;
    left: calc(100% + 8px);
    top: 50%;
    transform: translateY(-50%);
    background: var(--secondary);
    color: var(--dark);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Arrow for tooltip */
.sidebar.collapsed .nav-item::before {
    content: '';
    position: absolute;
    left: calc(100% + 2px);
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-right-color: var(--secondary);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1000;
}

.sidebar.collapsed .nav-item:hover::after,
.sidebar.collapsed .nav-item:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Mobile sidebar styles */
@media (max-width: 991px) {
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        z-index: 1000;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar.collapsed {
        transform: translateX(-100%);
        width: 280px;
    }

    /* Ensure sidebar shows full menu on mobile */
    .sidebar.open .sidebar-logo span,
    .sidebar.open .user-info,
    .sidebar.open .sidebar-nav .nav-item span,
    .sidebar.open .btn-logout span {
        display: inline !important;
    }

    /* Mobile sidebar menu styling - show icons AND text */
    .sidebar .sidebar-nav .nav-item {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 1rem 1.25rem;
    }

    .sidebar .sidebar-nav .nav-item i {
        width: 28px;
        height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
        flex-shrink: 0;
    }

    .sidebar .sidebar-nav .nav-item span {
        display: inline !important;
        font-size: 0.95rem;
        font-weight: 500;
    }

    /* User profile on mobile */
    .sidebar .user-profile {
        padding: 1.25rem;
    }

    .sidebar .user-info {
        display: block !important;
    }

    .sidebar .user-info h4 {
        font-size: 1rem;
    }

    /* Logout button on mobile */
    .sidebar .btn-logout {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .sidebar .btn-logout span {
        display: inline !important;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .main-content.sidebar-collapsed {
        margin-left: 0;
    }

    /* Hide desktop toggle in sidebar on mobile */
    .sidebar .toggle-sidebar-btn {
        display: none;
    }

    /* Mobile menu button in topbar - VISIBLE */
    .mobile-menu-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: var(--primary);
        color: white;
        border: none;
        border-radius: var(--radius);
        cursor: pointer;
        font-size: 1.25rem;
        z-index: 100;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }

    .mobile-menu-btn:hover {
        background: var(--primary-dark);
    }

    .mobile-menu-btn:active {
        transform: scale(0.95);
    }

    /* Mobile overlay - fast transition */
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.15s ease, visibility 0.15s ease;
        pointer-events: none;
    }

    .sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    /* Fast sidebar transition */
    .sidebar {
        transition: transform 0.2s ease;
    }

    /* Close button in sidebar for mobile */
    .sidebar-close-btn {
        display: flex;
        position: absolute;
        top: 1rem;
        right: 1rem;
        width: 36px;
        height: 36px;
        background: rgba(255, 255, 255, 0.2);
        color: white;
        border: none;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 1rem;
        z-index: 10;
    }

    .sidebar-close-btn:hover {
        background: var(--danger);
    }
}

/* Desktop: hide mobile menu button */
@media (min-width: 992px) {
    .mobile-menu-btn {
        display: none !important;
    }

    .sidebar-close-btn {
        display: none !important;
    }

    .sidebar-overlay {
        display: none !important;
    }
}

/* ========================================
   Android Full Screen Fix
   ======================================== */
@media (max-width: 991px) {

    /* Dashboard container takes full width */
    .dashboard-container {
        width: 100%;
        max-width: 100vw;
        margin: 0;
        padding: 0;
    }

    /* Main content full width */
    .main-content {
        width: 100% !important;
        max-width: 100vw !important;
        margin-left: 0 !important;
        padding: 0;
    }

    /* Topbar full width */
    .topbar {
        width: 100%;
        padding: 0.75rem 1rem;
        gap: 0.5rem;
    }

    /* Dashboard content full width */
    .dashboard-content,
    #dashboardContent,
    #adminContent {
        width: 100%;
        max-width: 100%;
        padding: 1rem;
        margin: 0;
    }

    /* Stats grid full width */
    .stats-grid {
        width: 100%;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        padding: 0;
    }

    /* Courses grid full width */
    .courses-grid {
        width: 100%;
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0;
    }

    /* Course cards full width */
    .course-card {
        width: 100%;
        margin: 0;
    }

    /* Dashboard header */
    .dashboard-header {
        padding: 0;
        margin-bottom: 1rem;
    }

    .dashboard-header h2 {
        font-size: 1.25rem;
    }

    /* Section headers */
    .section-header {
        flex-wrap: wrap;
        gap: 0.75rem;
        padding: 0;
    }

    /* Cards and containers */
    .card,
    .stat-card,
    .course-card {
        border-radius: 12px;
        width: 100%;
    }

    /* Remove any horizontal padding/margin */
    .container {
        padding-left: 0;
        padding-right: 0;
        max-width: 100%;
    }
}

/* Extra small screens */
@media (max-width: 480px) {

    .dashboard-content,
    #dashboardContent,
    #adminContent {
        padding: 0.75rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .stat-card {
        padding: 0.75rem;
    }

    .stat-card .stat-value {
        font-size: 1.25rem;
    }

    .stat-card .stat-label {
        font-size: 0.7rem;
    }

    .course-card {
        padding: 1rem;
    }

    .course-card h3 {
        font-size: 1rem;
    }

    .topbar-search {
        display: none;
    }

    .topbar {
        justify-content: space-between;
    }
}

/* ========================================
   New Login Page Styles (Glassmorphism)
   ======================================== */

.bg-tech-mesh {
    background-color: #022c22;
    background-image:
        radial-gradient(at 0% 0%, hsla(158, 82%, 35%, 1) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(142, 70%, 40%, 1) 0, transparent 50%),
        radial-gradient(at 100% 100%, hsla(160, 80%, 20%, 1) 0, transparent 50%),
        radial-gradient(at 0% 100%, hsla(150, 70%, 15%, 1) 0, transparent 50%),
        linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.4));
}

.tech-grid {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

.floating-shape {
    position: absolute;
    filter: blur(60px);
    opacity: 0.6;
    animation: float 20s infinite ease-in-out;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -50px) rotate(10deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(-5deg);
    }
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.glass-dark-panel {
    background: rgba(6, 78, 59, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

.input-glass {
    background: rgba(255, 255, 255, 0.45) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    transition: all 0.3s ease;
}

.input-glass:focus {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: #10b981 !important;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1) !important;
    outline: none;
}

.role-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.role-card.active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.role-card:not(.active):hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

/* Login Form Animations */
.login-form {
    display: none;
    opacity: 0;
    transform: translateY(10px);
}

.login-form.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: fadeSlideIn 0.4s ease forwards;
}

@keyframes fadeSlideIn {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Login Form Header with Role Label */
.login-form-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(100, 116, 139, 0.15);
}

.login-form-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.login-form-header h3 .material-symbols-outlined {
    font-size: 1.25rem;
    color: #10b981;
}

/* ========================================
   FOOTER STYLES - Always at bottom
   ======================================== */
.app-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-alt) 100%);
    color: white;
    padding: 0.75rem 1rem;
    text-align: center;
    z-index: 100;
    border-top: 1px solid rgba(234, 179, 8, 0.3);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.app-footer .footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.app-footer p {
    font-size: 0.85rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

.app-footer strong {
    color: var(--secondary);
    font-weight: 700;
}

/* Adjust main content to account for footer */
body {
    padding-bottom: 60px;
}

.dashboard-content,
#dashboardContent,
#adminContent {
    padding-bottom: 4rem;
}

/* Footer responsive */
@media (max-width: 991px) {
    .app-footer {
        padding: 0.6rem 1rem;
    }

    .app-footer p {
        font-size: 0.75rem;
    }
}

/* Hide footer when body has login-mode class */
body.login-mode .app-footer {
    display: none !important;
}

body.login-mode {
    padding-bottom: 0 !important;
}

/* ========================================
   MAHASISWA SIDEBAR - GREEN & GOLD THEME
   ======================================== */

/* Mahasiswa sidebar with green gradient */
.sidebar[data-role="mahasiswa"] {
    background: linear-gradient(180deg, #065f46 0%, #047857 50%, #064e3b 100%);
    box-shadow: 4px 0 25px rgba(0, 0, 0, 0.3);
}

/* Animated gradient overlay - gold shimmer */
.sidebar[data-role="mahasiswa"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg,
            rgba(234, 179, 8, 0.08) 0%,
            rgba(250, 204, 21, 0.12) 25%,
            rgba(234, 179, 8, 0.05) 50%,
            rgba(250, 204, 21, 0.1) 75%,
            rgba(234, 179, 8, 0.08) 100%);
    background-size: 400% 400%;
    animation: greenGoldShift 12s ease infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes greenGoldShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Header with gold accent */
.sidebar[data-role="mahasiswa"] .sidebar-header {
    position: relative;
    z-index: 1;
    border-bottom: 1px solid rgba(250, 204, 21, 0.3);
}

.sidebar[data-role="mahasiswa"] .sidebar-logo i {
    color: #fbbf24;
    filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.7));
    animation: goldPulse 3s ease-in-out infinite;
}

.sidebar[data-role="mahasiswa"] .sidebar-logo span {
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

@keyframes goldPulse {

    0%,
    100% {
        filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.7));
        transform: scale(1);
    }

    50% {
        filter: drop-shadow(0 0 18px rgba(251, 191, 36, 1));
        transform: scale(1.05);
    }
}

/* Toggle button with gold */
.sidebar[data-role="mahasiswa"] .toggle-sidebar-btn {
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.2) 0%, rgba(234, 179, 8, 0.3) 100%);
    border: 2px solid rgba(250, 204, 21, 0.5);
    color: #fcd34d;
}

.sidebar[data-role="mahasiswa"] .toggle-sidebar-btn:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #eab308 100%);
    color: #065f46;
    border-color: #fbbf24;
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.5);
}

/* Avatar with gold glowing ring */
.sidebar[data-role="mahasiswa"] .avatar {
    border: 3px solid #fbbf24;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.5), inset 0 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar[data-role="mahasiswa"] .user-role {
    background: linear-gradient(135deg, #f59e0b 0%, #eab308 100%);
    color: #065f46;
    font-weight: 700;
}

.sidebar[data-role="mahasiswa"] .user-info h4 {
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* User profile section */
.sidebar[data-role="mahasiswa"] .user-profile {
    position: relative;
    z-index: 1;
    border-bottom: 1px solid rgba(250, 204, 21, 0.2);
}

/* Nav items with glassmorphism */
.sidebar[data-role="mahasiswa"] .sidebar-nav {
    position: relative;
    z-index: 1;
}

.sidebar[data-role="mahasiswa"] .sidebar-nav .nav-item {
    margin: 0.4rem 0.75rem;
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar[data-role="mahasiswa"] .sidebar-nav .nav-item:hover {
    background: rgba(250, 204, 21, 0.15);
    transform: translateX(8px);
}

.sidebar[data-role="mahasiswa"] .sidebar-nav .nav-item:hover i {
    transform: scale(1.15) rotate(-5deg);
    box-shadow: 0 6px 25px rgba(251, 191, 36, 0.6);
    background: linear-gradient(145deg, #f59e0b 0%, #eab308 100%);
    color: #065f46;
}

.sidebar[data-role="mahasiswa"] .sidebar-nav .nav-item span {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Nav item icons with gold accent */
.sidebar[data-role="mahasiswa"] .sidebar-nav .nav-item i {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(250, 204, 21, 0.2) 0%, rgba(234, 179, 8, 0.15) 100%);
    border: 2px solid rgba(250, 204, 21, 0.4);
    border-radius: 12px;
    color: #fcd34d;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

/* Active state with gold gradient */
.sidebar[data-role="mahasiswa"] .sidebar-nav .nav-item.active {
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.25) 0%, rgba(234, 179, 8, 0.15) 100%);
    box-shadow: inset 0 0 25px rgba(250, 204, 21, 0.1);
}

.sidebar[data-role="mahasiswa"] .sidebar-nav .nav-item.active::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background: linear-gradient(180deg, #f59e0b 0%, #eab308 100%);
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.8);
}

.sidebar[data-role="mahasiswa"] .sidebar-nav .nav-item.active i {
    background: linear-gradient(145deg, #f59e0b 0%, #eab308 100%);
    color: #065f46;
    border-color: transparent;
    box-shadow: 0 4px 25px rgba(251, 191, 36, 0.6);
}

.sidebar[data-role="mahasiswa"] .sidebar-nav .nav-item.active span {
    color: #fbbf24;
    font-weight: 600;
}

/* Footer section */
.sidebar[data-role="mahasiswa"] .sidebar-footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(250, 204, 21, 0.2);
}

.sidebar[data-role="mahasiswa"] .btn-logout {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.25) 100%);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

.sidebar[data-role="mahasiswa"] .btn-logout:hover {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.5);
}

.sidebar[data-role="mahasiswa"] .btn-logout i,
.sidebar[data-role="mahasiswa"] .btn-logout span {
    color: inherit;
}

/* Collapsed state for mahasiswa */
.sidebar[data-role="mahasiswa"].collapsed .sidebar-nav .nav-item:hover {
    transform: scale(1.1);
}

.sidebar[data-role="mahasiswa"].collapsed .sidebar-nav .nav-item i {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
}

.sidebar[data-role="mahasiswa"].collapsed .avatar {
    box-shadow: 0 0 25px rgba(251, 191, 36, 0.6);
}

/* ========================================
   SIDEBAR COLLAPSED - ADDITIONAL FIXES
   ======================================== */

/* Hide avatar overlay in collapsed state */
.sidebar.collapsed .avatar-overlay {
    display: none !important;
}

/* Hide close button in collapsed state on desktop */
.sidebar.collapsed .sidebar-close-btn {
    display: none !important;
}

/* Center header content in collapsed state */
.sidebar.collapsed .sidebar-header {
    justify-content: center;
    align-items: center;
    padding: 0.75rem 0.5rem;
}

/* Hide logo text in collapsed state */
.sidebar.collapsed .sidebar-logo span {
    display: none !important;
}

/* Center logo icon */
.sidebar.collapsed .sidebar-logo {
    justify-content: center;
    width: 100%;
}

.sidebar.collapsed .sidebar-logo i {
    margin: 0;
    font-size: 1.75rem;
}

/* Center user profile section */
.sidebar.collapsed .user-profile {
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 0.5rem;
    gap: 0.25rem;
}

/* Hide user info completely in collapsed state */
.sidebar.collapsed .user-info {
    display: none !important;
}

/* Center avatar in collapsed state */
.sidebar.collapsed .avatar-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.sidebar.collapsed .avatar {
    margin: 0 auto;
}

/* Fix nav items centering in collapsed state */
.sidebar.collapsed .sidebar-nav ul {
    padding: 0 0.25rem;
}

.sidebar.collapsed .sidebar-nav li {
    display: flex;
    justify-content: center;
}

.sidebar.collapsed .sidebar-nav .nav-item {
    width: auto;
    padding: 0.75rem;
    justify-content: center;
    gap: 0;
}

/* Ensure icons are centered */
.sidebar.collapsed .sidebar-nav .nav-item i {
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Fix footer in collapsed state */
.sidebar.collapsed .sidebar-footer {
    padding: 0.75rem 0.5rem;
}

.sidebar.collapsed .btn-logout {
    flex-direction: column;
    gap: 0;
    padding: 0.75rem;
}

.sidebar.collapsed .btn-logout span {
    display: none !important;
}

.sidebar.collapsed .btn-logout i {
    margin: 0 auto;
}

/* Toggle button in collapsed state */
.sidebar.collapsed .toggle-sidebar-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    margin: 0.5rem auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   FULLSCREEN CONTENT FOR DESKTOP
   ======================================== */

/* Dashboard content fullscreen on desktop */
@media (min-width: 992px) {

    .dashboard-content,
    #dashboardContent,
    #adminContent {
        max-width: 100%;
        width: 100%;
        padding: 1.5rem 2rem;
    }

    /* Lecturers page fullwidth */
    .lecturers-grid {
        width: 100%;
        max-width: 100%;
    }
}

/* ========================================
   TOAST NOTIFICATIONS (CENTERED & ENLARGED)
   ======================================== */
.toast-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    pointer-events: none;
    /* Allow clicks to pass through container */
    width: auto;
    bottom: auto;
    right: auto;
}

.toast {
    pointer-events: auto;
    /* Enable clicks on notifications */
    padding: 20px 40px;
    /* Extra Large padding */
    font-size: 1.2rem;
    /* Larger font */
    font-weight: 600;
    border-radius: 16px;
    /* Rounder corners */
    background: white;
    /* Fallback */
    color: white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 400px;
    /* Wider */
    max-width: 90vw;
    animation: toastPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    justify-content: center;
    /* Center text/icon */
    opacity: 1;
}

.toast i {
    font-size: 1.8rem;
    /* Larger icon */
}

.toast span {
    letter-spacing: 0.5px;
}

.toast.success {
    background: var(--success);
}

.toast.error {
    background: var(--danger);
}

.toast.warning {
    background: var(--warning);
}

.toast.info {
    background: var(--info);
}

@keyframes toastPop {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ========================================
   MODERN UI UTILITIES (Ported from index.html)
   ======================================== */

.bg-tech-mesh {
    background-color: #022c22;
    background-image:
        radial-gradient(at 0% 0%, hsla(158, 82%, 35%, 1) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(142, 70%, 40%, 1) 0, transparent 50%),
        radial-gradient(at 100% 100%, hsla(160, 80%, 20%, 1) 0, transparent 50%),
        radial-gradient(at 0% 100%, hsla(150, 70%, 15%, 1) 0, transparent 50%),
        linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.4));
}

.tech-grid {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

.floating-shape {
    position: absolute;
    filter: blur(60px);
    opacity: 0.6;
    animation: float 20s infinite ease-in-out;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -50px) rotate(10deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(-5deg);
    }
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.glass-dark-panel {
    background: rgba(6, 78, 59, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

.input-glass {
    background: rgba(255, 255, 255, 0.45) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    transition: all 0.3s ease;
}

.input-glass:focus {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: #10b981 !important;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1) !important;
}

.role-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.role-card.active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.role-card:not(.active):hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

.toast {
    color: var(--white);
    background: var(--gray-800);
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 10000;
    min-width: 300px;
    animation: slideIn 0.3s ease;
}


/* New Toast Style */
.toast {
    color: #ffffff !important;
}

/* Custom Modal for Confirm */
.confirm-modal-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.confirm-modal {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius);
    width: 90%;
    max-width: 400px;
    box-shadow: var(--shadow-xl);
    text-align: center;
}

.confirm-modal.danger-mode .icon {
    color: var(--danger);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.confirm-modal h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.confirm-modal p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.confirm-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}