﻿@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --bg: #f4f7fb;
    --surface: #ffffff;
    --surface-soft: #f8fbff;
    --text: #10223a;
    --muted: #607089;
    --primary: #0a6bff;
    --primary-deep: #0a49b8;
    --primary-soft: #e9f1ff;
    --success: #149e56;
    --warning: #c67a12;
    --danger: #d43333;
    --border: #dce7f5;
    --shadow: 0 14px 30px rgba(16, 34, 58, 0.08);
    --radius-lg: 18px;
    --radius-md: 12px;
    --radius-sm: 9px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Manrope', sans-serif;
    color: var(--text);
    background:
        radial-gradient(1400px 500px at -10% -20%, #d9ecff 0%, transparent 55%),
        radial-gradient(1100px 450px at 110% -10%, #e0f7ff 0%, transparent 50%),
        var(--bg);
}

a {
    color: var(--primary-deep);
    text-decoration: none;
}

a:hover {
    color: var(--primary);
}

.container {
    max-width: 1120px;
}

.navbar {
    background: linear-gradient(120deg, #0e65f0 0%, #06388e 100%) !important;
    box-shadow: 0 10px 25px rgba(7, 41, 105, 0.3);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.navbar-brand {
    font-weight: 800;
    letter-spacing: 0.3px;
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.brand-mark i {
    font-size: 1.1rem;
    color: #fff;
}

.nav-link {
    font-weight: 600;
    opacity: 0.95;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px !important;
}

.nav-ico {
    font-size: 1rem;
    opacity: 0.95;
}

.nav-link:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.14);
}

.card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    background: var(--surface);
}

.hero-panel {
    border: 1px solid #d6e6fb;
    border-radius: 22px;
    padding: 36px 22px;
    background:
        radial-gradient(500px 160px at 50% -35%, #b9d6ff 0%, transparent 75%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 18px 38px rgba(11, 45, 102, 0.1);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    border: 1px solid #cfe2ff;
    background: #eef5ff;
    color: #164b97;
    font-weight: 700;
    border-radius: 999px;
    padding: 8px 14px;
}

.feature-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(16, 34, 58, 0.12);
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    color: var(--text);
    font-weight: 800;
}

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

.form-control,
.form-select {
    border-radius: var(--radius-sm);
    border: 1px solid #cfddf1;
    padding: 11px 13px;
    font-weight: 500;
    background: #fbfdff;
}

.form-control:focus,
.form-select:focus {
    border-color: #7caefc;
    box-shadow: 0 0 0 4px rgba(10, 107, 255, 0.12);
    background: #fff;
}

.btn {
    border-radius: var(--radius-sm);
    font-weight: 700;
    padding: 10px 18px;
    border-width: 1px;
    transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(140deg, var(--primary) 0%, #125cf4 100%);
    border-color: #125cf4;
    box-shadow: 0 8px 18px rgba(10, 107, 255, 0.25);
}

.btn-primary:hover {
    filter: brightness(1.05);
}

.btn-success {
    background: linear-gradient(140deg, var(--success) 0%, #0f7d44 100%);
    border-color: #0f7d44;
}

.btn-warning {
    color: #fff;
    background: linear-gradient(140deg, #d69221 0%, var(--warning) 100%);
    border-color: var(--warning);
}

.btn-danger {
    background: linear-gradient(140deg, #e14646 0%, var(--danger) 100%);
    border-color: var(--danger);
}

.alert {
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: 0 6px 15px rgba(16, 34, 58, 0.06);
    font-weight: 600;
}

.table {
    border-radius: var(--radius-md);
    overflow: hidden;
}

.table thead th {
    border-bottom: 0;
    background: #eff5ff;
    color: #1f3b63;
    font-weight: 800;
}

.table td,
.table th {
    vertical-align: middle;
    border-color: #e4edf8;
}

.list-group-item {
    border-color: #e2ecf8;
    padding: 14px 16px;
}

.list-group-item i {
    color: #0a5dd2;
}

.option-label {
    display: block;
    margin-bottom: 12px;
    border: 1px solid #d6e3f6;
    background: var(--surface-soft);
    border-radius: var(--radius-md);
    padding: 13px 15px;
    cursor: pointer;
    transition: border-color 0.12s ease, background-color 0.12s ease, box-shadow 0.12s ease;
}

.option-label:hover {
    border-color: #8ab4ff;
    background: #f0f6ff;
}

.option-input {
    display: none;
}

.option-input:checked + .option-text {
    color: #0a4ab4;
    display: block;
    background: #eaf2ff;
    border: 1px solid #0a6bff;
    border-radius: 10px;
    padding: 8px 10px;
}

.option-label:has(.option-input:checked) {
    border-color: #0a6bff;
    background: #eaf2ff;
    box-shadow: inset 0 0 0 1px rgba(10, 107, 255, 0.25);
}

.option-text {
    font-weight: 600;
}

.timer-box {
    min-width: 94px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(130deg, #ff6b4f 0%, #d43333 100%);
    border-radius: 12px;
    padding: 6px 12px;
    box-shadow: 0 8px 20px rgba(212, 51, 51, 0.28);
}

.level-Bronze {
    background: linear-gradient(140deg, #b77938 0%, #e1a86a 100%);
    color: #fff;
}

.level-Silver {
    background: linear-gradient(140deg, #8e99a8 0%, #c6cfda 100%);
    color: #0f1f33;
}

.level-Gold {
    background: linear-gradient(140deg, #d4a11f 0%, #f3d271 100%);
    color: #433200;
}

.level-Diamond {
    background: linear-gradient(140deg, #2a91e8 0%, #8fdbff 100%);
    color: #05304e;
}

.badge {
    border-radius: 999px;
    padding: 7px 10px;
    font-weight: 700;
}

.certificate-card {
    border: 2px solid #99baf5;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

footer {
    border-top: 1px solid #dce8f7;
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(5px);
}

.table-responsive {
    border-radius: var(--radius-md);
}

@media (max-width: 768px) {
    .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .navbar-collapse {
        background: rgba(0, 0, 0, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: 14px;
        padding: 10px;
        margin-top: 10px;
        backdrop-filter: blur(4px);
    }

    .navbar-brand {
        max-width: calc(100% - 60px);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .navbar-nav .nav-link {
        width: 100%;
    }

    .btn {
        width: 100%;
        margin-bottom: 8px;
    }

    .card {
        border-radius: 14px;
    }

    .hero-panel {
        padding: 26px 14px;
        border-radius: 16px;
    }

    .hero-panel h1 {
        font-size: 1.55rem;
    }

    .hero-panel .btn {
        width: 100%;
        max-width: 340px;
    }

    .table {
        font-size: 0.92rem;
    }

    .timer-box {
        font-size: 1.2rem;
        padding: 5px 10px;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.35rem;
    }

    .brand-mark {
        width: 30px;
        height: 30px;
    }
}

@media print {
    nav,
    footer,
    .btn,
    .alert {
        display: none !important;
    }

    body {
        background: #fff !important;
    }

    .container {
        max-width: 100% !important;
        width: 100% !important;
    }

    .certificate-card {
        border: 2px solid #333 !important;
        box-shadow: none !important;
    }
}
