/* c:/xampp/htdocs/techfest-quiz/assets/css/style.css */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f4f6f9;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Authentication Pages */
.login-container {
    max-width: 450px;
    margin: 5% auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.login-title {
    font-weight: 700;
    color: #0d6efd;
    text-align: center;
    margin-bottom: 30px;
}

/* Sidebar Utilities */
.sidebar {
    width: 250px;
    position: fixed;
    top: 60px;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 100;
}
.sidebar-nav .nav-link {
    color: rgba(255,255,255,0.8);
    border-radius: 5px;
    padding: 10px 15px;
    transition: all 0.3s;
}
.sidebar-nav .nav-link:hover, .sidebar-nav .nav-link.active {
    background: rgba(255,255,255,0.1);
    color: #fff;
}
.fw-fixed-width {
    width: 20px;
    text-align: center;
}

/* Main Content Wrapper (Admin & User) */
.admin-content {
    margin-left: 250px;
    padding: 20px;
}
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        position: relative;
        top: 0;
        min-height: auto !important;
    }
    .admin-content {
        margin-left: 0;
    }
}

/* Quiz UI (NPTEL Style) */
.quiz-header {
    background: #0d6efd;
    color: white;
    padding: 15px;
    border-radius: 8px 8px 0 0;
}
.question-container {
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    padding: 20px;
    border-radius: 0 0 8px 8px;
    min-height: 400px;
}
.options-list {
    list-style: none;
    padding: 0;
}
.options-list li {
    margin-bottom: 12px;
}
.options-list label {
    cursor: pointer;
    font-weight: normal;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    display: block;
    transition: all 0.2s;
}
.options-list label:hover {
    background: #f8f9fa;
}
.options-list input[type="radio"]:checked + label {
    border-color: #0d6efd;
    background-color: #e9f2ff;
}

/* Pallete */
.palette-container {
    background: #fff;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
}
.q-btn {
    width: 40px;
    height: 40px;
    margin: 4px;
    border-radius: 4px;
    border: 1px solid #ccc;
    background: #fff;
    font-weight: bold;
    color: #333;
    transition: all 0.2s;
}
.q-btn.answered {
    background: #198754;
    color: white;
    border-color: #198754;
}
.q-btn.not-answered {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}
.q-btn.not-visited {
    background: #e9ecef;
}
.q-btn.marked {
    background: #fd7e14;
    color: white;
    border-color: #fd7e14;
}
.q-btn.marked-answered {
    background: #6f42c1;
    color: white;
    border-color: #6f42c1;
}
.q-btn.active {
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.5);
}

/* Legend */
.legend-item {
    font-size: 0.85rem;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}
.legend-box {
    width: 15px;
    height: 15px;
    display: inline-block;
    border-radius: 3px;
    margin-right: 8px;
}

.timer-display {
    font-size: 1.5rem;
    font-weight: bold;
    background: #212529;
    color: #fff;
    padding: 5px 15px;
    border-radius: 5px;
}
