/* Premium Design System for Computer Center Exam Management System */
:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --bg-dark: #0f172a;
    --bg-light: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.8);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    overflow-x: hidden;
}

/* Glassmorphism utility */
.glass {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Sidebar & Navigation */
.sidebar {
    min-width: 260px;
    max-width: 260px;
    background: var(--bg-dark);
    color: white;
    transition: var(--transition);
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.7);
    padding: 12px 20px;
    border-radius: 8px;
    margin: 4px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar .nav-link:hover, .sidebar .nav-link.active {
    background: var(--primary-color);
    color: white;
}

/* Cards */
.card {
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.05);
}

/* Dashboard Stats Card */
.stats-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stats-card i {
    font-size: 2.5rem;
    opacity: 0.2;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* Form Styles */
.form-control {
    border-radius: 8px;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
}

.form-control:focus {
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
    border-color: var(--primary-color);
}

/* Typing Test Container */
#typing-area {
    font-size: 1.25rem;
    line-height: 1.8;
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.highlight-correct { color: var(--secondary-color); }
.highlight-wrong { color: #ef4444; background: #fee2e2; }

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.toast-alert {
    background: #fff;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    border-left: 5px solid #ef4444;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.toast-alert.show { transform: translateX(0); }
.toast-icon { 
    width: 30px; 
    height: 30px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 14px;
}
.toast-error { border-left-color: #ef4444; }
.toast-error .toast-icon { background: #fee2e2; color: #ef4444; }
.toast-success { border-left-color: #10b981; }
.toast-success .toast-icon { background: #d1fae5; color: #10b981; }
.toast-content { flex: 1; }
.toast-title { font-weight: 700; font-size: 14px; color: #1e293b; }
.toast-msg { font-size: 12px; color: #64748b; }

/* Hero Banner Circular Alignment */
.hero-banner-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-circle {
    position: absolute;
    width: 500px;
    height: 500px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.1;
    z-index: 0;
}

.hero-img {
    position: relative;
    z-index: 1;
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.1));
}

/* Mobile UI Enhancements */
@media (max-width: 768px) {
    .sidebar {
        display: none !important;
    }
    
    .main-content {
        padding: 1rem !important;
        margin-bottom: 80px !important;
    }

    .profile-shortcut {
        display: none !important;
    }
}

/* Bottom Navigation Bar */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: #fff;
    display: none;
    align-items: center;
    justify-content: space-around;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.05);
    z-index: 2000;
    border-top: 1px solid #e2e8f0;
}

@media (max-width: 768px) {
    .bottom-nav {
        display: flex;
    }
}

.bottom-nav-item {
    text-decoration: none;
    color: #94a3b8;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    transition: all 0.3s;
}

.bottom-nav-item i {
    font-size: 1.25rem;
}

.bottom-nav-item.active {
    color: var(--primary-color);
}

.bottom-nav-item.active i {
    transform: translateY(-2px);
}

/* Mobile Stats Grid */
.mobile-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Mobile Activity Card */
.activity-card {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.activity-card .status-badge {
    font-size: 0.6rem;
    padding: 4px 10px;
    border-radius: 100px;
    text-transform: uppercase;
    font-weight: 700;
}

@media (min-width: 768px) {
    .border-start-md {
        border-left: 1px solid #e2e8f0 !important;
    }
}


