﻿body {
    background-color: #f1f1f5;
    margin: 0;
}

.login-wrapper {
    min-height: 100vh;
}

.login-container {
    max-width: 420px;
    width: 90%;
    margin: auto;
}

.icon-circle {
    width: 50px;
    height: 50px;
    background: linear-gradient(to right, #001540, #001F6E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-inline: auto;
}

.input-group-text {
    border-radius: 0.5rem 0 0 0.5rem;
    background-color: #f8f9fa;
    border-right: none;
}

.input-group .form-control {
    border-radius: 0 0.5rem 0.5rem 0;
    border-left: none;
    padding: 0.6rem 0.75rem;
}

.btn-login {
    background: linear-gradient(to right, #001540, #001F6E);
    color: white;
    font-weight: 600;
    padding: 0.65rem;
    border: none;
    border-radius: 10px;
    transition: 0.3s ease;
}

    .btn-login:hover {
        background: linear-gradient(to right, #001030, #001a50);
        transform: translateY(-1px);
    }

.back-link {
    color: #0b0b40;
    text-decoration: none;
    font-weight: 500;
}

    .back-link:hover {
        text-decoration: underline;
    }

.toast-dynamic {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1080;
}

@media (max-width: 767.98px) {
    .toast-dynamic {
        left: 50%;
        transform: translateX(-50%);
        right: auto;
    }
}

/* ------------------------------
   Student Dashboard Styles
------------------------------ */

.quiz-card, .progress-card {
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(60,70,130,.05);
    border: 1px solid #ececec;
    margin-bottom: 18px;
    background: #fff;
}

.quiz-badge {
    background: #f4f6fa;
    color: #222;
    font-weight: 600;
    border-radius: 999px;
    font-size: 1.05em;
    padding: 2px 17px;
    box-shadow: 0 1px 3px rgba(0,0,0,.03);
}

.btn-take-quiz {
    background: #052940; /* navy blue */
    color: #fff !important;
    border-radius: 9px;
    font-weight: 600;
    padding-top: 10px;
    padding-bottom: 10px;
    margin-top: 18px;
    transition: background 0.2s;
}

    .btn-take-quiz:hover {
        background: #031a2d; /* darker navy */
        color: #fff !important;
    }


.already-taken-btn {
    background: #6c757d;
    border-radius: 9px;
    font-weight: 600;
    padding-top: 10px;
    padding-bottom: 10px;
    margin-top: 18px;
}

.progress-label-badge {
    border-radius: 7px;
    font-size: 1em;
    font-weight: bold;
    padding: 2px 12px;
    margin-left: 8px;
    color: #fff;
    position: absolute;
    right: 18px;
    top: 14px;
    z-index: 2;
}

.progress-card {
    position: relative;
}

.progress-title {
    font-weight: 700;
    margin-bottom: 5px;
}

.custom-progress {
    height: 6px;
    border-radius: 7px;
    background: #f0f2f7;
    overflow: hidden;
    margin-top: 7px;
    margin-bottom: 6px;
}

.custom-progress-bar-main {
    height: 100%;
    border-radius: 7px 0 0 7px;
}

.custom-progress-bar-accent {
    height: 100%;
    border-radius: 0 7px 7px 0;
}

.completed-label {
    color: #444;
    font-size: 1em;
}

.bg-danger {
    background-color: #dc3545 !important;
}

.bg-warning {
    background-color: #ffc107 !important;
}

.bg-success {
    background-color: #28a745 !important;
}

/* ✅ Welcome Header Styles */

/* 🔷 Gradient Header for Welcome Section */
.welcome-header {
    background: linear-gradient(to right, #001540, #001F6E);
    border-radius: 1rem;
    color: white;
    padding: 2rem;
}

.welcome-badge-light {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 6px 16px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,.1);
}

.welcome-heading {
    font-weight: 800;
    margin-top: 10px;
}

.welcome-subtext {
    font-size: 1rem;
    margin-top: 4px;
    opacity: 0.9;
}
/* 🌈 Gradient Text */
.gradient-text {
    background: linear-gradient(to right, #001540, #001F6E);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}
/* 🧩 Add spacing after welcome section */
.welcome-section {
    margin-bottom: 48px; /* approx. 1.5 inches on 96dpi screen */
}

.progress-panel {
    background-color: #f8faff;
}

    .progress-panel .custom-progress {
        height: 6px;
        border-radius: 6px;
        background-color: #e5eaf1;
        overflow: hidden;
    }

    .progress-panel .custom-progress-bar-main {
        height: 100%;
        border-radius: 6px;
    }

    .progress-panel .progress-label-badge {
        font-size: 0.9em;
        padding: 2px 10px;
    }
