@charset "UTF-8";
/* ============================================================
   SHOP RENT COLLECTION -- GOVERNMENT THEME
   Zila Parishad / Municipal Corporation
   ============================================================ */
:root {
    --govt-navy:       #002e6e;
    --govt-navy-light: #004099;
    --govt-saffron:    #f47920;
    --govt-green:      #107e3e;
    --sidebar-bg:      #ffffff;
    --main-bg:         #f4f7fa;
    --header-h:        70px;
    --footer-h:        45px;
    --side-w:          280px;
    --card-radius:     12px;
}

html { zoom: 90%; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--main-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
}

/* Custom Scrollbar */
::-webkit-scrollbar             { width: 6px; height: 6px; }
::-webkit-scrollbar-track       { background: transparent; }
::-webkit-scrollbar-thumb       { background: #cbd5e1; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* -- Fixed Top Header -------------------------------------- */
.govt-navbar {
    height: var(--header-h);
    background: #fff;
    border-bottom: 4px solid var(--govt-saffron);
    position: fixed;
    top: 0; width: 100%;
    z-index: 1050;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    box-shadow: 0 2px 15px rgba(0,0,0,0.04);
}

.logo-area            { display: flex; align-items: center; gap: 12px; }
.logo-area i          { font-size: 2.2rem; color: var(--govt-navy); }
.logo-area h1         {
    font-family: 'Merriweather', serif;
    font-size: 1.2rem; margin: 0;
    color: var(--govt-navy);
    text-transform: uppercase; letter-spacing: 0.5px;
}

/* Sidebar toggle button (mobile header) */
.sidebar-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .2s, color .2s;
}
.sidebar-toggle-btn i  { font-size: 1rem; color: inherit; }
.sidebar-toggle-btn:hover { background: #f1f5f9; color: var(--govt-navy); }
.sidebar-toggle-btn:focus { outline: none; box-shadow: 0 0 0 3px rgba(0,46,110,.12); }

/* ── Floating edge-toggle handle (tab attached to sidebar right edge) ── */
.sidebar-edge-toggle {
    position: fixed;
    top: calc(var(--header-h) + 24px);
    left: var(--side-w);
    z-index: 1025;
    width: 18px;
    height: 44px;
    border-radius: 0 8px 8px 0;
    background: var(--govt-navy);
    border: none;
    box-shadow: 3px 2px 10px rgba(0, 46, 110, .28);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: .72rem;
    transition: left .3s ease, background .2s, box-shadow .2s;
    padding: 0;
    line-height: 1;
}
.sidebar-edge-toggle:hover {
    background: var(--govt-saffron);
    box-shadow: 3px 2px 14px rgba(244, 121, 32, .4);
}
.sidebar-edge-toggle:focus { outline: none; }

/* -- Sidebar ----------------------------------------------- */
.govt-sidebar {
    width: var(--side-w);
    background: var(--sidebar-bg);
    border-right: 1px solid #e2e8f0;
    position: fixed;
    top: var(--header-h);
    bottom: var(--footer-h);
    overflow-y: auto;
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s ease;
}

.nav-group-title {
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 0.72rem;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.govt-nav-link {
    display: flex; align-items: center;
    padding: 0.85rem 1.5rem;
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.92rem;
    transition: all 0.2s;
    border-left: 4px solid transparent;
    cursor: pointer;
}

.govt-nav-link:hover, .govt-nav-link.active {
    background: #f8fafc;
    color: var(--govt-navy);
    border-left-color: var(--govt-navy);
}

.nav-icon-wrapper {
    width: 32px; height: 32px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    margin-right: 12px;
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: transform 0.2s;
}
.govt-nav-link:hover .nav-icon-wrapper { transform: scale(1.1); }

.icon-dashboard { background: #e0f2fe; color: #0369a1; }
.icon-billing   { background: #fef3c7; color: #b45309; }
.icon-infra     { background: #dcfce7; color: #15803d; }
.icon-user      { background: #fae8ff; color: #a21caf; }
.icon-shop      { background: #ffedd5; color: #c2410c; }
.icon-finance   { background: #ffe4e6; color: #be123c; }
.icon-audit     { background: #f1f5f9; color: #475569; }
.icon-admin     { background: #ede9fe; color: #7c3aed; }

/* Submenu */
.submenu {
    padding-left: 0;
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #fafafa;
}
.submenu.show    { max-height: 500px; }
.submenu-link {
    padding: 0.6rem 1rem 0.6rem 4.3rem;
    display: block;
    color: #64748b;
    text-decoration: none;
    font-size: 0.85rem;
    position: relative;
}
.submenu-link::before {
    content: ''; position: absolute; left: 3.2rem; top: 50%;
    transform: translateY(-50%);
    width: 4px; height: 4px; border-radius: 50%;
    background: #cbd5e1; transition: all 0.2s;
}
.submenu-link:hover            { color: var(--govt-navy); background: #f1f5f9; }
.submenu-link.active           { color: var(--govt-navy); font-weight: 600; }
.submenu-link:hover::before,
.submenu-link.active::before   { background: var(--govt-navy); transform: translateY(-50%) scale(1.5); }

/* -- Main Content ------------------------------------------- */
.content-wrapper {
    flex: 1;
    margin-top: var(--header-h);
    margin-left: var(--side-w);
    padding: 2rem;
    margin-bottom: var(--footer-h);
    transition: margin-left 0.3s ease;
}

.sidebar-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15,23,42,0.4); backdrop-filter: blur(2px);
    z-index: 990; display: none; opacity: 0; transition: opacity 0.3s ease;
}

@media (max-width: 992px) {
    .govt-sidebar               { transform: translateX(-100%); }
    .govt-sidebar.active        { transform: translateX(0); box-shadow: 4px 0 15px rgba(0,0,0,.1); }
    .content-wrapper            { margin-left: 0; padding: 1.5rem; }
    .sidebar-overlay.active     { display: block; opacity: 1; }
}

/* ── Mini / icon-only sidebar (desktop toggle) ──────────────────────────── */
body.sidebar-mini .govt-sidebar {
    width: 68px;
    overflow: visible;
}
body.sidebar-mini .content-wrapper {
    margin-left: 68px;
}
/* Move the floating edge-toggle to follow the collapsed sidebar */
body.sidebar-mini .sidebar-edge-toggle {
    left: 68px;
}
body.sidebar-mini .sidebar-head { justify-content: center; }
body.sidebar-mini .nav-group-title,
body.sidebar-mini .govt-nav-link > span,
body.sidebar-mini .govt-nav-link > .bi-chevron-down,
body.sidebar-mini .submenu { display: none !important; }
body.sidebar-mini .govt-nav-link {
    padding: .85rem;
    justify-content: center;
    position: relative;
}
body.sidebar-mini .nav-icon-wrapper { margin-right: 0 !important; }
body.sidebar-mini .govt-nav-link:hover::after {
    content: attr(data-title);
    position: absolute;
    left: 72px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--govt-navy);
    color: #fff;
    padding: .3rem .85rem;
    border-radius: 8px;
    font-size: .8rem;
    font-weight: 600;
    white-space: nowrap;
    z-index: 2000;
    box-shadow: 0 4px 14px rgba(0,46,110,.28);
    pointer-events: none;
}
body.sidebar-mini .govt-nav-link:hover::before {
    content: '';
    position: absolute;
    left: 68px;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-right-color: var(--govt-navy);
    z-index: 2001;
    pointer-events: none;
}
/* mini mode — restore scroll when on mobile-ish widths */
@media (max-width: 992px) {
    body.sidebar-mini .govt-sidebar { width: var(--side-w); overflow-y: auto; }
    body.sidebar-mini .content-wrapper { margin-left: 0; }
    body.sidebar-mini .nav-group-title,
    body.sidebar-mini .govt-nav-link > span,
    body.sidebar-mini .govt-nav-link > .bi-chevron-down,
    body.sidebar-mini .submenu { display: revert !important; }
    body.sidebar-mini .govt-nav-link { padding: .85rem 1.5rem; justify-content: flex-start; }
    body.sidebar-mini .nav-icon-wrapper { margin-right: 12px !important; }
    body.sidebar-mini .govt-nav-link::after,
    body.sidebar-mini .govt-nav-link::before { display: none !important; }
}

/* -- KPI Cards ---------------------------------------------- */
.kpi-box {
    background: #fff;
    border-radius: var(--card-radius);
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,.05);
    display: flex; align-items: center; gap: 1.2rem;
    transition: transform .3s ease, box-shadow .3s ease;
}
.kpi-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -5px rgba(0,0,0,.08);
}
.kpi-icon-circle {
    width: 55px; height: 55px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
}

/* -- Module Card / Table ------------------------------------ */
.module-card {
    background: #fff;
    border-radius: var(--card-radius);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,.05);
    border: 1px solid #e2e8f0;
    margin-top: 1.5rem;
    transition: box-shadow .3s ease;
}
.module-card:hover          { box-shadow: 0 10px 25px -5px rgba(0,0,0,.08); }
.module-header {
    padding: 1.25rem 1.5rem;
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
    display: flex; justify-content: space-between; align-items: center;
    border-radius: var(--card-radius) var(--card-radius) 0 0;
}

.table-gov thead th {
    background: #f8fafc; color: #64748b;
    font-weight: 700; font-size: 0.75rem;
    text-transform: uppercase;
    padding: 1rem 1.25rem;
    border-bottom: 2px solid #edf2f7;
    letter-spacing: 0.5px;
}
.table-gov tbody td     { padding: .9rem 1.25rem; vertical-align: middle; font-size: .88rem; border-bottom: 1px solid #f1f5f9; }
.table-gov tbody tr     { transition: background-color .2s; }
.table-gov tbody tr:hover { background-color: #f8fafc; }

.status-chip {
    padding: .4rem .85rem; border-radius: 6px;
    font-weight: 600; font-size: .75rem;
    display: inline-flex; align-items: center; gap: 6px;
}
.status-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }

/* -- Buttons ------------------------------------------------ */
.btn-primary-gradient {
    background: linear-gradient(135deg, var(--govt-navy), var(--govt-navy-light));
    border: none;
    transition: opacity .2s, transform .2s;
}
.btn-primary-gradient:hover {
    opacity: .95; transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(0,46,110,.2);
}

/* -- Footer ------------------------------------------------- */
.footer-bar {
    height: var(--footer-h);
    background: var(--govt-navy);
    color: #cbd5e1;
    position: fixed;
    bottom: 0; width: 100%;
    z-index: 1100;
    display: flex; align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    font-size: .8rem;
}

/* -- Dropdown Animations ----------------------------------- */
.dropdown-item  { transition: all .2s ease; border-radius: 8px !important; }
.dropdown-item:hover { background-color: #f8fafc; transform: translateX(3px); }
.dropdown-menu  {
    animation: slideUp .25s cubic-bezier(.16,1,.3,1);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,.12) !important;
}
@keyframes slideUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.dropdown-divider   { border-top: 1px solid #f1f5f9; margin: .5rem .8rem; }
.btn-notification   { background: #f1f5f9; color: #475569; transition: all .2s; }
.btn-notification:hover,
.btn-notification[aria-expanded="true"] { background: #e2e8f0; color: var(--govt-navy); }

/* -- Form Card ---------------------------------------------- */
.form-card { background: #fff; border-radius: var(--card-radius); border: 1px solid #e2e8f0; padding: 2rem; box-shadow: 0 4px 6px -1px rgba(0,0,0,.05); }
.form-card .form-label { font-weight: 600; color: #374151; font-size: .88rem; }
.form-card .form-control, .form-card .form-select { font-size: .9rem; border-color: #d1d5db; }
.form-card .form-control:focus, .form-card .form-select:focus { border-color: var(--govt-navy); box-shadow: 0 0 0 .2rem rgba(0,46,110,.15); }

/* -- Coming Soon nav items ---------------------------------- */
.submenu-link-soon {
    opacity: 0.5;
    pointer-events: none;
    cursor: default;
}
.badge-soon {
    font-size: .58rem;
    padding: .15rem .42rem;
    background: #e2e8f0;
    color: #64748b;
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: .3px;
    margin-left: auto;
    flex-shrink: 0;
    font-style: normal;
    text-transform: uppercase;
}
.login-split {
    min-height: 100vh;
    display: flex;
}

/* -- Left panel -------------------------------------------- */
.login-left {
    width: 55%;
    background: linear-gradient(145deg, var(--govt-navy) 0%, var(--govt-navy-light) 55%, #1d4ed8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 4rem;
    position: relative;
    overflow: hidden;
}
.login-left::before {
    content: '';
    position: absolute;
    top: -120px; right: -120px;
    width: 420px; height: 420px;
    border-radius: 50%;
    background: rgba(255,255,255,.06);
    pointer-events: none;
}
.login-left::after {
    content: '';
    position: absolute;
    bottom: -100px; left: -100px;
    width: 320px; height: 320px;
    border-radius: 50%;
    background: rgba(255,255,255,.04);
    pointer-events: none;
}
.login-left-content {
    position: relative;
    z-index: 1;
    color: #fff;
    text-align: center;
    max-width: 460px;
}
.login-logo-icon {
    font-size: 4.5rem;
    color: #fbbf24;
    display: block;
    margin-bottom: 1.2rem;
    filter: drop-shadow(0 4px 12px rgba(251,191,36,.35));
}
.login-brand-name {
    font-family: 'Merriweather', serif;
    font-size: 1.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: .35rem;
    line-height: 1.25;
}
.login-org-name {
    font-size: .92rem;
    opacity: .82;
    font-weight: 500;
    letter-spacing: .5px;
    margin-bottom: 1.4rem;
}
.login-tagline {
    font-size: 1rem;
    opacity: .72;
    line-height: 1.65;
    margin-bottom: 2.5rem;
}
.login-stats {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,.18);
}
.login-stat-value {
    font-size: 1.9rem;
    font-weight: 700;
    color: #fbbf24;
    line-height: 1;
}
.login-stat-label {
    font-size: .72rem;
    opacity: .78;
    text-transform: uppercase;
    letter-spacing: .6px;
    margin-top: .3rem;
}

/* -- Right panel ------------------------------------------- */
.login-right {
    width: 45%;
    background: #f4f7fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.5rem;
}
.login-form-box {
    width: 100%;
    max-width: 400px;
}
.login-form-title {
    font-family: 'Merriweather', serif;
    color: var(--govt-navy);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: .3rem;
}
.login-form-subtitle {
    color: #64748b;
    font-size: .86rem;
    margin-bottom: 1.8rem;
}
.login-form-box .form-control:focus {
    border-color: var(--govt-navy);
    box-shadow: 0 0 0 .2rem rgba(0,46,110,.18);
}
.login-form-box .form-control {
    padding: .65rem 1rem;
    border-radius: 8px;
}
.login-form-box .input-group .form-control {
    border-radius: 8px 0 0 8px;
}
.login-security-note {
    font-size: .76rem;
    color: #94a3b8;
    text-align: center;
    margin-top: 1.2rem;
}

/* -- Responsive -------------------------------------------- */
@media (max-width: 768px) {
    .login-split    { flex-direction: column; }
    .login-left     { width: 100%; padding: 2.5rem 1.5rem; }
    .login-right    { width: 100%; padding: 2rem 1.5rem; }
    .login-stats    { gap: 1.5rem; }
    .login-brand-name { font-size: 1.45rem; }
}

/* -- Toast / Alert ------------------------------------------ */
.alert-govt-success { background: #d1fae5; border-left: 4px solid #10b981; color: #065f46; border-radius: 8px; }
.alert-govt-error   { background: #fee2e2; border-left: 4px solid #ef4444; color: #7f1d1d; border-radius: 8px; }
