:root {
    --bg-1: #07192b;
    --bg-2: #10395a;
    --bg-3: #1d5b5f;
    --surface: rgba(255, 255, 255, 0.1);
    --surface-strong: rgba(255, 255, 255, 0.14);
    --surface-border: rgba(255, 255, 255, 0.22);
    --text-main: #eaf3fd;
    --text-muted: #bed2e7;
    --accent: #f89f52;
    --accent-2: #ffd06f;
    --accent-deep: #f07f2a;
    --ok: #2ecf7b;
}

* {
    font-family: "Manrope", sans-serif;
}

body {
    background:
        radial-gradient(1000px 600px at -10% -20%, rgba(248, 159, 82, 0.26), transparent 55%),
        radial-gradient(900px 600px at 110% 10%, rgba(58, 172, 142, 0.24), transparent 52%),
        radial-gradient(900px 550px at 50% 120%, rgba(30, 103, 164, 0.22), transparent 56%),
        linear-gradient(140deg, var(--bg-1), var(--bg-2) 50%, var(--bg-3));
    color: var(--text-main);
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: #ffffff;
}

.page-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1 0 auto;
    padding-bottom: 2rem;
}

.bg-shape {
    position: fixed;
    border-radius: 999px;
    filter: blur(88px);
    opacity: 0.9;
    z-index: -1;
}

.shape-one {
    width: 280px;
    height: 280px;
    background: rgba(255, 152, 102, 0.35);
    top: -70px;
    left: -45px;
}

.shape-two {
    width: 320px;
    height: 320px;
    background: rgba(81, 190, 145, 0.28);
    right: -85px;
    bottom: -90px;
}

.nav-glass {
    backdrop-filter: blur(10px);
    background: linear-gradient(180deg, rgba(3, 14, 27, 0.82), rgba(4, 22, 38, 0.73));
    border-color: rgba(255, 255, 255, 0.12) !important;
}

.navbar-brand {
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.2px;
}

.navbar-brand i {
    color: var(--accent-2);
    font-size: 1.2rem;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.45);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(248, 159, 82, 0.25);
}

.nav-link {
    color: #d2e8fb;
    border-radius: 8px;
    padding: 0.42rem 0.72rem !important;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link:focus {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.glass-card,
.quiz-card {
    background: linear-gradient(170deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
    border: 1px solid var(--surface-border);
    border-radius: 18px;
    backdrop-filter: blur(8px);
    box-shadow: 0 18px 42px rgba(0, 8, 22, 0.22);
}

.quiz-card {
    padding: 1.35rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.quiz-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 208, 111, 0.65);
    box-shadow: 0 24px 48px rgba(0, 10, 26, 0.32);
}

.glass-card h1,
.glass-card h2,
.glass-card h3,
.glass-card h4,
.quiz-card h1,
.quiz-card h2,
.quiz-card h3,
.quiz-card h4 {
    color: #ffffff;
    letter-spacing: 0.2px;
}

.form-control,
.form-select {
    background-color: rgba(8, 34, 58, 0.58);
    border-color: rgba(255, 255, 255, 0.26);
    color: #ffffff;
    border-radius: 12px;
}

.form-control:hover,
.form-select:hover {
    border-color: rgba(255, 208, 111, 0.65);
}

.form-select option {
    color: #102338;
    background-color: #eef6ff;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.2rem rgba(248, 159, 82, 0.26);
    background-color: rgba(11, 38, 65, 0.7);
    color: #ffffff;
}

.form-control::placeholder {
    color: #d7e5f1;
    opacity: 0.86;
}

.form-check-input {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.form-check-input:checked {
    background-color: var(--ok);
    border-color: var(--ok);
}

.btn {
    border-radius: 12px;
    font-weight: 700;
    letter-spacing: 0.15px;
}

.btn-accent {
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    border: none;
    color: #182433;
    box-shadow: 0 10px 24px rgba(248, 159, 82, 0.3);
}

.btn-accent:hover,
.btn-accent:focus {
    color: #172433;
    background: linear-gradient(120deg, var(--accent-deep), var(--accent-2));
    box-shadow: 0 14px 26px rgba(248, 159, 82, 0.4);
    transform: translateY(-1px);
}

.btn-outline-light {
    border-color: rgba(230, 242, 255, 0.78);
    color: #eff7ff;
}

.btn-outline-light:hover,
.btn-outline-light:focus {
    color: #11263a;
    background: #ebf5ff;
    border-color: #ebf5ff;
}

.btn-outline-info {
    color: #90e9ff;
    border-color: rgba(144, 233, 255, 0.75);
}

.btn-outline-info:hover,
.btn-outline-info:focus {
    color: #0f2535;
    background: #98eaff;
    border-color: #98eaff;
}

.alert {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
}

.option-label {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.78rem 0.95rem;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.option-label:hover {
    border-color: rgba(255, 176, 103, 0.78);
    background: rgba(255, 255, 255, 0.13);
}

.option-label input {
    accent-color: var(--ok);
}

.avatar-preview {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
}

.text-muted {
    color: var(--text-muted) !important;
}

.table-responsive {
    border-radius: 12px;
}

.table-dark {
    --bs-table-bg: transparent;
    --bs-table-color: #e9f4ff;
    --bs-table-striped-bg: rgba(255, 255, 255, 0.045);
    --bs-table-hover-bg: rgba(255, 255, 255, 0.08);
    --bs-table-border-color: rgba(255, 255, 255, 0.12);
}

.table-dark th {
    color: #f4f9ff;
    font-weight: 700;
}

.table-dark td,
.table-dark th {
    padding-top: 0.82rem;
    padding-bottom: 0.82rem;
}

.table-active {
    --bs-table-accent-bg: rgba(248, 159, 82, 0.27) !important;
}

.badge {
    border-radius: 999px;
}

.question-image {
    width: 100%;
    max-width: 460px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
    box-shadow: 0 10px 28px rgba(0, 8, 20, 0.28);
}

.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(4, 14, 24, 0.55);
    backdrop-filter: blur(5px);
    font-size: 0.82rem;
    line-height: 1.2;
    position: static !important;
    bottom: auto !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100%;
    margin-top: auto;
}

.footer-copy {
    color: #d8e8f9;
    font-size: 0.78rem;
    letter-spacing: 0.22px;
}

@media (max-width: 992px) {
    .navbar-collapse {
        margin-top: 0.7rem;
        padding-top: 0.5rem;
    }
}

@media (max-width: 768px) {
    .quiz-card {
        padding: 1rem;
    }

    .glass-card {
        padding: 1rem !important;
        border-radius: 14px;
    }

    .shape-one {
        width: 220px;
        height: 220px;
    }

    .shape-two {
        width: 230px;
        height: 230px;
    }
}
