/* assets/css/style.css */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

.min-vh-100 {
    min-height: 100vh;
}

.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.card-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    background-color: rgba(0, 0, 0, 0.03);
}

.btn {
    border-radius: 5px;
}

.form-control, .form-select {
    border-radius: 5px;
}

.form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.alert {
    border-radius: 5px;
    border: none;
}

/* Login specific styles */
.login-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Navigation styles */
.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: #333;
    padding: 0.75rem 1rem;
    border-radius: 0.25rem;
    margin: 0.125rem 0.5rem;
}

.sidebar .nav-link:hover {
    background-color: rgba(0, 123, 255, 0.1);
    color: #007bff;
}

.sidebar .nav-link.active {
    color: #007bff;
    background-color: rgba(0, 123, 255, 0.1);
}

.sidebar-heading {
    font-size: 0.75rem;
    text-transform: uppercase;
}

/* Exam interface styles */
#exam-timer {
    font-family: 'Courier New', monospace;
}

.questions-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.question-nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    text-decoration: none;
    color: #495057;
    font-weight: 500;
}

.question-nav-item:hover {
    background-color: #f8f9fa;
    border-color: #adb5bd;
}

.question-nav-item.answered {
    background-color: #d1e7dd;
    border-color: #badbcc;
    color: #0f5132;
}

.question-nav-item.skipped {
    background-color: #fff3cd;
    border-color: #ffecb5;
    color: #664d03;
}

.question-nav-item.current {
    background-color: #cfe2ff;
    border-color: #9ec5fe;
    color: #052c65;
}

.legend {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 3px;
}

.legend-color.answered {
    background-color: #d1e7dd;
    border: 1px solid #badbcc;
}

.legend-color.skipped {
    background-color: #fff3cd;
    border: 1px solid #ffecb5;
}

.legend-color.current {
    background-color: #cfe2ff;
    border: 1px solid #9ec5fe;
}

/* Results page styles */
.display-4 {
    font-size: 3.5rem;
    font-weight: 300;
    line-height: 1.2;
}

/* Print styles */
@media print {
    .navbar, .btn-toolbar, .sidebar {
        display: none !important;
    }
    
    .col-md-9 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .card {
        border: 1px solid #dee2e6 !important;
    }
}