/* =========================================
   1. General Reset & Base Styles
   ========================================= */
body {
    margin: 0;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #fdfafd;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* =========================================
   2. Layout Components (Sidebar & Navbar)
   ========================================= */
.header {
    height: 80px;
    background-color: #d81b60;
    color: white;
    text-align: center;
    line-height: 80px;
    font-size: 28px;
    font-weight: bold;
    margin: 0;
}

.navbar {
    background-color: #8e24aa;
    color: white;
    padding: 15px 25px;
    font-size: 20px;
    font-weight: bold;
    box-shadow: 0 2px 15px rgba(142, 36, 170, 0.3);
    text-align: center;
}

.sidebar {
    width: 220px;
    height: 100vh;
    background-color: #7b1fa2;
    position: fixed;
    top: 0;
    left: 0;
    padding-top: 60px;
    color: white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

    .sidebar a, .sidebar .btn-logout {
        display: block;
        color: #f3e5f5;
        padding: 15px 20px;
        text-decoration: none;
        transition: 0.3s;
        font-size: 14px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

        .sidebar a:hover {
            background-color: #9c27b0;
            padding-left: 30px;
            border-left: 4px solid #ff4081;
            color: white;
        }

.main {
    margin-left: 240px;
    padding: 30px;
    flex: 1;
}

/* =========================================
   3. Dashboard & Cards
   ========================================= */
.card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0px 4px 20px rgba(123, 31, 162, 0.1);
    margin-bottom: 25px;
}

.welcome-header {
    background: white;
    padding: 20px;
    border-radius: 10px;
    border-left: 6px solid #e91e63;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 25px;
}

    .welcome-header h1 {
        margin: 0;
        font-size: 24px;
        color: #7b1fa2;
    }

    .welcome-header span {
        color: #e91e63;
    }

.stats-container {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.card-stat {
    flex: 1;
    min-width: 200px;
    padding: 25px;
    color: white;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.2);
}

.total-student {
    background: linear-gradient(135deg, #ab47bc, #7b1fa2);
}

.total-quizez {
    background: linear-gradient(135deg, #ec407a, #c2185b);
}

.total-attempts {
    background: linear-gradient(135deg, #ba68c8, #9c27b0);
}

/* =========================================
   4. Tables & GridViews
   ========================================= */
.report-grid {
    width: 100%;
    border-collapse: collapse;
    background: white;
    margin-top: 15px;
    border-radius: 10px;
    overflow: hidden;
}

    .report-grid th {
        background: #8e24aa;
        color: white;
        padding: 15px;
    }

    .report-grid td {
        padding: 12px;
        border-bottom: 1px solid #f3e5f5;
        text-align: center;
    }

    .report-grid tr:hover {
        background-color: #fce4ec;
    }

/* =========================================
   5. Forms & Inputs
   ========================================= */
.admin-box {
    background: #fff0f6;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #f8bbd0;
}

.form-container {
    max-width: 500px;
    margin: 80px auto;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0px 10px 40px rgba(233, 30, 99, 0.15);
}

input:focus {
    outline: none;
    border-color: #e91e63;
    box-shadow: 0 0 8px rgba(233, 30, 99, 0.2);
}

/* =========================================
   6. Buttons
   ========================================= */
.btn {
    background: #e91e63;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

    .btn:hover {
        background: #c2185b;
        transform: scale(1.05);
        box-shadow: 0 5px 20px rgba(233, 30, 99, 0.4);
    }

.btn-go {
    background: #9c27b0;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
}

/* =========================================
   7. TAKE QUIZ interface
   ========================================= */
.quiz-container {
    max-width: 600px;
    width: 90%;
    margin: auto; 
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.1);
}

.q-text {
    font-size: 20px;
    font-weight: bold;
    margin: 20px 0;
    color: #2c3e50;
}

.options-list {
    width: 100%;
    margin-bottom: 20px;
}

    .options-list label {
        margin-left: 10px;
        cursor: pointer;
        font-size: 16px;
    }

.footer-btns {
    text-align: center; 
    margin-top: 20px;
}

.score-box {
    text-align: center;
    padding: 20px;
}

/* =========================================
   8. Alerts
   ========================================= */
.alert-success {
    color: #880e4f;
    background-color: #fce4ec;
    border: 1px solid #f8bbd0;
}
