* {
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
}

.bg-grid {
    background-image:
        linear-gradient(rgba(15, 43, 70, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 43, 70, 0.035) 1px, transparent 1px);
    background-size: 24px 24px;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.gradient-text {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-btn {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.24);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.gradient-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.32);
}

.gradient-progress {
    background: linear-gradient(90deg, #2563eb 0%, #1d4ed8 100%);
    animation: progressGlow 2.2s ease-in-out infinite;
}

@keyframes progressGlow {
    0%, 100% { box-shadow: 0 0 8px rgba(37, 99, 235, 0.34); }
    50% { box-shadow: 0 0 18px rgba(29, 78, 216, 0.56); }
}

.nav-link {
    cursor: pointer;
    position: relative;
    transition: color 0.2s ease;
}

.nav-link::after {
    background: linear-gradient(90deg, #2563eb, #1d4ed8);
    bottom: -7px;
    content: '';
    height: 2px;
    left: 0;
    position: absolute;
    transition: width 0.24s ease;
    width: 0;
}

.nav-link:hover,
.nav-link.active {
    color: #0f2b46;
    font-weight: 700;
}

.nav-link.active::after,
.nav-link:hover::after {
    width: 100%;
}

.page-section {
    display: none;
    min-height: calc(100vh - 64px);
    opacity: 0;
    transition: opacity 0.24s ease;
}

.page-section.active {
    display: block;
    opacity: 1;
}

.section-hero {
    background:
        radial-gradient(circle at 14% 20%, rgba(37, 99, 235, 0.24), transparent 28%),
        linear-gradient(135deg, #0f2b46 0%, #10283d 48%, #1e4d78 100%);
    border-radius: 26px;
    box-shadow: 0 24px 60px rgba(15, 43, 70, 0.18);
    padding: 34px;
}

.card-hover {
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.card-hover:hover {
    box-shadow: 0 18px 44px rgba(15, 43, 70, 0.08);
    transform: translateY(-3px);
}

.metric-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(15, 43, 70, 0.05);
    padding: 22px;
}

.metric-card span {
    color: #64748b;
    display: block;
    font-size: 12px;
}

.metric-card strong {
    color: #0f2b46;
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 30px;
    margin-top: 8px;
}

.status-pill,
.admin-pill {
    background: rgba(37, 99, 235, 0.09);
    border: 1px solid rgba(37, 99, 235, 0.16);
    border-radius: 999px;
    color: #1d4ed8;
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
}

.form-label {
    color: #64748b;
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
}

.form-input {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #0f2b46;
    font-size: 14px;
    outline: none;
    padding: 12px 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}

.form-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.upload-box {
    align-items: center;
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
    min-height: 190px;
    text-align: center;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.upload-box:hover {
    background: #fff;
    border-color: #2563eb;
}

.upload-box small {
    color: #64748b;
    font-size: 12px;
}

.check-card {
    border: 1px solid;
    border-radius: 20px;
    padding: 24px;
}

.check-card strong {
    display: block;
    font-size: 14px;
}

.check-card span {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 34px;
    font-weight: 800;
    margin-top: 10px;
}

.check-card p {
    color: #64748b;
    font-size: 13px;
    margin-top: 8px;
}

.float-widget {
    bottom: 108px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: fixed;
    right: 24px;
    z-index: 60;
}

.float-btn {
    align-items: center;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
    color: #fff;
    display: flex;
    flex-direction: column;
    height: 52px;
    justify-content: center;
    transition: transform 0.2s ease;
    width: 52px;
}

.float-btn:hover {
    transform: translateY(-2px) scale(1.04);
}

.float-btn small {
    font-size: 9px;
    line-height: 1;
}

.modal-overlay {
    align-items: center;
    background: rgba(15, 43, 70, 0.52);
    backdrop-filter: blur(6px);
    display: none;
    inset: 0;
    justify-content: center;
    opacity: 0;
    padding: 24px;
    position: fixed;
    transition: opacity 0.22s ease;
    z-index: 100;
}

.modal-overlay.show {
    display: flex;
    opacity: 1;
}

.modal-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 28px 80px rgba(15, 43, 70, 0.24);
    color: #0f2b46;
    padding: 28px;
    position: relative;
    width: 100%;
}

.modal-close {
    align-items: center;
    background: #f1f5f9;
    border-radius: 10px;
    display: flex;
    height: 32px;
    justify-content: center;
    position: absolute;
    right: 18px;
    top: 18px;
    width: 32px;
}

.admin-link {
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.55);
    display: block;
    padding: 12px 14px;
    transition: background 0.2s ease, color 0.2s ease;
}

.admin-link:hover,
.admin-link.active {
    background: rgba(37, 99, 235, 0.16);
    color: #fff;
}

.admin-metric,
.admin-panel {
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.18);
}

.admin-metric {
    padding: 22px;
}

.admin-metric span {
    color: rgba(255, 255, 255, 0.42);
    display: block;
    font-size: 12px;
}

.admin-metric strong {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    margin-top: 8px;
}

.admin-panel {
    padding: 24px;
}
