/* Main CSS Styles */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: 0.5px;
}

/* Cards */
.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
}

/* Tables */
.table {
    background-color: white;
}

.table thead th {
    background-color: #f8f9fa;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
    color: #495057;
}

.table tbody tr {
    border-bottom: 1px solid #dee2e6;
    transition: background-color 0.3s;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Buttons */
.btn {
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.875rem;
}

/* Forms */
.form-control,
.form-select {
    border-radius: 6px;
    border: 1px solid #dee2e6;
    padding: 0.6rem 0.75rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

/* Alerts */
.alert {
    border-radius: 6px;
    border: none;
}

.alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
}

.alert-danger {
    background-color: #f8d7da;
    color: #842029;
}

.alert-warning {
    background-color: #fff3cd;
    color: #664d03;
}

.alert-info {
    background-color: #cfe2ff;
    color: #084298;
}

/* Dashboard */
.dashboard-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.dashboard-card.blue {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.dashboard-card.green {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.dashboard-card.orange {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.dashboard-card.purple {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.dashboard-card h3 {
    font-size: 2rem;
    font-weight: bold;
}

.dashboard-card p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Exam Interface */
.exam-question {
    background-color: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.exam-question.active {
    border-left-color: var(--success-color);
    background-color: #f0f8ff;
}

.exam-question h5 {
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.exam-options {
    margin-left: 20px;
}

.exam-option {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 6px;
    transition: background-color 0.3s;
}

.exam-option:hover {
    background-color: #f8f9fa;
}

.exam-option input[type="radio"],
.exam-option input[type="checkbox"] {
    margin-right: 10px;
}

/* Timer */
.exam-timer {
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--danger-color);
    margin-bottom: 20px;
}

/* Results */
.result-card {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.result-score {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
}

.result-percentage {
    font-size: 1.2rem;
    text-align: center;
    color: #666;
}

.progress {
    height: 25px;
    border-radius: 6px;
    background-color: #e9ecef;
}

.progress-bar {
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Sidebar Navigation */
.sidebar {
    background-color: #f8f9fa;
    border-right: 1px solid #dee2e6;
    padding: 0;
}

.sidebar .nav-link {
    color: #495057;
    border-left: 3px solid transparent;
    padding: 12px 20px;
    transition: all 0.3s;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background-color: #e9ecef;
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.sidebar .nav-link i {
    margin-right: 10px;
}

/* Footer */
footer {
    margin-top: auto;
    border-top: 1px solid #dee2e6;
}

/* Status Badges */
.badge {
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-weight: 500;
}

.badge-success {
    background-color: #198754;
}

.badge-warning {
    background-color: #ffc107;
    color: #000;
}

.badge-danger {
    background-color: #dc3545;
}

.badge-info {
    background-color: #0dcaf0;
    color: #000;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-card h3 {
        font-size: 1.5rem;
    }

    .table {
        font-size: 0.875rem;
    }

    .exam-question {
        padding: 15px;
    }
}

/* Print Styles */
@media print {
    .navbar, footer, .btn, .no-print {
        display: none !important;
    }

    body {
        background-color: white;
    }

    .card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
}
