/* Custom CSS for CBT Online */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* Navbar */
.navbar-brand {
    font-weight: 600;
}

/* Cards */
.card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-2px);
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

/* Buttons */
.btn {
    border-radius: 0.25rem;
    font-weight: 500;
}

/* Tables */
.table {
    background-color: white;
}

.table th {
    border-top: none;
    font-weight: 600;
}

/* Form */
.form-control, .form-select {
    border-radius: 0.25rem;
}

/* Alerts */
.alert {
    border: none;
    border-radius: 0.5rem;
}

/* Badges */
.badge {
    font-size: 0.75em;
    padding: 0.35em 0.65em;
}

/* Animations */
.animate__animated {
    animation-duration: 0.5s;
}

/* Sidebar (for admin) */
.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 48px 0 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.1);
}

.sidebar-sticky {
    position: relative;
    top: 0;
    height: calc(100vh - 48px);
    padding-top: 0.5rem;
    overflow-x: hidden;
    overflow-y: auto;
}

.sidebar .nav-link {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    padding: 0.75rem 1rem;
}

.sidebar .nav-link:hover {
    color: #fff;
}

.sidebar .nav-link.active {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar .nav-link i {
    margin-right: 0.5rem;
}

/* Dashboard Cards */
.dashboard-card {
    border-left: 0.25rem solid;
}

.border-left-primary { border-left-color: #4e73df !important; }
.border-left-success { border-left-color: #1cc88a !important; }
.border-left-info { border-left-color: #36b9cc !important; }
.border-left-warning { border-left-color: #f6c23e !important; }

/* Circular Progress */
.circular-progress {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.circular-progress-bar {
    position: absolute;
    width: 90%;
    height: 90%;
    border-radius: 50%;
    background-color: white;
}

.grade-display {
    position: relative;
    z-index: 1;
    font-size: 2rem;
    font-weight: bold;
    color: #4e73df;
}

/* Question List */
#question-list .list-group-item {
    cursor: pointer;
}

#question-list .list-group-item.active {
    background-color: #e9ecef;
    border-left: 3px solid #4e73df;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        position: relative;
        height: auto;
        padding: 0;
    }
    
    .sidebar-sticky {
        position: relative;
        height: auto;
    }
}