:root {
    --primary: #0088d1;
    --secondary: #241e20;
    --page-bg: #f4f8fb;
    --border: #dce6ee;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    background: var(--page-bg);
    color: var(--secondary);
    font-family: Arial, Helvetica, sans-serif;
}

a {
    text-decoration: none;
}

.btn-primary {
    --bs-btn-bg: var(--primary);
    --bs-btn-border-color: var(--primary);
    --bs-btn-hover-bg: #0075b5;
    --bs-btn-hover-border-color: #0075b5;
    --bs-btn-active-bg: #006aa3;
    --bs-btn-active-border-color: #006aa3;
}

.text-primary-custom {
    color: var(--primary);
}

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

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 10;
    display: flex;
    width: 260px;
    flex-direction: column;
    background: var(--primary);
    color: #fff;
    padding: 18px;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px 22px;
    font-size: 1.35rem;
    font-weight: 700;
}

.sidebar-nav {
    display: grid;
    gap: 6px;
}

.sidebar-nav a,
.nav-dropdown,
.logout-link {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: transparent;
    padding: 11px 12px;
    font-size: 0.96rem;
    text-align: left;
    transition: background 0.15s ease, color 0.15s ease;
}

.nav-dropdown {
    justify-content: space-between;
}

.nav-dropdown span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.sidebar-nav a:hover,
.nav-dropdown:hover,
.logout-link:hover,
.sidebar-nav a.active,
.nav-dropdown.active {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.sub-link {
    margin: 4px 0 4px 28px;
    width: calc(100% - 28px) !important;
    padding: 9px 12px !important;
    font-size: 0.92rem !important;
}

.logout-link {
    margin-top: auto;
}

.main-content {
    width: calc(100% - 260px);
    margin-left: 260px;
    padding: 26px;
}

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

.eyebrow {
    margin: 0 0 3px;
    color: #617485;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.topbar h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.user-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    padding: 8px 13px;
    font-weight: 600;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.stat-card {
    position: relative;
    min-height: 130px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-left: 5px solid var(--primary);
    border-radius: 8px;
    background: #fff;
    padding: 20px;
}

.stat-card span{
    display:block;
    margin-bottom:8px;
    color:#5c6f7f;
    font-size:0.78rem;
    font-weight:700;
    text-transform:uppercase;
    line-height:1.3;
}

.stat-card strong{
    display:block;
    font-size:1.7rem;
    line-height:1;
    font-weight:800;
    color:#111827;
}

.stat-card i {
    position: absolute;
    right: 18px;
    bottom: 14px;
    color: rgba(0, 136, 209, 0.18);
    font-size: 3rem;
}

.content-panel {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    padding: 18px;
}

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

.panel-heading h2 {
    margin: 0;
    font-size: 1.18rem;
    font-weight: 700;
}

.panel-heading p {
    margin: 4px 0 0;
    color: #657789;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.quick-action {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--secondary);
    background: #fbfdff;
    padding: 16px;
    font-weight: 700;
}

.quick-action i {
    color: var(--primary);
    font-size: 1.35rem;
}

.table {
    margin-bottom: 0;
}

.table th {
    color: #526577;
    font-size: 0.78rem;
    text-transform: uppercase;
    white-space: nowrap;
}

.table td {
    vertical-align: middle;
}

.table-actions {
    display: inline-flex;
    gap: 6px;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
}

.empty-row {
    padding: 24px;
    color: #718292;
    text-align: center;
}

.status-badge {
    border-radius: 999px;
    padding: 0.38rem 0.7rem;
    font-size: 0.78rem;
}

.login-page {
    display: grid;
    place-items: center;
    padding: 20px;
    background: var(--primary);
}

.login-card {
    width: min(100%, 420px);
    border-radius: 8px;
    background: #fff;
    padding: 28px;
    box-shadow: 0 18px 45px rgba(20, 43, 59, 0.18);
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--primary);
    font-size: 1.4rem;
    font-weight: 700;
}

.login-card h1 {
    margin: 0 0 4px;
    color: var(--secondary);
    font-size: 1.6rem;
    font-weight: 700;
}

.login-card p {
    margin-bottom: 20px;
    color: #657789;
}

.default-login {
    margin-top: 16px;
    color: #657789;
    font-size: 0.9rem;
    text-align: center;
}

.public-request-page {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 24px;
    background: #eef5f9;
}

.public-request-shell {
    width: min(100%, 920px);
}

.public-request-header {
    margin: 0 auto 20px;
    text-align: center;
}

.public-request-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 700;
}

.public-request-header h1 {
    margin: 0;
    color: var(--secondary);
    font-size: 2rem;
    font-weight: 700;
}

.public-request-header p {
    margin: 8px auto 0;
    max-width: 560px;
    color: #617485;
}

.public-type-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 0 auto 18px;
}

.public-type-card {
    display: grid;
    min-height: 142px;
    place-items: center;
    gap: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    color: var(--secondary);
    padding: 18px 10px;
    font-weight: 700;
    text-align: center;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.public-type-card i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: rgba(0, 136, 209, 0.11);
    color: var(--primary);
    font-size: 1.55rem;
}

.public-type-card:hover,
.public-type-card.active {
    border-color: var(--primary);
    box-shadow: 0 12px 28px rgba(29, 61, 79, 0.12);
    transform: translateY(-1px);
}

.public-type-card.active {
    background: #f7fcff;
}

.public-form-panel {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    padding: 22px;
    box-shadow: 0 16px 40px rgba(30, 62, 80, 0.1);
}

.public-form-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.public-form-heading h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.public-form-heading p {
    margin: 4px 0 0;
    color: #657789;
}

.public-status-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #fff3cd;
    color: #8a6d00;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 700;
}

.public-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 8px;
}

[data-capitalize="words"] {
    text-transform: capitalize;
}

@media (max-width: 991px) {
    .sidebar {
        position: static;
        width: 100%;
        min-height: auto;
    }

    .app-shell {
        display: block;
    }

    .main-content {
        width: 100%;
        margin-left: 0;
        padding: 18px;
    }

    .stats-grid,
    .quick-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .public-type-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .public-request-page {
        align-items: start;
        padding: 16px;
    }

    .public-request-header h1 {
        font-size: 1.65rem;
    }

    .public-type-grid {
        gap: 10px;
    }

    .public-type-card {
        min-height: 118px;
        padding: 14px 8px;
    }

    .public-form-panel {
        padding: 18px;
    }

    .public-form-heading,
    .public-form-actions {
        flex-direction: column;
    }

    .public-form-actions .btn {
        width: 100%;
    }
}
.topbar-actions{
    display:flex;
    align-items:center;
    gap:12px;
}

.notif-wrapper{
    position:relative;
}

.notif-btn{
    border:1px solid #d9e3ec;
    background:#fff;
    width:42px;
    height:42px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    position:relative;
}

.notif-count{
    position:absolute;
    top:-6px;
    right:-6px;
    background:#dc3545;
    color:white;
    min-width:20px;
    height:20px;
    border-radius:50%;
    font-size:12px;
    font-weight:700;
    display:flex;
    align-items:center;
    justify-content:center;
}

.notif-dropdown{
    position:absolute;
    top:50px;
    right:0;
    width:320px;
    background:white;
    border-radius:12px;
    box-shadow:0 10px 30px rgba(0,0,0,.15);
    z-index:9999;
}

.notif-title{
    padding:12px 15px;
    font-weight:700;
    border-bottom:1px solid #eee;
}

.notif-item{
    padding:12px 15px;
    border-bottom:1px solid #f1f1f1;
}

.notif-message{
    font-weight:600;
}

.notif-time{
    font-size:12px;
    color:#6c757d;
}

.notif-empty{
    padding:15px;
    text-align:center;
    color:#6c757d;
}
#notifBell{
    position: relative !important;
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    border: 1px solid #d9e3ec !important;
    background: #ffffff !important;
}

#notifCount{
    position: absolute !important;
    top: -8px !important;
    right: -8px !important;
    min-width: 22px !important;
    height: 22px !important;
    padding: 0 6px !important;
    background: #dc3545 !important;
    color: #ffffff !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 2px solid #ffffff !important;
    z-index: 99999 !important;
}
.notif-link{
    display:block;
    text-decoration:none;
    color:#111;
}

.notif-link:hover{
    background:#f1f8ff;
    color:#111;
}
.notif-dropdown{
    position:fixed !important;
    top:50% !important;
    left:50% !important;
    right:auto !important;
    transform:translate(-50%, -50%) !important;
    width:420px !important;
    max-width:90vw !important;
    background:#fff !important;
    border-radius:16px !important;
    box-shadow:0 20px 50px rgba(0,0,0,.25) !important;
    z-index:99999 !important;
}

.notif-title{
    font-size:18px !important;
    padding:16px 20px !important;
}

.notif-list{
    max-height:400px !important;
    overflow-y:auto !important;
}
.notif-dropdown{
    position:fixed !important;
    top:50% !important;
    left:50% !important;
    transform:translate(-50%,-50%) !important;
    width:450px !important;
    max-width:95vw !important;
    max-height:500px !important;
    overflow-y:auto !important;
    background:#fff !important;
    border-radius:18px !important;
    box-shadow:0 25px 60px rgba(0,0,0,.25) !important;
    z-index:999999 !important;
}

.notif-link{
    text-decoration:none;
    color:#111;
}

.notif-link:hover{
    background:#f8f9fa;
    color:#111;
}

.notif-item{
    padding:15px;
    border-bottom:1px solid #eee;
}

.notif-message{
    font-weight:700;
}

.notif-time{
    font-size:12px;
    color:#666;
}
.notif-dropdown{
    position:fixed !important;
    top:50% !important;
    left:50% !important;
    transform:translate(-50%,-50%) !important;
    width:460px !important;
    max-width:94vw !important;
    max-height:520px !important;
    background:#fff !important;
    border-radius:18px !important;
    box-shadow:0 25px 70px rgba(0,0,0,.25) !important;
    z-index:999999 !important;
    overflow:hidden !important;
}

.notif-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:18px 20px;
    border-bottom:1px solid #e9ecef;
    background:#fff;
}

.notif-header strong{
    display:block;
    font-size:18px;
}

.notif-header small{
    color:#6c757d;
    font-size:12px;
}

.notif-close{
    border:none;
    background:#f1f3f5;
    width:34px;
    height:34px;
    border-radius:50%;
    font-size:22px;
    line-height:1;
    cursor:pointer;
}

.notif-list{
    max-height:430px;
    overflow-y:auto;
}

.notif-link{
    display:block;
    text-decoration:none;
    color:#111;
}

.notif-item{
    padding:15px 20px;
    border-bottom:1px solid #eef0f2;
}

.notif-link:hover .notif-item{
    background:#f5f9ff;
}

.notif-message{
    font-weight:700;
    margin-bottom:5px;
}

.notif-time{
    font-size:12px;
    color:#6c757d;
}