:root {
    --hf-ink: #172033;
    --hf-muted: #64748b;
    --hf-line: #dfe7f3;
    --hf-bg: #f4f7fb;
    --hf-panel: #ffffff;
    --hf-navy: #102a43;
    --hf-teal: #0f766e;
    --hf-teal-dark: #115e59;
    --hf-amber: #b7791f;
    --hf-red: #b91c1c;
    --hf-blue: #1d4ed8;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--hf-ink);
    background: var(--hf-bg);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

a {
    text-decoration: none;
}

.hf-navbar {
    background: #0b1728;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.hf-brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--hf-teal);
    color: #fff;
}

.hf-brand-title {
    color: #fff;
    font-weight: 800;
    line-height: 1;
}

.hf-brand-subtitle {
    color: #b7c7dc;
    font-size: .75rem;
}

.hf-link {
    color: #dbe7f5 !important;
    font-weight: 600;
}

.hf-link:hover {
    color: #fff !important;
}

.hf-main {
    min-height: calc(100vh - 154px);
}

.hf-btn {
    border-radius: 8px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.hf-btn-primary {
    background: var(--hf-teal);
    border-color: var(--hf-teal);
    color: #fff;
}

.hf-btn-primary:hover {
    background: var(--hf-teal-dark);
    border-color: var(--hf-teal-dark);
    color: #fff;
}

.hf-btn-outline {
    border: 1px solid #b8c6d8;
    color: var(--hf-navy);
    background: #fff;
}

.hf-btn-outline:hover {
    border-color: var(--hf-teal);
    color: var(--hf-teal-dark);
    background: #f5fbfa;
}

.hf-section {
    padding: 28px 0;
}

.hf-panel {
    background: var(--hf-panel);
    border: 1px solid var(--hf-line);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .04);
}

.hf-panel-pad {
    padding: 18px;
}

.hf-kicker {
    color: var(--hf-teal-dark);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hf-title {
    font-size: 1.45rem;
    font-weight: 800;
    margin: 4px 0 6px;
}

.hf-text {
    color: var(--hf-muted);
    line-height: 1.6;
}

.hf-status {
    display: none;
    border-radius: 8px;
    padding: 11px 13px;
    border: 1px solid var(--hf-line);
    background: #fff;
    color: var(--hf-ink);
    font-weight: 600;
}

.hf-status.ok {
    display: block;
    background: #ecfdf5;
    color: #065f46;
    border-color: #a7f3d0;
}

.hf-status.bad {
    display: block;
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

.hf-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 5px 9px;
    border: 1px solid var(--hf-line);
    background: #fff;
    color: #334155;
    font-size: .78rem;
    font-weight: 700;
}

.hf-chip.ok {
    color: #065f46;
    background: #ecfdf5;
    border-color: #a7f3d0;
}

.hf-chip.warn {
    color: #92400e;
    background: #fffbeb;
    border-color: #fde68a;
}

.hf-chip.bad {
    color: #991b1b;
    background: #fef2f2;
    border-color: #fecaca;
}

.hf-field-label {
    color: #334155;
    font-size: .86rem;
    font-weight: 700;
}

.form-control,
.form-select {
    border-radius: 8px;
    border-color: #cbd5e1;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--hf-teal);
    box-shadow: 0 0 0 .18rem rgba(15, 118, 110, .13);
}

.hf-stat {
    min-height: 98px;
}

.hf-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--hf-teal);
}

.hf-stat-label {
    color: var(--hf-muted);
    font-size: .82rem;
    font-weight: 700;
}

.hf-stat-value {
    font-size: 1.55rem;
    font-weight: 800;
}

.hf-table {
    margin: 0;
}

.hf-table th {
    color: #475569;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: 0;
    background: #f8fafc;
}

.hf-table td,
.hf-table th {
    vertical-align: middle;
    padding: 12px;
}

.hf-footer {
    color: #b7c7dc;
    background: #0b1728;
    padding: 24px 0;
    font-size: .9rem;
}

.hero {
    min-height: 540px;
    display: flex;
    align-items: center;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(11,23,40,.92), rgba(11,23,40,.72), rgba(11,23,40,.28)),
        url("https://images.unsplash.com/photo-1586773860418-d37222d8fce3?auto=format&fit=crop&w=1800&q=80") center/cover no-repeat;
}

.hero h1 {
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    font-weight: 900;
    letter-spacing: 0;
    margin: 0 0 12px;
}

.hero p {
    max-width: 760px;
    color: #e2e8f0;
    font-size: 1.12rem;
    line-height: 1.7;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.module-tile {
    min-height: 96px;
    padding: 14px;
    border: 1px solid var(--hf-line);
    border-radius: 8px;
    background: #fff;
}

.module-tile i {
    color: var(--hf-teal);
    font-size: 1.15rem;
}

.module-tile strong {
    display: block;
    margin-top: 8px;
}

.admin-shell {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: #0b1728;
    color: #dbe7f5;
    padding: 18px;
    flex: 0 0 260px;
}

.admin-content {
    min-width: 0;
    flex: 1;
}

.admin-topbar {
    min-height: 64px;
    background: #fff;
    border-bottom: 1px solid var(--hf-line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 22px;
}

.admin-body {
    padding: 22px;
}

.side-link {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #dbe7f5;
    padding: 10px 12px;
    border-radius: 8px;
    font-weight: 700;
}

.side-link.active,
.side-link:hover {
    background: rgba(255,255,255,.09);
    color: #fff;
}

.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background:
        linear-gradient(90deg, rgba(11,23,40,.94), rgba(15,118,110,.74)),
        url("https://images.unsplash.com/photo-1519494026892-80bbd2d6fd0d?auto=format&fit=crop&w=1800&q=80") center/cover no-repeat;
}

.login-box {
    max-width: 440px;
    width: 100%;
}

@media (max-width: 991px) {
    .module-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-shell {
        display: block;
    }

    .admin-sidebar {
        width: 100%;
    }
}

@media (max-width: 575px) {
    .hero {
        min-height: 500px;
    }

    .module-grid {
        grid-template-columns: 1fr;
    }

    .admin-topbar {
        align-items: flex-start;
        flex-direction: column;
    }
}
