:root {
    --black: #000000;
    --white: #ffffff;
}

.random-number-section .container {
    text-align: center;
}

.btn-option {
    margin: 5px;
}

.btn-reset {
    border: 1px solid var(--black);
    border-radius: 30px;
    padding: 6px 8px;
}

.btn-reset:hover {
    background-color: var(--black);
    color: var(--white);
    border: 1px solid var(--black);
}

.btn-navbar-reset,
.btn-navbar-logout {
    border: 1px solid var(--black);
    border-radius: 30px;
    padding: 6px 14px;
    font-weight: 500;
    background-color: white;
    color: var(--black);
    transition: all 0.3s ease-in-out;
}

.btn-navbar-login,
.btn-navbar-logout {
    border-radius: 30px;
    padding: 6px 14px;
    font-weight: 500;
    color: #fff;
    transition: all 0.3s ease-in-out;
}

/* Reset Button – Blue */
.btn-navbar-login {
    background-color: #0d6efd; 
    border: 1px solid #0d6efd;
}

.btn-navbar-login:hover {
    background-color: #084298; 
    border-color: #084298;
    color: #ffffff;
}

/* Logout Button – Red */
.btn-navbar-logout {
    background-color: #dc3545; /* Bootstrap danger */
    border: 1px solid #dc3545;
}

.btn-navbar-logout:hover {
    background-color: #a71d2a; /* Darker red */
    border-color: #a71d2a;
    color: #ffffff;
}

.custom-input {
    width: 80px;
    text-align: center;
}

.btn-test-me {
    width: 210px;
    padding: 18px 14px;
    border: 1px solid var(--black);
    border-radius: 30px;
    font-size: 28px;
    color: #15BE15;
}

.btn-test-me:hover {
    background-color: var(--black);
    border-color: 1px solid var(--black);
    color: var(--white);
}

.input-custom-field {
    border: 1px solid var(--black);
    border-radius: 30px;
    padding: 10px;
    width: 80px;
}

.btn-manage-mcq-option {
    border: 1px solid var(--black);
    border-radius: 30px;
    padding: 6px;
    width: 80px;
    font-size: 20px;
}

.btn-manage-mcq-option:hover {
    background-color: var(--black) !important;
    border: 1px solid var(--black) !important;
    color: var(--white) !important;
}

.question-btn.active {
    background-color: var(--black) !important;
    border: 1px solid var(--black) !important;
    color: var(--white) !important;
}

.form-check-input[type="radio"] {
    transform: scale(0.7);
    position: relative;
    /* Add this line */
    top: -3px;
}

body {
    background-image: url('../images/student/picture.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

 /* Modal update card styles */
 .modal-dialog {
    max-width: 500px;
    margin: 1.75rem auto;
}

.modal-content.bg-transparent {
    border: none;
}

.update-card {
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.5s ease-in-out;
}

.update-card .card-header {
    background-color: rgba(220, 234, 255, 0.9);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    padding: 15px 20px;
}

.update-card .card-title {
    color: #0d2b4e;
    font-weight: 600;
}

.update-card .card-body {
    padding: 20px;
    height: 16rem;
}

.update-card .card-footer {
    background-color: rgba(245, 247, 250, 0.9);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 10px 20px;
}

.update-card .btn-close {
    background: #00000;
    border: none;
    font-size: 1rem;
    opacity: 0.7;
    cursor: pointer;
    padding: 0;
}

.update-card .btn-close:hover {
    opacity: 1;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.update-info .card-header {
    background-color: rgba(204, 229, 255, 0.9);
    color: #004085;
}

.update-success .card-header {
    background-color: rgba(212, 237, 218, 0.9);
    color: #155724;
}

.update-warning .card-header {
    background-color: rgba(255, 243, 205, 0.9);
    color: #856404;
}

.update-danger .card-header {
    background-color: rgba(248, 215, 218, 0.9);
    color: #721c24;
}

.scrollable-paragraph {
    max-height: 12em;
    overflow-y: auto;
    line-height: 1.5em;
}

/* Guest user notice styles */
.guest-notice {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.guest-notice .btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    transition: all 0.3s ease;
}

.guest-notice .btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}






.quiz-results-container {
    max-width: 100%;
}

.quiz-result-card .card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.quiz-result-card .card-body {
    padding: 1.25rem;
}

/* Quiz Number Badge */
.badge-quiz-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 1rem;
    padding: 0.5rem 0.75rem;
    border-radius: 50%;
    font-weight: bold;
}

.quiz-date {
    margin-top: 0.5rem;
    text-align: center;
}

.topics-section {
    width: 100%;
}

.topics-label {
    color: #333;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: block;
}

.topics-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
    max-height: 160px;
    overflow-y: auto;
}

.topics-list.scrollable {
    height: 160px;
    overflow-y: scroll;
}

.topics-list.non-scrollable {
    height: auto;
    overflow-y: visible;
}

.topic-badge {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    display: inline-block;
    margin-bottom: 0.25rem;
}

/* Score Section */
.score-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.score-display {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.score-numbers {
    font-weight: bold;
    font-size: 1.1rem;
    color: #333;
}

/* Percentage Badges */
.percentage-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    color: white;
}

.percentage-excellent {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.percentage-good {
    background: linear-gradient(135deg, #17a2b8, #6f42c1);
}

.percentage-average {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
}

.percentage-needs-work {
    background: linear-gradient(135deg, #dc3545, #e83e8c);
}

/* Responsive Design */
@media (max-width: 768px) {
    .score-section {
        align-items: flex-start;
        margin-top: 1rem;
    }

    .score-display {
        justify-content: space-between;
        width: 100%;
    }

    .topics-list {
        margin-top: 0.5rem;
    }

    .quiz-date {
        text-align: left;
        margin-top: 0.25rem;
    }

    .modal-dialog {
        max-width: 360px;
        margin: 1.75rem auto;
    }
}

/* Empty State */
.no-quiz-history {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

.no-quiz-history i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

@media (max-width: 768px) {

    /* Mobile view only */
    .status-topic {
        display: inline-block;
        margin-left: auto;
    }
}

@media (max-width: 480px) {
    .status-topic {
        display: inline-block;
        margin-left: auto;
    }

    .modal-dialog {
        max-width: 360px;
        margin: 1.75rem auto;
    }
}