/* =========================================================
   GOMBE STATE GOVERNMENT
   RECONCILIATION OF RECORDS PORTAL
   PREMIUM GOVERNMENT PORTAL DESIGN
   Version 2.0
   ========================================================= */

/* =========================================================
   1. GLOBAL DESIGN SYSTEM
   ========================================================= */

:root {
    --navy: #10243a;
    --navy-light: #193650;
    --navy-soft: #263f59;

    --green: #176b45;
    --green-dark: #105638;
    --green-light: #eaf4ee;

    --gold: #c5a34c;
    --gold-light: #e8d6a2;

    --background: #f3f6f8;
    --surface: #ffffff;
    --surface-soft: #f8fafb;

    --text: #253449;
    --muted: #788597;

    --border: #e1e7ee;
    --border-dark: #cbd5df;

    --danger: #b42318;
    --danger-bg: #fff2f0;

    --success: #18794e;
    --success-bg: #edf8f1;

    --warning: #946b13;
    --warning-bg: #fff8e7;

    --shadow-sm: 0 2px 8px rgba(16,36,58,0.04);
    --shadow: 0 5px 20px rgba(16,36,58,0.06);
    --shadow-lg: 0 12px 35px rgba(16,36,58,0.09);

    --radius-sm: 5px;
    --radius: 9px;
    --radius-lg: 13px;

    --transition: all 0.22s ease;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--green);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--green-dark);
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

img {
    max-width: 100%;
}

::selection {
    background: var(--gold-light);
    color: var(--navy);
}


/* =========================================================
   2. MAIN PORTAL LAYOUT
   ========================================================= */

.portal-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
    background: var(--background);
}

.sidebar {
    width: 265px;
    min-width: 265px;
    background: linear-gradient(180deg, var(--navy) 0%, #0c1e31 100%);
    color: white;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    z-index: 20;
    box-shadow: 3px 0 18px rgba(16,36,58,0.08);
}

.main-area {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}


/* =========================================================
   3. SIDEBAR BRANDING
   ========================================================= */

.brand {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 25px 19px 24px;
    color: white;
    text-decoration: none;
}

.brand:hover {
    color: white;
}

.brand-logo {
    width: 55px;
    height: 55px;
    object-fit: contain;
    flex-shrink: 0;
    background: white;
    border-radius: 11px;
    padding: 4px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.4;
}

.brand-text strong {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: white;
}

.brand-text small {
    font-size: 10px;
    color: #c3ced8;
    letter-spacing: 1.5px;
}

.brand-text span {
    color: var(--gold-light);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-top: 5px;
    text-transform: uppercase;
}

.sidebar-divider {
    height: 1px;
    background: rgba(255,255,255,0.12);
    margin: 0 19px 25px;
}


/* =========================================================
   4. SIDEBAR NAVIGATION
   ========================================================= */

.nav-heading {
    padding: 0 23px 12px;
    color: #91a4b6;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.nav-heading-spaced {
    margin-top: 30px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    padding: 0 12px;
    gap: 5px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 12px 14px;
    border-radius: 7px;
    color: #d3dce5;
    font-size: 13px;
    font-weight: 600;
    position: relative;
    transition: var(--transition);
}

.sidebar-nav a:hover {
    background: rgba(255,255,255,0.09);
    color: white;
    padding-left: 17px;
}

.sidebar-nav a.active {
    background: linear-gradient(90deg, var(--green), #1d8054);
    color: white;
    box-shadow: inset 3px 0 0 var(--gold);
}

.nav-icon {
    width: 22px;
    min-width: 22px;
    text-align: center;
    font-size: 19px;
    line-height: 1;
}


/* =========================================================
   5. SIDEBAR USER PROFILE
   ========================================================= */

.sidebar-bottom {
    margin-top: auto;
    padding: 18px 15px 20px;
    border-top: 1px solid rgba(255,255,255,0.12);
    background: rgba(0,0,0,0.08);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 17px;
}

.user-avatar,
.topbar-avatar {
    width: 41px;
    height: 41px;
    min-width: 41px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--gold);
    color: var(--navy);
    font-weight: 800;
    font-size: 16px;
    border: 2px solid rgba(255,255,255,0.18);
}

.user-details {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.user-details strong {
    font-size: 12px;
    color: white;
    overflow-wrap: anywhere;
}

.user-details small {
    font-size: 10px;
    color: #aebdca;
}

.logout-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #e6b8b5;
    padding: 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.logout-link:hover {
    color: white;
    background: rgba(255,255,255,0.09);
}


/* =========================================================
   6. TOP HEADER
   ========================================================= */

.topbar {
    min-height: 82px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 15px 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 5;
}

.topbar-left {
    display: flex;
    flex-direction: column;
}

.topbar-label {
    color: var(--navy);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.topbar-subtitle {
    color: var(--muted);
    font-size: 11px;
    margin-top: 2px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 13px;
}

.account-info {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.account-info strong {
    color: var(--navy);
    font-size: 12px;
}

.account-info small {
    color: var(--muted);
    font-size: 11px;
}

.topbar-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: var(--green-light);
    color: var(--green);
    border: 2px solid #d7e9dd;
}


/* =========================================================
   7. PAGE CONTENT
   ========================================================= */

.page-content {
    width: 100%;
    max-width: 1650px;
    margin: 0 auto;
    padding: 34px 38px;
    flex: 1;
}

.page-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 27px;
}

.page-eyebrow {
    display: block;
    color: var(--green);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
    text-transform: uppercase;
}

h1 {
    color: var(--navy);
    font-size: 28px;
    font-weight: 750;
    line-height: 1.3;
    margin: 0;
    letter-spacing: -0.4px;
}

h2 {
    color: var(--navy);
    font-size: 19px;
    font-weight: 750;
    margin: 0 0 15px;
}

h3 {
    color: var(--navy);
    font-size: 16px;
    font-weight: 700;
}

p {
    line-height: 1.7;
}


/* =========================================================
   8. GENERAL CARDS
   ========================================================= */

.card {
    background: var(--surface);
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin: 19px 0;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.card h2 {
    padding-bottom: 13px;
    border-bottom: 1px solid var(--border);
}

.card h3 {
    margin-top: 0;
}

.card:hover {
    box-shadow: var(--shadow);
}


/* =========================================================
   9. DASHBOARD STATISTICS
   ========================================================= */

.stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 21px;
    margin-bottom: 27px;
}

.stats article {
    background: var(--surface);
    padding: 25px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    border-left: 4px solid var(--gold);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.stats article:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.stats article small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.stats article strong {
    display: block;
    color: var(--navy);
    font-size: 32px;
    font-weight: 800;
    margin-top: 9px;
    overflow-wrap: anywhere;
    line-height: 1.3;
}

.stats article::after {
    content: "";
    position: absolute;
    right: -22px;
    bottom: -35px;
    width: 95px;
    height: 95px;
    border-radius: 50%;
    background: rgba(197,163,76,0.07);
    pointer-events: none;
}


/* =========================================================
   10. FORMS AND INPUTS
   ========================================================= */

label {
    display: block;
    font-weight: 700;
    color: #34445a;
    margin: 14px 0 7px;
    font-size: 12px;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-dark);
    border-radius: 6px;
    background: white;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:hover,
select:hover,
textarea:hover {
    border-color: #aebdca;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(23,107,69,0.10);
}

input::placeholder,
textarea::placeholder {
    color: #a0aab6;
}

textarea {
    min-height: 110px;
    resize: vertical;
    line-height: 1.6;
}

input[type="checkbox"],
input[type="radio"] {
    width: auto;
    margin-right: 7px;
    accent-color: var(--green);
}

input[type="file"] {
    padding: 9px;
    background: var(--surface-soft);
}

input:disabled,
select:disabled,
textarea:disabled {
    background: #f1f3f5;
    cursor: not-allowed;
}

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

.wide {
    grid-column: 1 / -1;
}


/* =========================================================
   11. BUTTONS
   ========================================================= */

button,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--green);
    color: white;
    border: 0;
    padding: 11px 20px;
    border-radius: 6px;
    margin-top: 16px;
    cursor: pointer;
    font-weight: 700;
    font-size: 12px;
    transition: var(--transition);
    text-align: center;
}

button:hover,
.btn:hover {
    background: var(--green-dark);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(23,107,69,0.15);
}

button:active,
.btn:active {
    transform: translateY(0);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: var(--navy);
}

.btn-secondary:hover {
    background: var(--navy-light);
}

.btn-gold {
    background: #a7802e;
    color: white;
}

.btn-gold:hover {
    background: #896923;
}

.btn-danger {
    background: var(--danger);
}

.btn-danger:hover {
    background: #8f1d15;
}

.btn-light {
    background: #edf2f6;
    color: var(--navy);
    border: 1px solid var(--border);
}

.btn-light:hover {
    background: #e0e8ee;
    color: var(--navy);
}


/* =========================================================
   12. FILTERS AND SEARCH
   ========================================================= */

.filters {
    display: flex;
    gap: 13px;
    align-items: center;
    flex-wrap: wrap;
    background: white;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin: 19px 0;
    box-shadow: var(--shadow-sm);
}

.filters > * {
    flex: 1;
    min-width: 130px;
}

.filters button {
    flex: 0 0 auto;
    margin-top: 0;
}

.filters input,
.filters select {
    min-height: 42px;
}


/* =========================================================
   13. TABLES AND DATA LISTS
   ========================================================= */

.scroll {
    overflow-x: auto;
    width: 100%;
    border-radius: 7px;
    border: 1px solid var(--border);
    background: white;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    background: white;
}

th {
    background: #edf2f6;
    color: var(--navy);
    text-align: left;
    font-weight: 800;
    white-space: nowrap;
    letter-spacing: 0.2px;
}

td,
th {
    padding: 13px 12px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

tbody tr {
    transition: background 0.15s ease;
}

tbody tr:hover {
    background: #f4f8f5;
}

tbody tr:last-child td {
    border-bottom: 0;
}

td a {
    font-weight: 700;
}

td a:hover {
    text-decoration: underline;
}


/* =========================================================
   14. STATUS LABELS
   ========================================================= */

.status,
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
    background: #edf2f6;
    color: var(--navy);
}

.status-success,
.badge-success {
    background: #e5f5eb;
    color: #18794e;
}

.status-danger,
.badge-danger {
    background: #fff0ee;
    color: #b42318;
}

.status-warning,
.badge-warning {
    background: #fff6df;
    color: #946b13;
}

.status-info,
.badge-info {
    background: #eaf2fb;
    color: #245a8d;
}


/* =========================================================
   15. SYSTEM MESSAGES
   ========================================================= */

.error {
    color: var(--danger);
    background: var(--danger-bg);
    border: 1px solid #f3c8c3;
    padding: 12px 15px;
    border-radius: 6px;
    margin: 15px 0;
}

.success {
    color: var(--success);
    background: var(--success-bg);
    border: 1px solid #c9e9d5;
    padding: 12px 15px;
    border-radius: 6px;
    margin: 15px 0;
}

.warning {
    color: var(--warning);
    background: var(--warning-bg);
    border: 1px solid #f1dfae;
    padding: 12px 15px;
    border-radius: 6px;
    margin: 15px 0;
}


/* =========================================================
   16. REPORTS AND OFFICIAL DOCUMENTS
   ========================================================= */

.paper {
    background: white;
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 5px;
    box-shadow: var(--shadow);
}

.paper h2,
.paper h3 {
    text-align: center;
    margin: 6px 0;
    color: var(--navy);
}

.paper > p {
    text-align: center;
}

.paper table {
    margin-top: 20px;
}

.signatures {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin: 70px 10px 15px;
}

.signatures > div {
    flex: 1;
    border-top: 1px solid #263449;
    padding-top: 9px;
    text-align: center;
}

.print {
    text-align: right;
    margin-bottom: 16px;
}


/* =========================================================
   17. PORTAL FOOTER
   ========================================================= */

.portal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 19px 35px;
    background: white;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 11px;
}

.portal-footer a {
    color: var(--green);
    font-weight: 600;
}


/* =========================================================
   18. LOGIN AND PUBLIC PAGES
   ========================================================= */

.public-layout {
    min-height: 100vh;
    background: linear-gradient(135deg, #f1f4f7 0%, #e9f0eb 100%);
    display: flex;
    flex-direction: column;
}

.public-header {
    background: linear-gradient(110deg, var(--navy), var(--navy-light));
    padding: 20px 6%;
    min-height: 100px;
    display: flex;
    align-items: center;
    border-bottom: 4px solid var(--gold);
}

.public-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    color: white;
}

.public-brand:hover {
    color: white;
}

.public-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background: white;
    border-radius: 10px;
    padding: 4px;
}

.public-brand span {
    display: flex;
    flex-direction: column;
}

.public-brand strong {
    font-size: 15px;
    letter-spacing: 0.8px;
}

.public-brand small {
    color: var(--gold-light);
    font-size: 10px;
    letter-spacing: 1px;
    margin-top: 4px;
}

.public-content {
    width: 100%;
    max-width: 650px;
    margin: 55px auto;
    padding: 0 20px;
    flex: 1;
}

.public-content .card {
    padding: 38px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border-top: 4px solid var(--gold);
}

.public-content h1 {
    font-size: 25px;
    margin-bottom: 22px;
}

.public-layout .portal-footer {
    margin-top: auto;
}


/* =========================================================
   19. RESPONSIVE DESIGN
   ========================================================= */

@media (max-width: 1100px) {
    .sidebar {
        width: 240px;
        min-width: 240px;
    }

    .page-content {
        padding: 28px 25px;
    }

    .topbar {
        padding: 15px 25px;
    }
}

@media (max-width: 850px) {
    .sidebar {
        width: 220px;
        min-width: 220px;
    }

    .brand {
        padding: 20px 15px;
    }

    .brand-text strong {
        font-size: 13px;
    }

    .page-content {
        padding: 24px 18px;
    }
}

@media (max-width: 700px) {

    .portal-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        min-width: 100%;
        min-height: auto;
    }

    .brand {
        padding: 15px 18px;
    }

    .brand-logo {
        width: 47px;
        height: 47px;
    }

    .sidebar-divider {
        margin-bottom: 15px;
    }

    .sidebar-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0,1fr));
        padding-bottom: 15px;
    }

    .sidebar-nav a {
        padding: 10px;
        font-size: 11px;
    }

    .sidebar-nav a:hover {
        padding-left: 10px;
    }

    .nav-heading {
        padding-bottom: 8px;
    }

    .nav-heading-spaced {
        margin-top: 12px;
    }

    .sidebar-bottom {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        padding: 12px 15px;
    }

    .sidebar-user {
        margin-bottom: 0;
    }

    .logout-link {
        padding: 8px;
    }

    .topbar {
        min-height: auto;
        padding: 13px 16px;
    }

    .topbar-label {
        font-size: 10px;
    }

    .account-info {
        display: none;
    }

    .page-content {
        padding: 23px 15px;
    }

    .page-heading {
        margin-bottom: 19px;
        align-items: flex-start;
        flex-direction: column;
    }

    h1 {
        font-size: 23px;
    }

    .stats,
    .grid {
        grid-template-columns: 1fr;
    }

    .wide {
        grid-column: auto;
    }

    .card {
        padding: 19px;
    }

    .portal-footer {
        flex-direction: column;
        padding: 16px;
        text-align: center;
    }

    .signatures {
        display: grid;
        gap: 45px;
    }

    .public-content {
        margin: 30px auto;
    }

    .public-content .card {
        padding: 25px;
    }

    .filters {
        align-items: stretch;
    }

    .filters > * {
        min-width: 100%;
    }
}

@media (max-width: 480px) {

    .brand-text strong {
        font-size: 12px;
    }

    .brand-text span {
        font-size: 8px;
    }

    .sidebar-nav {
        grid-template-columns: 1fr 1fr;
    }

    .sidebar-nav a {
        font-size: 10px;
        gap: 8px;
    }

    .stats article {
        padding: 20px;
    }

    .stats article strong {
        font-size: 26px;
    }

    .topbar-right {
        gap: 8px;
    }

    .topbar-avatar {
        width: 35px;
        height: 35px;
        min-width: 35px;
    }

    .page-content {
        padding: 19px 12px;
    }

    .card {
        padding: 16px;
    }

    .public-header {
        padding: 17px 20px;
    }

    .public-brand strong {
        font-size: 12px;
    }

    .public-logo {
        width: 48px;
        height: 48px;
    }

    .public-content .card {
        padding: 20px;
    }

    .paper {
        padding: 15px;
    }
}


/* =========================================================
   20. ACCESSIBILITY AND INTERACTION
   ========================================================= */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
    opacity: 0.65;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}


/* =========================================================
   21. PROFESSIONAL PRINT SETTINGS
   ========================================================= */

@media print {

    @page {
        size: A4 landscape;
        margin: 10mm;
    }

    body {
        background: white !important;
        color: black !important;
        font-family: Arial, sans-serif;
        font-size: 10px;
    }

    .sidebar,
    .topbar,
    .portal-footer,
    .public-header,
    .filters,
    .print,
    .page-heading,
    button,
    .btn {
        display: none !important;
    }

    .portal-layout,
    .main-area,
    .page-content {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .paper,
    .card {
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: white !important;
    }

    .paper table,
    table {
        font-size: 8px !important;
        width: 100% !important;
    }

    .paper td,
    .paper th,
    td,
    th {
        padding: 4px !important;
        border: 1px solid #cbd5df !important;
    }

    .paper th,
    th {
        background: #eaf1eb !important;
        color: black !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .signatures {
        margin-top: 45px;
    }

    a {
        color: black !important;
        text-decoration: none !important;
    }

    tr {
        page-break-inside: avoid;
    }

    .paper h2,
    .paper h3 {
        color: black !important;
    }
}
/* =========================================================
   RECONCILIATION PORTAL LAYOUT COMPATIBILITY
   ========================================================= */

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 24px 19px;
    color: white;
    text-decoration: none;
}

.sidebar-brand:hover {
    color: white;
}

.sidebar-logo {
    width: 55px;
    height: 55px;
    object-fit: contain;
    flex-shrink: 0;
    background: white;
    border-radius: 10px;
    padding: 4px;
}

.sidebar-caption {
    padding: 12px 22px;
    color: #91a4b6;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.sidebar-nav .sidebar-link {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 12px 14px;
    border-radius: 7px;
    color: #d3dce5;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.sidebar-nav .sidebar-link:hover {
    background: rgba(255,255,255,0.09);
    color: white;
}

.sidebar-nav .sidebar-link.active {
    background: linear-gradient(90deg, #176b45, #1d8054);
    color: white;
    box-shadow: inset 3px 0 0 #c5a34c;
}

.sidebar-nav .nav-icon {
    width: 22px;
    min-width: 22px;
    text-align: center;
    font-size: 18px;
}

.sidebar-security {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #b8c8d5;
    font-size: 10px;
    padding: 10px 5px 17px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    margin-bottom: 10px;
}

.security-dot {
    width: 8px;
    height: 8px;
    background: #47c987;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(71,201,135,0.12);
}

.sidebar-logout {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px;
    color: #e6b8b5;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
}

.sidebar-logout:hover {
    background: rgba(255,255,255,0.08);
    color: white;
}

.topbar-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.topbar-government {
    color: #176b45;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.topbar-title > strong {
    color: #10243a;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.7px;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-user .user-details {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.topbar-user .user-details strong {
    color: #10243a;
    font-size: 12px;
}

.topbar-user .user-details span {
    color: #788597;
    font-size: 10px;
}

.public-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
    text-decoration: none;
}

.public-brand:hover {
    color: white;
}

.public-brand > div,
.public-brand > span {
    display: flex;
    flex-direction: column;
}

.public-brand strong {
    font-size: 14px;
    letter-spacing: 1px;
}

.public-brand small {
    color: #e8d6a2;
    font-size: 10px;
    letter-spacing: 1px;
    margin-top: 4px;
}

@media (max-width: 700px) {

    .sidebar-brand {
        padding: 15px 18px;
    }

    .sidebar-logo {
        width: 47px;
        height: 47px;
    }

    .sidebar-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

    .sidebar-nav .sidebar-link {
        padding: 10px;
        font-size: 11px;
    }

    .sidebar-caption {
        padding: 10px 18px;
    }

    .sidebar-bottom {
        display: block;
    }

    .topbar-title > strong {
        font-size: 11px;
    }

    .topbar-subtitle {
        font-size: 9px;
    }

    .topbar-user .user-details {
        display: none;
    }

    .public-header {
        padding: 17px 20px;
    }

    .public-brand strong {
        font-size: 12px;
    }
}