/* Global Styles for Quiz App - Inspired by hiitambala.com */
:root {
    --primary: #0d6efd;
    --primary-dark: #084298;
    --accent: #f9b233;
    --bg: #f4f8fb;
    --card-bg: #fff;
    --shadow: 0 4px 24px rgba(0,0,0,0.08);
    --radius: 18px;
    --danger: #d9534f;
}
body {
    font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
    background: var(--bg);
    margin: 0;
    min-height: 100vh;
}
.container {
    max-width: 500px;
    margin: 48px auto;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 36px 28px 32px 28px;
    position: relative;
}
h1, h2, h3 {
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 0;
}
form {
    margin-bottom: 18px;
}
input[type="text"], input[type="email"], input[type="password"], select {
    width: 100%;
    padding: 10px 12px;
    margin: 8px 0 18px 0;
    border: 1.5px solid #dbe6f3;
    border-radius: 8px;
    background: #f7fafd;
    font-size: 1em;
    transition: border 0.2s;
}
input:focus, select:focus {
    border-color: var(--primary);
    outline: none;
}
button, .btn {
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    color: #fff;
    border: none;
    padding: 12px 36px;
    border-radius: 24px;
    cursor: pointer;
    font-size: 1.08em;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(13,110,253,0.10);
    transition: background 0.18s, box-shadow 0.18s;
    margin-top: 10px;
    margin-bottom: 10px;
}
button:disabled, .btn:disabled {
    background: #b6c6e3;
    cursor: not-allowed;
}
button:hover:not(:disabled), .btn:hover:not(:disabled) {
    background: linear-gradient(90deg, var(--primary-dark), var(--primary));
    box-shadow: 0 4px 16px rgba(13,110,253,0.18);
}
.card, .question-card {
    background: linear-gradient(120deg, #f4f8fb 60%, #e9f0fa 100%);
    border-radius: var(--radius);
    box-shadow: 0 2px 12px rgba(13,110,253,0.07);
    padding: 28px 20px 18px 20px;
    margin-bottom: 24px;
    min-height: 120px;
    transition: box-shadow 0.2s;
}
.card:hover, .question-card:hover {
    box-shadow: 0 6px 24px rgba(13,110,253,0.13);
}
label {
    font-size: 1em;
    color: #222;
    margin-bottom: 6px;
    display: block;
}
.error, .danger {
    color: var(--danger);
    text-align: center;
    margin-bottom: 18px;
    font-weight: 500;
}
.success {
    color: #198754;
    text-align: center;
    margin-bottom: 18px;
    font-weight: 500;
}
.center {
    text-align: center;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #f7fafd;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(13,110,253,0.04);
}
th, td {
    padding: 12px 8px;
    border-bottom: 1px solid #e3eaf2;
    text-align: left;
}
th {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
}
tr:hover {
    background: #e9f0fa;
}
@media (max-width: 600px) {
    .container {
        padding: 12px 2vw 12px 2vw;
        max-width: 98vw;
        min-width: 0;
    }
    .card, .question-card {
        padding: 10px 2vw 10px 2vw;
        min-width: 0;
    }
    table, th, td {
        font-size: 0.98em;
    }
    h1, h2, h3 {
        font-size: 1.2em;
    }
    button, .btn {
        width: 100%;
        padding: 14px 0;
        font-size: 1em;
    }
    input[type="text"], input[type="email"], input[type="password"], select, textarea {
        font-size: 1em;
        padding: 12px 10px;
    }
    .dashboard-nav {
        flex-direction: column;
        gap: 12px;
    }
}

/* Responsive table: horizontal scroll on small screens */
@media (max-width: 700px) {
    table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 12px;
    }
    thead, tbody, th, td, tr {
        display: revert;
    }
} 