/* General Styles */
body {
    padding-top: 70px;
    padding-bottom: 220px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Navbar Styles */
.navbar {
    background-color: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    color: #667eea !important;
    font-size: 1.4rem;
}

.profile-header-img {
    /* border: 3px solid #667eea; */
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.student-name {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.timer-display .badge {
    font-size: 1rem !important;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Main Content */
.main-content-wrapper {
    padding: 20px 0;
    min-height: calc(100vh - 290px);
}

/* Exam Info Bar */
.exam-info-bar {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 5px 15px;
}

.info-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
}

.info-value {
    font-size: 1.1rem;
    color: #333;
    font-weight: 700;
}

/* Dashboard Card (Question Container) */
.dashboard-card {
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    background: #fff;
    padding: 30px;
    margin-bottom: 20px;
}

.dashboard-card h5 {
    color: #667eea;
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.dashboard-card p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #2c3e50;
    margin-bottom: 25px;
}

/* Form Check Styles */
.form-check {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    margin-bottom: 12px;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background: #f8f9fa;
}

.form-check:hover {
    background: #e3f2fd;
    border-color: #667eea;
}

.form-check-input {
    width: 20px;
    height: 20px;
    margin-top: 3px;
    cursor: pointer;
    flex-shrink: 0;
}

.form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.form-check-input:checked ~ .form-check-label {
    color: #667eea;
    font-weight: 600;
}

.form-check-label {
    padding-left: 12px;
    margin: 0;
    line-height: 1.6;
    color: #333;
    font-size: 1rem;
    cursor: pointer;
    flex: 1;
}

/* Bottom Navigation */
.bottom-navigation {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.1);
    padding-top: 10px;
}

.question-nav-wrapper {
    max-height: 50px;
    overflow-y: auto;
    /* padding: 0px 0; */
}

.question-nav-wrapper::-webkit-scrollbar {
    height: 3px;
}

.question-nav-wrapper::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 3px;
}

.question-nav .btn {
    width: 45px;
    height: 45px;
    margin: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    border-width: 2px;
}

.question-nav .btn-primary {
    background-color: #667eea;
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    transform: scale(1.1);
}

.question-nav .btn-danger {
    background-color: #28a745;
    border-color: #28a745;
}

.question-nav .btn-outline-primary {
    color: #667eea;
    border-color: #667eea;
}

.question-nav .btn-outline-primary:hover {
    background-color: #667eea;
    color: #fff;
}

/* Action Buttons Bottom */
/* .action-buttons-bottom {
    padding: 0 15px;
} */

.action-buttons-bottom {
        gap: 8px !important;
    }

.btn-nav {
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 10px;
    font-size: 1rem;
    min-width: 120px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
    font-size: 1.1rem;
    min-width: 140px;
}

.btn-success:hover {
    background-color: #218838;
}

/* Hidden action buttons in question card */
.dashboard-card .action-buttons {
    display: none;
}

.profile-section {
        margin-left: 10px;
    }

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding-bottom: 250px;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }

    .student-name {
        display: none;
    }

    .profile-section {
        margin-left: 10px;
    }


    .profile-header-img {
        width: 38px;
        height: 38px;
    }

    .timer-display .badge {
        font-size: 0.85rem !important;
        padding: 8px 12px !important;
    }

    .exam-info-bar {
        padding: 12px 15px;
    }

    .info-label {
        font-size: 0.75rem;
    }

    .info-value {
        font-size: 0.95rem;
    }

    .dashboard-card {
        padding: 20px 15px;
    }

    .dashboard-card h5 {
        font-size: 1.1rem;
    }

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

    .form-check {
        padding: 12px;
    }

    .form-check-label {
        font-size: 0.95rem;
    }

    .question-nav .btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
        margin: 3px;
    }

    .btn-nav {
        padding: 10px 16px;
        font-size: 0.9rem;
        min-width: 100px;
    }

    .btn-success {
        min-width: 110px;
        font-size: 1rem;
    }

    .action-buttons-bottom {
        gap: 8px !important;
    }
}

@media (max-width: 576px) {
    .exam-info-bar {
        justify-content: space-between;
    }

    .info-item {
        margin: 5px 10px;
    }

    .question-nav-wrapper {
        max-height: 100px;
    }

    .btn-nav {
        padding: 10px 12px;
        min-width: 90px;
        font-size: 0.85rem;
    }

    .btn-success {
        min-width: 100px;
    }
}

/* Login styles (preserved) */
.login-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 20px;
    box-sizing: border-box;
}

.login-card {
    width: 100%;
    max-width: 300px;
    margin-right: 50px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.5);
    padding: 30px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

form {
    display: flex;
    flex-direction: column;
}

form h2 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
    text-align: center;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

@media (max-width: 767px) {
    .login-card {
        max-width: 100%;
        margin-right: 0px;
        padding: 15px;
    }
}

@media (min-width: 768px) {
    .login-card {
        max-width: 400px;
    }
}

@media (min-width: 1200px) {
    .login-card {
        max-width: 350px;
    }
}

/* Instruction card (preserved) */
.instruction-card {
    background: #2f3640;
    border: 1px solid #353b48;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    padding: 20px;
    margin: 30px auto;
    max-width: 850px;
}

.instruction-card h2 {
    color: #00a8ff;
}

.section-title {
    color: #e1b12c;
    font-weight: bold;
    margin-bottom: 10px;
}

.instruction-card ul {
    list-style: none;
    padding-left: 0;
}

.instruction-card ul li {
    padding: 5px 0;
    position: relative;
    padding-left: 20px;
}

.instruction-card ul li::before {
    content: "✔";
    color: #44bd32;
    font-size: 16px;
    position: absolute;
    left: 0;
    top: 3px;
}

.do-dont-section ul li::before {
    color: #e84118;
}

.btn-proceed {
    background: #44bd32;
    border: none;
    color: white;
    font-weight: bold;
}

.btn-proceed:hover {
    background: #27ae60;
}