@import url("https://cdn.jsdelivr.net/npm/@fontsource-variable/manrope@5.2.6/index.min.css");
@import url("https://cdn.jsdelivr.net/npm/@fontsource-variable/public-sans@5.2.6/index.min.css");

:root {
    --nnpc-navy: #0f2d45;
    --nnpc-navy-deep: #0a2234;
    --nnpc-accent: #1a73be;
    --nnpc-green: #2a9d66;
    --nnpc-surface: #f3f5f7;
    --nnpc-border: #dbe1e6;
    --nnpc-text: #1f2933;
    --nnpc-muted: #5c6b76;
    --nnpc-shadow: 0 12px 24px rgba(15, 45, 69, 0.08);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: "Manrope Variable", "Public Sans Variable", "Segoe UI", sans-serif;
    color: var(--nnpc-text);
    background: linear-gradient(180deg, #ffffff 0%, #f4f6f8 100%);
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand,
.admin-brand {
    font-family: "Public Sans Variable", "Manrope Variable", sans-serif;
    letter-spacing: 0.01em;
}

img {
    max-width: 100%;
}

a {
    color: var(--nnpc-accent);
}

.skip-link {
    position: absolute;
    top: -42px;
    left: 8px;
    background: #000;
    color: #fff;
    padding: 8px 12px;
    z-index: 1200;
    border-radius: 8px;
}

.skip-link:focus {
    top: 8px;
}

.site-header .top-strip {
    background: var(--nnpc-navy);
}

.brand-logo {
    width: 110px;
    height: auto;
}

.brand-logo-sm {
    width: 34px;
    height: auto;
}

.emergency-chip {
    color: #e7eef5;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.08);
    padding: 6px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.emergency-chip a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.site-main {
    min-height: calc(100vh - 220px);
    padding-top: 1.25rem;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.site-footer {
    background: var(--nnpc-navy);
    color: #d7e1ea;
}

.hero-panel {
    background: linear-gradient(180deg, #f8fafc 0%, #edf2f6 100%);
    border: 1px solid var(--nnpc-border);
    border-radius: 18px;
    box-shadow: var(--nnpc-shadow);
    overflow: hidden;
    animation: fadeSlideUp 0.38s ease-out;
}

.hero-panel .hero-head {
    background: linear-gradient(90deg, var(--nnpc-navy) 0%, #1a3f60 100%);
    color: #fff;
    padding: 1.25rem;
}

.hero-panel .hero-body {
    padding: 1.25rem;
}

.panel-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--nnpc-border);
    box-shadow: 0 8px 20px rgba(15, 45, 69, 0.05);
    animation: fadeSlideUp 0.34s ease-out;
}

.panel-card .card-body {
    padding: 1.1rem;
}

.search-form .form-control,
.search-form .form-select {
    border-radius: 10px;
}

.info-steps {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

.info-step {
    background: #fff;
    border: 1px solid var(--nnpc-border);
    border-radius: 14px;
    padding: 1rem;
    box-shadow: 0 4px 14px rgba(15, 45, 69, 0.04);
}

.info-step .step-number {
    background: var(--nnpc-navy);
    color: #fff;
    border-radius: 999px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    margin-bottom: 0.45rem;
}

.profile-shell {
    max-width: 860px;
    margin-inline: auto;
}

.profile-card {
    border: 1px solid var(--nnpc-border);
    border-radius: 18px;
    background: #f8f9fb;
    box-shadow: var(--nnpc-shadow);
    overflow: hidden;
    animation: fadeSlideUp 0.4s ease-out;
}

.profile-card-head {
    background: linear-gradient(120deg, var(--nnpc-navy) 0%, var(--nnpc-navy-deep) 100%);
    color: #fff;
    padding: 1rem 1.1rem;
}

.profile-avatar-wrap {
    margin-top: -42px;
    text-align: center;
}

.profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid #f8f9fb;
    box-shadow: 0 6px 20px rgba(15, 45, 69, 0.18);
    background: #fff;
}

.profile-name {
    text-align: center;
    margin-top: 0.65rem;
}

.profile-name h1 {
    font-size: clamp(1.35rem, 3.5vw, 2rem);
    margin-bottom: 0.3rem;
}

.profile-name p {
    color: var(--nnpc-muted);
    margin-bottom: 0.2rem;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.4rem 0.65rem;
    border-radius: 999px;
}

.verified-badge.verified {
    color: #0b6b43;
    background: #def6ea;
    border: 1px solid #b3e4cd;
}

.verified-badge.pending {
    color: #8a5d11;
    background: #fff6dc;
    border: 1px solid #f0d796;
}

.verified-badge.suspended {
    color: #8c1f1f;
    background: #fde6e6;
    border: 1px solid #f4b4b4;
}

.profile-details {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: 1fr;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    border-bottom: 1px dashed #d9dee3;
    padding-bottom: 0.65rem;
}

.detail-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.detail-item i {
    color: var(--nnpc-muted);
    width: 20px;
    margin-top: 2px;
}

.action-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
}

.action-grid .btn {
    border-radius: 10px;
    white-space: nowrap;
}

.qr-panel {
    background: #fff;
    border: 1px solid var(--nnpc-border);
    border-radius: 14px;
    padding: 1rem;
    text-align: center;
}

.qr-panel img {
    width: min(100%, 280px);
    border: 1px solid #e1e6ec;
    border-radius: 10px;
    padding: 8px;
    background: #fff;
}

.search-card {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 0.75rem;
    padding: 0.9rem;
    border-radius: 12px;
    border: 1px solid var(--nnpc-border);
    background: #fff;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.search-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(15, 45, 69, 0.08);
}

.search-card img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

.suggestion-box {
    position: absolute;
    z-index: 999;
    width: 100%;
    border: 1px solid var(--nnpc-border);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 20px rgba(15, 45, 69, 0.1);
    max-height: 280px;
    overflow-y: auto;
    display: none;
}

.suggestion-item {
    display: block;
    padding: 0.65rem 0.8rem;
    text-decoration: none;
    color: var(--nnpc-text);
    border-bottom: 1px solid #eff3f7;
}

.suggestion-item:last-child {
    border-bottom: 0;
}

.suggestion-item:hover {
    background: #f5f8fc;
}

.scan-shell {
    max-width: 840px;
    margin-inline: auto;
}

#reader {
    border: 1px solid var(--nnpc-border);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.empty-state {
    text-align: center;
    border: 1px dashed var(--nnpc-border);
    border-radius: 14px;
    padding: 2rem 1rem;
    background: #fff;
}

.admin-body {
    background: #f1f5f8;
}

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

.admin-sidebar {
    width: 250px;
    min-height: 100vh;
    background: var(--nnpc-navy);
    color: #fff;
}

.admin-brand {
    color: #fff;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.admin-sidebar .nav-link {
    color: #d5e1eb;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
}

.admin-sidebar .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.admin-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.admin-topbar {
    background: #fff;
    border-bottom: 1px solid #e0e7ed;
}

.stat-card {
    border-radius: 12px;
    border: 1px solid #dce3e9;
    background: #fff;
    box-shadow: 0 6px 16px rgba(15, 45, 69, 0.06);
}

.table-responsive table {
    min-width: 860px;
}

.profile-preview-card {
    border: 1px solid var(--nnpc-border);
    border-radius: 12px;
}

.login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: linear-gradient(120deg, #0e304a 0%, #1f4f70 45%, #f0f5f9 45%, #f8fafc 100%);
}

.login-card {
    width: 100%;
    max-width: 420px;
    border-radius: 16px;
    border: 1px solid #dbe2e9;
    background: #fff;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.16);
}

.pdf-shell {
    background: #fff;
}

.pdf-toolbar {
    position: sticky;
    top: 0;
    z-index: 120;
    background: #fff;
    border-bottom: 1px solid #e4e8ed;
    padding: 0.75rem;
}

.business-card-layout {
    width: min(920px, 100%);
    margin: 1rem auto;
    border: 1px solid #ccd7e2;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 45, 69, 0.08);
    overflow: hidden;
}

.business-card-head {
    background: var(--nnpc-navy);
    color: #fff;
    padding: 0.8rem 1rem;
}

.business-card-body {
    padding: 1rem;
}

@media (min-width: 576px) {
    .hero-panel .hero-body {
        padding: 1.5rem;
    }

    .action-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .info-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .profile-details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 1.3rem;
    }

    .action-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 992px) {
    .site-main {
        padding-top: 1.7rem;
    }

    .hero-panel .hero-head {
        padding: 1.4rem 1.8rem;
    }

    .hero-panel .hero-body {
        padding: 1.8rem;
    }

    .profile-avatar {
        width: 180px;
        height: 180px;
    }
}

@media (max-width: 575.98px) {
    .brand-logo {
        width: 84px;
    }

    .emergency-chip {
        font-size: 0.74rem;
        padding: 5px 8px;
    }

    .profile-avatar {
        width: 132px;
        height: 132px;
    }

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

    .action-grid .btn {
        font-size: 0.9rem;
        padding: 0.5rem;
    }

    .table-responsive table {
        min-width: 680px;
    }
}

@media print {
    .site-header,
    .site-footer,
    .pdf-toolbar,
    .no-print {
        display: none !important;
    }

    body,
    .pdf-shell {
        background: #fff !important;
    }

    .business-card-layout {
        box-shadow: none;
        border: 1px solid #333;
        margin: 0;
        width: 100%;
    }
}
