:root {
    --app-primary: #164e63;
    --app-secondary: #0f766e;
    --app-bg: #f4f7fb;
}

body {
    background: var(--app-bg);
    color: #243447;
    min-height: 100vh;
}

.app-navbar {
    background: linear-gradient(110deg, var(--app-primary), var(--app-secondary));
}

.navbar .nav-link.active,
.navbar .nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,.12);
    border-radius: .55rem;
}

.card {
    border: 0;
    border-radius: 1rem;
}

.stat-card {
    overflow: hidden;
    position: relative;
}

.stat-card::after {
    content: '';
    position: absolute;
    right: -35px;
    bottom: -45px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
}

.icon-box {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 1.45rem;
}

.table thead th {
    white-space: nowrap;
    vertical-align: middle;
}

.table-grade th,
.table-grade td {
    text-align: center;
    vertical-align: middle;
    min-width: 62px;
}

.table-grade .subject-col {
    text-align: left;
    min-width: 210px;
    position: sticky;
    left: 0;
    background: #fff;
    z-index: 2;
}

.report-header {
    background: #d7d7d7;
    border-radius: .8rem .8rem 0 0;
    padding: 1rem;
}

.report-title {
    text-align: center;
    font-weight: 700;
    letter-spacing: .02em;
}

.report-info-label {
    display: inline-block;
    min-width: 92px;
}

.login-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at top right, rgba(13,110,253,.28), transparent 35%),
        linear-gradient(145deg, #0f172a, #164e63 55%, #0f766e);
}

.login-card {
    max-width: 440px;
    width: 100%;
    border-radius: 1.25rem;
}

.form-control:focus,
.form-select:focus {
    border-color: #0f766e;
    box-shadow: 0 0 0 .25rem rgba(15,118,110,.15);
}

@media print {
    body { background: #fff !important; }
    .no-print, nav, footer { display: none !important; }
    main { padding: 0 !important; margin: 0 !important; }
    .card { box-shadow: none !important; border: 0 !important; }
    .table-responsive { overflow: visible !important; }
    .table-grade { font-size: 9px; }
    .table-grade th, .table-grade td { padding: 4px !important; }
    .table-grade .subject-col { position: static; min-width: auto; }
    @page { size: landscape; margin: 8mm; }
}

.status-upload-table td {
    min-width: 320px;
    vertical-align: top;
}

.status-box {
    min-height: 128px;
    padding: 1rem;
    border-radius: .8rem;
    border: 1px solid transparent;
}

.status-success {
    background: #ecfdf3;
    border-color: #bbf7d0;
}

.status-warning {
    background: #fffbeb;
    border-color: #fde68a;
}

.status-missing {
    background: #fff1f2;
    border-color: #fecdd3;
}

.font-monospace {
    letter-spacing: .02em;
}
