@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap');

:root {
    --ink: #0d1e3a;
    --green: #1a365d;
    --blue: #1e3a8a;
    --royal-blue: #2563eb;
    --navy: #1e293b;
    --mint: #e0f2fe;
    --ice-blue: #f0f7ff;
    --cream: #f8fafc;
    --line: #cbd5e1;
    --muted: #64748b;
    --white: #fff;
    --orange: #f59e0b
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    color: var(--ink);
    font: 15px/1.55 'DM Sans', sans-serif
}

h1,
h2,
b,
strong {
    font-family: Manrope, sans-serif
}

a {
    color: inherit
}

.topbar {
    height: 90px;
    max-width: 1180px;
    margin: 20px auto 0;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(30, 58, 138, 0.05);
}

.brand {
    display: flex;
    align-items: center;
    gap: 18px;
    text-decoration: none;
    font: 800 18px Manrope
}

.logo-brand {
    display: flex;
    align-items: center;
    gap: 18px;
    text-decoration: none;
}

.nav-logo {
    height: 62px;
    width: auto;
    object-fit: contain;
}

.sukkur-logo {
    max-height: 68px;
}

.sts-logo {
    max-height: 60px;
}

.logo-divider {
    height: 42px;
    width: 1px;
    background-color: #cbd5e1;
}

.brand small {
    display: block;
    font: 500 10px DM Sans;
    color: var(--muted);
    letter-spacing: .12em;
    text-transform: uppercase
}

.brandmark {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: var(--green);
    color: #fff;
    font: 800 24px Manrope
}

.topbar nav {
    display: flex;
    gap: 28px
}

.topbar nav a {
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    color: var(--blue);
}

.topbar nav a:hover {
    color: var(--royal-blue);
}

main {
    max-width: 1180px;
    margin: auto;
    padding: 0 24px 70px
}

.hero {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 70px;
    align-items: center;
    padding: 50px 0 58px
}

.eyebrow {
    display: inline-block;
    color: #2563eb;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: 15px;
    line-height: 1.4;
    background: #e0f2fe;
    padding: 6px 14px;
    border-radius: 99px;
    margin-bottom: 8px;
}

.hero h1,
.lookup h1,
.center-card h1,
.dash-head h1,
.admin-title h1 {
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.02;
    letter-spacing: -.04em;
    margin: 18px 0 22px;
    color: #1e293b;
    /* Tone 1: Dark Navy / Slate */
}

.hero h1 em {
    color: #2563eb;
    /* Tone 2: Vibrant Sukkur IBA Royal Blue */
    font-style: normal;
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.duration-badge {
    display: inline-block;
    color: #1e3a8a;
    font-weight: 700;
    font-size: 14px;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    padding: 6px 14px;
    border-radius: 99px;
    margin-bottom: 14px;
}

.hero p,
.lookup>p,
.center-card>p {
    font-size: 18px;
    color: #475569;
    line-height: 1.6;
    max-width: 610px;
}

.hero p b {
    color: #1e3a8a;
}

.hero-card {
    background: var(--ink);
    color: #fff;
    border-radius: 20px;
    padding: 26px
}

.hero-logos-card {
    backdrop-filter: blur(12px);
    border-radius: 28px;
    padding: 30px 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
    gap: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-logos-card:hover {
    transform: translateY(-4px);
}

.hero-logo {
    width: 48%;
    max-width: 320px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.08));
}

.sukkur-hero-logo {
    max-height: 155px;
}

.sts-hero-logo {
    max-height: 135px;
}

.hero-logo-divider {
    width: 1px;
    height: 120px;
    background: linear-gradient(180deg, transparent, #cbd5e1, transparent);
}

.progress {
    display: flex;
    gap: 5px;
    margin-bottom: 15px
}

.progress span {
    flex: 1;
    padding: 11px 14px;
    background: #e8e8df;
    color: #849087;
    font-size: 12px;
    font-weight: 700
}

.progress span:first-child {
    border-radius: 10px 0 0 10px
}

.progress span:last-child {
    border-radius: 0 10px 10px 0
}

.progress .active {
    background: var(--green);
    color: #fff
}

.form-section {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 36px;
    margin-bottom: 18px
}

.section-head {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    border-bottom: 1px solid var(--line);
    padding-bottom: 24px;
    margin-bottom: 28px
}

.section-head>span {
    display: grid;
    place-items: center;
    min-width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--mint);
    color: var(--green);
    font-weight: 800
}

.section-head h2,
.panel h2 {
    margin: 0 0 5px;
    font-size: 21px
}

.section-head p {
    margin: 0;
    color: var(--muted)
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px
}

.wide {
    grid-column: 1/-1
}

label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-weight: 600;
    font-size: 13px
}

label i {
    font-weight: 400;
    color: var(--muted)
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid #ccd4cd;
    background: #fbfcfa;
    border-radius: 9px;
    padding: 12px 13px;
    font: inherit;
    color: var(--ink);
    outline: none
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px #0f6b4517
}

textarea {
    min-height: 96px;
    resize: vertical
}

label small {
    color: var(--muted);
    font-weight: 400
}

.wide #count {
    float: right;
    color: var(--muted);
    font-weight: 400
}

.uploads {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px
}

.file {
    border: 1px dashed #aebbb2;
    border-radius: 12px;
    padding: 17px;
    background: #fbfcfa;
    cursor: pointer
}

.file span {
    color: var(--muted);
    font-weight: 400
}

.file input {
    padding: 5px;
    background: transparent;
    border: 0
}

.declaration {
    flex-direction: row;
    align-items: flex-start;
    background: #fff8eb;
    border: 1px solid #f0d6aa;
    border-radius: 12px;
    padding: 18px;
    margin: 26px 0
}

.declaration input {
    width: 18px;
    margin: 3px 9px 0 0
}

.declaration span {
    font-weight: 400
}

.declaration b {
    display: block
}

.primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    border: 0;
    border-radius: 12px;
    padding: 14px 24px;
    background: var(--royal-blue);
    color: #fff;
    text-decoration: none;
    font: 700 14px Manrope;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
    transition: all 0.2s ease;
}

.primary:hover {
    background: var(--blue);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.3);
}

.privacy {
    font-size: 12px;
    color: var(--muted)
}

.alert {
    padding: 16px 20px;
    border-radius: 10px;
    margin: 20px 0
}

.alert.error {
    background: #fff0ee;
    color: #9a3328;
    border: 1px solid #f0c4bd
}

.center-card,
.lookup {
    max-width: 680px;
    margin: 70px auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 50px
}

.center-card {
    text-align: center
}

.center-card h1,
.lookup h1 {
    font-size: 46px
}

.success-icon {
    margin: 0 auto 20px;
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--mint);
    color: var(--green);
    font-size: 30px
}

.tracking {
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: left;
    background: var(--cream);
    padding: 17px 20px;
    border-radius: 12px;
    margin: 30px 0
}

.tracking small {
    display: block;
    color: var(--muted)
}

.tracking strong {
    font-size: 21px;
    flex: 1
}

.tracking button {
    border: 0;
    background: #fff;
    padding: 8px 12px;
    border-radius: 7px;
    cursor: pointer
}

.lookup form {
    display: grid;
    gap: 18px;
    margin-top: 30px
}

.dash-head,
.admin-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 55px 0 30px
}

.dash-head h1,
.admin-title h1 {
    font-size: 48px;
    margin: 12px 0
}

.status {
    display: inline-block;
    border-radius: 99px;
    padding: 7px 12px;
    background: #fff0cc;
    color: #8a5b00;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap
}

.status.verified,
.status.shortlisted {
    background: #e1ecff;
    color: #275d9b
}

.status.selected {
    background: var(--mint);
    color: var(--green)
}

.status.rejected {
    background: #fee7e3;
    color: #9d332b
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 24px
}

.stats article {
    background: #fff;
    border: 1px solid var(--line);
    padding: 20px;
    border-radius: 14px
}

.stats small {
    display: block;
    color: var(--muted);
    margin-bottom: 8px
}

.stats b {
    font-size: 19px
}

.dashboard-grid,
.review-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 18px
}

.panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 26px
}

.panel h2 {
    border-bottom: 1px solid var(--line);
    padding-bottom: 18px;
    margin-bottom: 22px
}

.timeline>div {
    position: relative;
    padding: 0 0 28px 48px
}

.timeline>div:not(:last-child):before {
    content: '';
    position: absolute;
    left: 16px;
    top: 32px;
    height: calc(100% - 20px);
    border-left: 2px solid var(--line)
}

.timeline i {
    position: absolute;
    left: 0;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid var(--line);
    font-style: normal
}

.timeline .done i,
.timeline .current i {
    background: var(--green);
    border-color: var(--green);
    color: #fff
}

.timeline b,
.timeline small {
    display: block
}

.timeline small {
    color: var(--muted)
}

dl {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 0
}

dt,
dd {
    padding: 10px 0;
    border-bottom: 1px solid #edf0ed
}

dt {
    color: var(--muted)
}

dd {
    margin: 0;
    text-align: right;
    font-weight: 600
}

.filters {
    display: flex;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--line);
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 16px
}

.filters input {
    flex: 1
}

.filters select {
    max-width: 200px
}

.filters button {
    border: 0;
    border-radius: 8px;
    background: var(--ink);
    color: #fff;
    padding: 0 24px
}

.table-wrap {
    overflow: auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px
}

table {
    width: 100%;
    border-collapse: collapse
}

th,
td {
    text-align: left;
    padding: 15px 18px;
    border-bottom: 1px solid var(--line)
}

th {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--muted);
    letter-spacing: .08em
}

td small {
    display: block;
    color: var(--muted)
}

.view {
    font-weight: 700;
    color: var(--green);
    text-decoration: none
}

.empty {
    text-align: center;
    color: var(--muted);
    padding: 50px
}

.back {
    font-weight: 700;
    color: var(--green);
    text-decoration: none
}

.review-grid {
    align-items: start
}

.details {
    grid-template-columns: 160px 1fr
}

.details dd {
    text-align: left;
    overflow-wrap: anywhere
}

.docs {
    display: grid;
    gap: 10px
}

.docs a,
.docs .missing {
    padding: 12px;
    border-radius: 9px;
    background: var(--cream);
    text-decoration: none;
    font-weight: 600
}

.docs a span {
    color: var(--green);
    margin-right: 10px
}

.missing {
    color: var(--muted)
}

footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1180px;
    margin: 0 auto 30px;
    padding: 25px 30px;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    color: var(--blue);
    font-size: 13px;
    font-weight: 600;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(30, 58, 138, 0.04);
}

@media(max-width:760px) {

    .topbar nav a:first-child,
    .topbar nav a:last-child {
        display: none
    }

    .hero .eyebrow {
        display: none
    }

    .hero-logos-card {
        order: -1;
        margin-bottom: 8px
    }

    main {
        padding: 0 14px 50px
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 45px 0
    }

    .hero h1 {
        font-size: 48px
    }

    .grid,
    .uploads,
    .stats,
    .dashboard-grid,
    .review-grid {
        grid-template-columns: 1fr
    }

    .form-section {
        padding: 22px
    }

    .wide {
        grid-column: auto
    }

    .progress span {
        font-size: 0
    }

    .progress span:first-letter {
        font-size: 12px
    }

    .center-card,
    .lookup {
        padding: 28px;
        margin: 35px 0
    }

    .center-card h1,
    .lookup h1,
    .dash-head h1,
    .admin-title h1 {
        font-size: 36px
    }

    .dash-head,
    .admin-title {
        align-items: flex-start;
        gap: 20px
    }

    .stats {
        grid-template-columns: 1fr 1fr
    }

    .filters {
        flex-direction: column
    }

    .filters select {
        max-width: none
    }

    .filters button {
        padding: 12px
    }

    .details {
        grid-template-columns: 1fr
    }

    dd {
        text-align: left;
        padding-top: 0
    }

    footer {
        flex-direction: column;
        gap: 5px
    }
}

/* Analytics Dashboard Styles */
.analytics-dashboard {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(13, 30, 58, 0.03);
    transition: all 0.3s ease;
}
.analytics-dashboard.collapsed .analytics-grid {
    display: none;
}
.analytics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--line);
    padding-bottom: 12px;
    margin-bottom: 20px;
}
.analytics-header h2 {
    margin: 0;
    font-size: 20px;
    color: var(--ink);
}
.btn-toggle-dashboard {
    background: var(--ice-blue);
    color: var(--royal-blue);
    border: 1px solid var(--royal-blue);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
    outline: none;
}
.btn-toggle-dashboard:hover {
    background: var(--mint);
    transform: translateY(-1px);
}
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}
.analytics-card {
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.analytics-card h3 {
    margin: 0 0 14px;
    font-size: 15px;
    color: var(--ink);
    border-bottom: 1px solid rgba(203, 213, 225, 0.5);
    padding-bottom: 8px;
}
.bar-chart-row {
    margin-bottom: 12px;
}
.bar-chart-row:last-child {
    margin-bottom: 0;
}
.bar-chart-label {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--navy);
}
.bar-chart-bg {
    background: #e2e8f0;
    height: 8px;
    border-radius: 99px;
    overflow: hidden;
}
.bar-chart-fill {
    height: 100%;
    border-radius: 99px;
    background: var(--royal-blue);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.bar-chart-fill.gender-male {
    background: var(--blue);
}
.bar-chart-fill.gender-female {
    background: #ec4899;
}
.bar-chart-fill.residence-urban {
    background: var(--green);
}
.bar-chart-fill.residence-rural {
    background: var(--orange);
}
.stat-large-val {
    font-size: 24px;
    font-weight: 800;
    color: var(--green);
    margin-top: 4px;
}
.stat-subtext {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}
@media (max-width: 768px) {
    .analytics-grid {
        grid-template-columns: 1fr;
    }
}