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

:root {
    --primary: #1d4ed8;
    --primary2: #0f766e;
    --dark: #0f172a;
    --muted: #64748b;
    --bg: #f3f7fb;
    --card: rgba(255,255,255,.9);
    --border: rgba(15,23,42,.08);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', Tahoma, Arial, sans-serif;
    background:
        radial-gradient(circle at top right, rgba(29,78,216,.12), transparent 30%),
        radial-gradient(circle at bottom left, rgba(15,118,110,.10), transparent 30%),
        var(--bg);
    color: var(--dark);
    min-height: 100vh;
}

.app-navbar {
    background: rgba(255,255,255,.86);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(15,23,42,.05);
}

.navbar-brand {
    color: var(--primary);
}

.nav-link {
    font-weight: 700;
    color: var(--dark);
}

.nav-link:hover {
    color: var(--primary);
}

.hero-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 34px;
    border-radius: 32px;
    background: linear-gradient(135deg, #1d4ed8, #0f766e);
    color: white;
    box-shadow: 0 24px 70px rgba(29,78,216,.24);
    overflow: hidden;
    position: relative;
}

.hero-card:before {
    content: "";
    position: absolute;
    inset-inline-start: -80px;
    top: -80px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
}

.hero-card h1 {
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 900;
    margin: 0 0 10px;
}

.hero-card p {
    font-size: 18px;
    opacity: .9;
    margin: 0;
}

.eyebrow {
    display: inline-flex;
    padding: 7px 14px;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 999px;
    margin-bottom: 14px;
    font-weight: 800;
}

.hero-icon {
    width: 110px;
    height: 110px;
    display: grid;
    place-items: center;
    border-radius: 30px;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.24);
    font-size: 52px;
    flex: 0 0 auto;
}

.app-card {
    border: 1px solid var(--border);
    border-radius: 26px;
    background: var(--card);
    box-shadow: 0 18px 55px rgba(15,23,42,.08);
    overflow: hidden;
}

.form-control,
.form-select {
    border-radius: 16px;
    border-color: rgba(15,23,42,.12);
    padding: 12px 14px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 .2rem rgba(29,78,216,.12);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary2));
    border: 0;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(29,78,216,.18);
}

.page-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.page-title h2 {
    font-weight: 900;
    margin: 0;
}

.page-title p {
    margin: 6px 0 0;
    color: var(--muted);
}

.table thead th {
    background: #f8fafc;
    color: #334155;
    font-weight: 900;
    border-bottom: 1px solid var(--border);
}

.table td,
.table th {
    padding: 14px 16px;
}

.result-card {
    border-radius: 28px;
    padding: 26px;
    box-shadow: 0 18px 55px rgba(15,23,42,.08);
}

.result-card.success {
    background: linear-gradient(135deg, rgba(22,163,74,.12), rgba(14,165,233,.10));
    border: 1px solid rgba(22,163,74,.18);
}

.result-card.danger {
    background: linear-gradient(135deg, rgba(220,38,38,.12), rgba(251,191,36,.10));
    border: 1px solid rgba(220,38,38,.18);
}

.result-title {
    font-size: 22px;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 10px;
}

.student-name {
    font-size: 28px;
    font-weight: 900;
    margin-top: 12px;
}

.info-box,
.stat-box {
    background: rgba(255,255,255,.82);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 18px;
}

.info-box span,
.stat-box span {
    display: block;
    color: var(--muted);
    font-weight: 700;
    margin-bottom: 6px;
}

.info-box strong,
.stat-box strong {
    display: block;
    font-size: 22px;
    font-weight: 900;
}

@media (max-width: 768px) {
    .hero-card {
        align-items: flex-start;
        flex-direction: column;
        padding: 24px;
    }

    .hero-icon {
        width: 82px;
        height: 82px;
        font-size: 40px;
    }

    .page-title {
        flex-direction: column;
        align-items: stretch;
    }
}
