/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
}

/* MAIN CONTENT AREA */
.login-wrapper::before {
    content: "";
    position: absolute;
    width: 90%;
    height: 80%;
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    z-index: 0;
}

/* ================= NAVBAR ================= */
/* ================= NAVBAR PRO ================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

/* LEFT SIDE */
.nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* LOGO */
.nav-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* TITLE */
.nav-title {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* RIGHT SIDE */
.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* WELCOME TEXT */
.welcome-text {
    font-size: 14px;
    color: #ddd;
}

/* LINKS */
.nav-link {
    text-decoration: none;
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    transition: 0.3s;
    font-size: 14px;
}

/* HOVER */
.nav-link:hover {
    background: rgba(255,255,255,0.15);
}

/* LOGOUT BUTTON */
.logout {
    background: #ff4b2b;
}

.logout:hover {
    background: #ff2a00;
}

/* ================= CONTAINER ================= */
.container {
    padding: 25px;
}

/* ================= CARD ================= */
.card {
    background: rgba(255,255,255,0.95);
    padding: 25px;
    margin: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

/* ================= BUTTON ================= */
.btn {
    display: inline-block;
    padding: 12px 20px;
    margin: 8px 5px;
    background: linear-gradient(90deg, #4facfe, #00c6ff);
    border: none;
    color: white;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
    transition: 0.3s;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* DELETE BUTTON */
.btn-danger {
    background: linear-gradient(90deg, #ff416c, #ff4b2b);
}

/* ================= DASHBOARD CARDS ================= */
.dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.dashboard-card {
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    background: white;
    transition: 0.3s;
    cursor: pointer;
}

.dashboard-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* ================= TABLE ================= */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

table th {
    background: linear-gradient(90deg, #4facfe, #00c6ff);
    color: white;
    padding: 12px;
}

table td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
}

table tr:hover {
    background: #f1f9ff;
}

/* IMAGE */
table img {
    border-radius: 50%;
    border: 2px solid #4facfe;
    width: 50px;
    height: 50px;
}

/* ================= FORM ================= */
.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: none;
    background: #f1f1f1;
}

/* ================= ALERT ================= */
.success-box {
    background: #e6ffed;
    color: #2e7d32;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.error-box {
    background: #ffe5e5;
    color: red;
    padding: 10px;
    border-radius: 8px;
}

/* ================= EXAM UI ================= */
.exam-container {
    max-width: 700px;
    margin: 50px auto;
}

.question-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.option {
    display: block;
    background: #f1f1f1;
    padding: 10px;
    border-radius: 8px;
    margin: 8px 0;
    cursor: pointer;
    transition: 0.2s;
}

.option:hover {
    background: #d6f0ff;
}

.timer {
    float: right;
    color: red;
    font-weight: bold;
}

/* ================= RESULT ================= */
.result-pass {
    color: green;
    font-weight: bold;
}

.result-fail {
    color: red;
    font-weight: bold;
}

/* ================= PREMIUM LOGIN UI ================= */

.login-wrapper {
    min-height: calc(100vh - 70px); /* header height adjust */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

/* GLASSMORPHISM CARD */
.login-card {
    width: 380px;
    padding: 45px 35px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(25px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

/* GLOW EFFECT */
.login-card::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, #4facfe, #00f2fe);
    filter: blur(80px);
    opacity: 0.4;
    z-index: 0;
}

/* CONTENT ABOVE GLOW */
.login-card * {
    position: relative;
    z-index: 1;
}

/* TITLE */
.login-card h2 {
    font-size: 26px;
    margin-bottom: 10px;
    font-weight: 600;
}

.subtitle {
    font-size: 14px;
    color: #ddd;
    margin-bottom: 25px;
}

/* INPUT GROUP */
.input-group {
    text-align: left;
    margin-bottom: 18px;
}

.input-group label {
    font-size: 13px;
    color: #ccc;
    margin-bottom: 6px;
    display: block;
}

/* INPUT FIELD */
.input-group input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
    color: #fff;
    outline: none;
    transition: 0.3s;
}

/* INPUT PLACEHOLDER */
.input-group input::placeholder {
    color: #bbb;
}

/* INPUT FOCUS */
.input-group input:focus {
    border-color: #00c6ff;
    background: rgba(255,255,255,0.15);
    box-shadow: 0 0 10px rgba(0,198,255,0.3);
}

/* SHOW PASSWORD */
.login-card input[type="checkbox"] {
    margin-right: 5px;
}

/* BUTTON */
.btn {
    width: 100%;
    padding: 13px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(90deg, #4facfe, #00c6ff);
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
}

/* BUTTON HOVER */
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,198,255,0.4);
}

/* ERROR BOX */
.error-box {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255,0,0,0.3);
    color: #ff6b6b;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
}

/* MOBILE RESPONSIVE */
@media (max-width: 450px) {
    .login-card {
        width: 90%;
        padding: 30px 20px;
    }
}


/* LOGO STYLING */
.logo {
    width: 90px;
    margin-bottom: 15px;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.3));
}



exam-container {
    max-width: 900px;
    margin: 50px auto;
    padding: 20px;
}

/* ===== HEADER ===== */
.exam-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.exam-header h2 {
    color: #fff;
    font-size: 26px;
}

/* ===== TIMER (TOP RIGHT) ===== */
.timer-box {
    background: #ff3b3b;
    color: #fff;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 18px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* ===== PROGRESS BAR ===== */
.progress-bar {
    height: 8px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    margin-bottom: 25px;
    overflow: hidden;
}

#progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    transition: 0.3s;
}

/* ===== QUESTION CARD ===== */
.question-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 18px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
    animation: fadeIn 0.3s ease;
}

/* QUESTION NUMBER */
.q-number {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

/* QUESTION TEXT */
.q-text {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* ===== OPTIONS ===== */
.option {
    display: flex;
    align-items: center;
    padding: 14px;
    margin: 10px 0;
    border-radius: 12px;
    background: #f1f5f9;
    cursor: pointer;
    transition: 0.25s;
    border: 2px solid transparent;
}

.option input {
    margin-right: 12px;
}

/* HOVER EFFECT */
.option:hover {
    background: #e0f2fe;
    border-color: #38bdf8;
}

/* SELECTED OPTION */
.option input:checked + span {
    font-weight: bold;
    color: #2563eb;
}

/* ACTIVE OPTION BOX */
.option input:checked {
    accent-color: #2563eb;
}

/* ===== BUTTONS ===== */
.exam-controls {
    margin-top: 25px;
    text-align: center;
}

.exam-controls button {
    padding: 12px 22px;
    margin: 6px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
}

/* BUTTON COLORS */
.exam-controls button:nth-child(1) {
    background: #6b7280;
    color: white;
}
.exam-controls button:nth-child(2) {
    background: #2563eb;
    color: white;
}
.exam-controls button:nth-child(3) {
    background: #16a34a;
    color: white;
}

/* HOVER EFFECT */
.exam-controls button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* ===== ANIMATION ===== */
@keyframes fadeIn {
    from {opacity: 0; transform: translateY(15px);}
    to {opacity: 1; transform: translateY(0);}
}