﻿/* ==========================================================================
   ePalika.com - आन्तरिक नियन्त्रण प्रणाली (Official Government Design System)
   बाणगंगा नगरपालिका, कपिलवस्तु, लुम्बिनी प्रदेश नेपाल
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Mukta:wght@300;400;500;600;700&family=Noto+Sans+Devanagari:wght@400;500;600;700&display=swap');

:root {
    --primary-blue: #0f3460;
    --primary-blue-dark: #0a2240;
    --primary-blue-light: #1a4f8b;
    --gov-teal: #0891b2;
    --border-gray: #b8c4d1;
    --border-light: #d1d5db;
    --form-bg: #f8fafc;
    --bg-page: #edf2f7;
    --text-navy: #0f2b48;
    --text-dark: #1e293b;
    --btn-blue: #0284c7;
    --btn-green: #15803d;
    --btn-red: #b91c1c;
    --btn-excel: #107c41;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans Devanagari', 'Mukta', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-page);
    color: var(--text-dark);
    line-height: 1.45;
}

/* -------------------------------------------------------------
   Official Reference Header Layout (Exact match to PDF Page 1)
------------------------------------------------------------- */
.official-header {
    background: #ffffff;
    border-bottom: 2px solid #cbd5e1;
    padding: 0.75rem 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.official-header-top {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 105px;
    margin-bottom: 0.35rem;
    width: 100%;
}

.mun-official-box {
    border: none;
    padding: 0.2rem 0.5rem;
    text-align: center;
    background: transparent;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.8rem;
    margin: 0 auto;
}

.mun-header-logo {
    height: 100px !important;
    width: 100px !important;
    max-height: 100px !important;
    max-width: 100px !important;
    object-fit: contain !important;
    display: inline-block !important;
    transition: transform 0.2s ease;
}

.mun-header-logo:hover {
    transform: scale(1.05);
}

.mun-text-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.mun-name-text {
    font-size: 1.7rem;
    font-weight: 700;
    color: #b91c1c;
    line-height: 1.25;
    letter-spacing: 0.3px;
}

.mun-sub-text {
    font-size: 1.05rem;
    color: #1e3a8a;
    font-weight: 600;
    margin-top: 2px;
}

.system-title-box {
    text-align: center;
    margin: 0.35rem 0 0.25rem;
}

.system-title-pill {
    display: inline-block;
    border: none;
    border-radius: 0;
    padding: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f3460;
    background: transparent;
    letter-spacing: 0.5px;
}

/* -------------------------------------------------------------
   Official 8 Top Tabs Navigation (Exact match to PDF)
------------------------------------------------------------- */
.official-nav-bar {
    background: #ffffff;
    border-top: 1px solid #cbd5e1;
    border-bottom: 2px solid #0f3460;
    padding: 0 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: thin;
}

.official-tabs {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-shrink: 1;
}

.official-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.52rem 0.75rem;
    font-size: 0.91rem;
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
    border: 1px solid transparent;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    transition: all 0.15s ease;
    cursor: pointer;
    background: transparent;
    white-space: nowrap;
}

.official-tab-btn:hover {
    background-color: #f1f5f9;
    color: #0284c7;
}

.official-tab-btn.active {
    background: #0f3460;
    color: #ffffff;
    border-color: #0f3460;
    box-shadow: 0 2px 4px rgba(15, 52, 96, 0.2);
}

.nav-actions-right {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-left: auto;
    flex-shrink: 0;
    white-space: nowrap;
}

.nav-user-identity {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0.22rem 0.55rem;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    white-space: nowrap;
}

.nav-user-identity:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.user-role-symbol {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
}

#btn-header-logout {
    padding: 0.26rem 0.65rem;
    font-size: 0.88rem;
    white-space: nowrap;
    border-radius: 5px;
}

/* Nepali Unicode Transliteration Badge */
.unicode-badge-indicator {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 4px;
    padding: 2px 7px;
    cursor: pointer;
    z-index: 5;
    user-select: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.unicode-badge-indicator.active {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #86efac;
}

.unicode-badge-indicator.active:hover {
    background: #bbf7d0;
}

.unicode-badge-indicator.inactive {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #cbd5e1;
}

.unicode-badge-indicator.inactive:hover {
    background: #e2e8f0;
}

/* -------------------------------------------------------------
   Container & Card System
------------------------------------------------------------- */
.content-wrapper {
    max-width: 1400px;
    margin: 1.25rem auto;
    padding: 0 1rem;
}

.gov-panel {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.gov-panel-header {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gov-panel-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin: 0;
}

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

/* -------------------------------------------------------------
   Exact Reference Employee Form Grid (Match PDF Screenshot)
------------------------------------------------------------- */
.emp-ref-form-container {
    background: #ffffff;
    border: 2px solid #94a3b8;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.form-grid-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0.35rem 0.2rem;
}

.form-grid-table td {
    vertical-align: middle;
    padding: 0.05rem 0;
}

.form-field-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    text-align: right;
    padding-right: 0.25rem;
}

.form-field-input, .form-field-select {
    width: 100%;
    font-size: 0.84rem;
    padding: 0.22rem 0.45rem;
    border: 1px solid #94a3b8;
    border-radius: 4px;
    background-color: #fff;
    color: #0f172a;
    outline: none;
    height: 31px;
}

.form-field-input:focus, .form-field-select:focus {
    border-color: #0284c7;
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2);
}

.select-with-icon {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.btn-dropdown-master {
    background: #e2e8f0;
    border: 1px solid #94a3b8;
    color: #334155;
    border-radius: 4px;
    padding: 0.2rem 0.45rem;
    font-size: 0.82rem;
    cursor: pointer;
    line-height: 1;
    height: 31px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-dropdown-master:hover {
    background: #cbd5e1;
    color: #0f172a;
}

/* Action Button Toolbar (Exact Buttons from Screenshot) */
.emp-action-bar {
    background: #e2e8f0;
    border: 1px solid #94a3b8;
    border-radius: 4px;
    padding: 0.65rem 1rem;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.emp-count-text {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
}

.action-buttons-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.btn-ref {
    font-size: 0.86rem;
    font-weight: 600;
    padding: 0.35rem 0.9rem;
    border-radius: 4px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.btn-ref-search {
    background: #0284c7;
    color: #fff;
    border-color: #0369a1;
}
.btn-ref-search:hover { background: #0369a1; }

.btn-ref-multi {
    background: #64748b;
    color: #fff;
    border-color: #475569;
}
.btn-ref-multi:hover { background: #475569; }

.btn-ref-excel {
    background: #107c41;
    color: #fff;
    border-color: #0e6b37;
}
.btn-ref-excel:hover { background: #0b5e31; }

.btn-ref-import {
    background: #0d9488;
    color: #fff;
    border-color: #0f766e;
}
.btn-ref-import:hover { background: #0f766e; }

.excel-dropzone {
    border: 2px dashed #0d9488;
    background: #f0fdfa;
    border-radius: 8px;
    padding: 2rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}
.excel-dropzone:hover, .excel-dropzone.dragover {
    background: #ccfbf1;
    border-color: #0f766e;
    box-shadow: 0 0 10px rgba(13, 148, 136, 0.2);
}

.btn-ref-new {
    background: #2563eb;
    color: #fff;
    border-color: #1d4ed8;
}
.btn-ref-new:hover { background: #1d4ed8; }

.btn-ref-save {
    background: #16a34a;
    color: #fff;
    border-color: #15803d;
}
.btn-ref-save:hover { background: #15803d; }

.btn-ref-update {
    background: #d97706;
    color: #fff;
    border-color: #b45309;
}
.btn-ref-update:hover { background: #b45309; }

.btn-ref-delete {
    background: #dc2626;
    color: #fff;
    border-color: #b91c1c;
}
.btn-ref-delete:hover { background: #b91c1c; }

.btn-ref-exit {
    background: #475569;
    color: #fff;
    border-color: #334155;
}
.btn-ref-exit:hover { background: #334155; }

/* -------------------------------------------------------------
   Settings (सेटिङ) Module Boxed Diagram (Match PDF Page 1)
------------------------------------------------------------- */
.settings-diagram-card {
    background: #ffffff;
    border: 2px solid #1e3a8a;
    border-radius: 6px;
    padding: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.settings-sub-btns {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.settings-btn-box {
    border: 2px solid #0f3460;
    padding: 0.4rem 1rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: #0f3460;
    background: #f8fafc;
    border-radius: 4px;
    cursor: pointer;
}

.settings-btn-box.active {
    background: #0f3460;
    color: #fff;
}

.settings-form-table {
    width: 100%;
}

.settings-form-table td {
    padding: 0.4rem 0.5rem;
    vertical-align: middle;
}

/* -------------------------------------------------------------
   Data Tables (32-Column Full Administrative Horizontal Scroll)
------------------------------------------------------------- */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    margin-bottom: 0.5rem;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar {
    height: 10px;
}
.table-responsive::-webkit-scrollbar-track {
    background: #f1f5f9;
}
.table-responsive::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 5px;
}
.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

.table-gov {
    width: 100%;
    min-width: 3200px;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    font-size: 0.86rem;
    white-space: nowrap;
}

.table-gov th {
    background: #f1f5f9;
    color: #0f172a;
    font-weight: 700;
    padding: 0.65rem 0.85rem;
    border-bottom: 2px solid #cbd5e1;
    border-right: 1px solid #cbd5e1;
    white-space: nowrap;
}

.table-gov td {
    padding: 0.55rem 0.85rem;
    border-bottom: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    color: #334155;
    vertical-align: middle;
    white-space: nowrap;
}

.table-gov tr:hover td {
    background-color: #f1f5f9;
}

/* Sticky First 3 Columns (SN, Code, Name) for easy tracking during horizontal scroll */
.table-gov th.sticky-col-sn,
.table-gov td.sticky-col-sn {
    position: sticky;
    left: 0;
    z-index: 3;
    background: #f8fafc;
    width: 55px;
    min-width: 55px;
    text-align: center;
}

.table-gov th.sticky-col-code,
.table-gov td.sticky-col-code {
    position: sticky;
    left: 55px;
    z-index: 3;
    background: #f8fafc;
    width: 105px;
    min-width: 105px;
}

.table-gov th.sticky-col-name,
.table-gov td.sticky-col-name {
    position: sticky;
    left: 160px;
    z-index: 3;
    background: #f8fafc;
    width: 180px;
    min-width: 180px;
    box-shadow: 3px 0 6px -2px rgba(0, 0, 0, 0.12);
}

.table-gov tr.table-row-57-alert td.sticky-col-sn,
.table-gov tr.table-row-57-alert td.sticky-col-code,
.table-gov tr.table-row-57-alert td.sticky-col-name {
    background-color: #fee2e2 !important;
}

.table-gov tr.table-row-57-alert:hover td.sticky-col-sn,
.table-gov tr.table-row-57-alert:hover td.sticky-col-code,
.table-gov tr.table-row-57-alert:hover td.sticky-col-name {
    background-color: #fecaca !important;
}

/* -------------------------------------------------------------
   Toast Notifications & Modal
------------------------------------------------------------- */
.toast-notice {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    min-width: 300px;
    background: #fff;
    border-radius: 6px;
    padding: 1rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    border-left: 5px solid #0284c7;
    animation: fadeIn 0.3s ease;
}

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

/* Nepali Calendar Datepicker Popup */
.nepali-date-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.nepali-date-wrapper .form-field-input {
    padding-right: 28px;
}

.nepali-date-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #0284c7;
    font-size: 0.9rem;
    padding: 2px 4px;
    transition: transform 0.15s ease, color 0.15s ease;
}

.nepali-date-btn:hover {
    color: #0369a1;
    transform: translateY(-50%) scale(1.15);
}

.nepali-calendar-popup {
    position: absolute;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    width: 290px;
    padding: 0;
    box-shadow: 0 10px 25px rgba(15, 52, 96, 0.18);
    font-family: 'Noto Sans Devanagari', 'Mukta', sans-serif;
    overflow: hidden;
}

.nepali-cal-header {
    background: #0f3460;
    color: #ffffff;
    padding: 0.65rem 0.75rem;
}

.nepali-cal-header .text-navy {
    color: #ffffff !important;
}

.nepali-cal-header .btn-close {
    filter: invert(1);
}

.nepali-cal-body {
    padding: 0.5rem;
}

.cal-days-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 0.4rem;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 0.25rem;
}

.cal-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
}

.cal-day-cell {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 4px;
    padding: 5px 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: #1e293b;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.cal-day-cell:hover {
    background: #e0f2fe;
    border-color: #38bdf8;
    color: #0369a1;
}

.cal-day-cell.active {
    background: #0f3460;
    border-color: #0f3460;
    color: #ffffff;
    font-weight: 700;
}

/* 57+ Years Retirement Warning Alert Row (Red Signal) */
.table-gov tr.table-row-57-alert {
    background-color: #fee2e2 !important;
    border-left: 5px solid #dc2626 !important;
}

.table-gov tr.table-row-57-alert td {
    background-color: #fee2e2 !important;
    color: #7f1d1d !important;
}

.table-gov tr.table-row-57-alert td.emp-name-cell {
    color: #b91c1c !important;
    font-weight: 700;
}

.table-gov tr.table-row-57-alert:hover td {
    background-color: #fecaca !important;
}

/* Print Rules */
@media print {
    .official-nav-bar, .emp-action-bar, .no-print {
        display: none !important;
    }
    body { background: #fff; }
    .emp-ref-form-container { border: none; box-shadow: none; }
}

/* Mobile & Tablet Responsiveness for Official Header */
@media (max-width: 991px) {
    .official-header-top {
        min-height: auto;
    }
    .official-nav-bar {
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0.5rem 1rem;
    }
    .nav-actions-right {
        margin-left: 0;
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 768px) {
    .mun-official-box {
        gap: 0.6rem;
    }
    .mun-header-logo {
        height: 50px;
        width: 50px;
    }
    .mun-name-text {
        font-size: 1.25rem;
    }
    .mun-sub-text {
        font-size: 0.85rem;
    }
    .nav-actions-right {
        justify-content: space-between;
    }
}

/* =========================================================================
   LOCAL LEVEL SIMPLIFICATION SYSTEM (स्थानीय तह कार्य सरलीकरण पोर्टल - LANDING PORTAL)
   ========================================================================= */
#app-landing-portal {
    background: #0b0f19;
    min-height: 100vh;
    color: #f8fafc;
    font-family: 'Mukta', 'Segoe UI', Tahoma, sans-serif;
    position: relative;
    overflow-x: hidden;
}

.portal-landing-wrapper {
    position: relative;
    z-index: 1;
}

/* Hero Header */
.portal-hero-header {
    padding-top: 1rem;
    padding-bottom: 0.5rem;
}

.portal-hero-pill {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 9999px;
    padding: 0.35rem 1.25rem;
    font-size: 0.88rem;
    color: #f1f5f9;
    backdrop-filter: blur(10px);
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.portal-main-title {
    font-size: 1.7rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
    margin-top: 0.35rem;
    margin-bottom: 0.2rem;
    text-shadow: 0 0 25px rgba(37, 99, 235, 0.4);
}

.portal-sub-title {
    font-size: 0.88rem;
    color: #94a3b8;
    margin-bottom: 0.65rem;
}

/* Portal Cards (White rounded cards on dark background) */
.portal-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.3);
    padding: 1.1rem 1.25rem;
    color: #0f172a;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#btn-hero-admin-direct {
    transition: all 0.2s ease;
}
#btn-hero-admin-direct:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(234, 179, 8, 0.4) !important;
}

#btn-portal-direct-admin {
    background: linear-gradient(135deg, #fef08a 0%, #fde047 100%);
    border: 1px solid #facc15;
    transition: all 0.2s ease;
}
#btn-portal-direct-admin:hover {
    background: linear-gradient(135deg, #fde047 0%, #eab308 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(234, 179, 8, 0.35) !important;
}

.portal-icon-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

/* Nepal Map SVG Styles */
.portal-map-container {
    background: #0f172a;
    border-radius: 10px;
    padding: 0.5rem;
    border: 1px solid #1e293b;
    overflow: hidden;
}

.portal-nepal-svg {
    width: 100%;
    height: auto;
    max-height: 480px;
    display: block;
}

.nepal-province-path {
    transition: all 0.22s ease;
    cursor: pointer;
    stroke: #ffffff;
    stroke-width: 2.2;
    stroke-linejoin: round;
    opacity: 0.95;
}

.nepal-province-path:hover,
.nepal-province-path.active {
    opacity: 1;
    filter: brightness(1.15) drop-shadow(0 4px 14px rgba(0, 0, 0, 0.28));
    stroke: #ffffff;
    stroke-width: 3.2;
}

.map-label-main {
    fill: #ffffff;
    font-size: 15px;
    font-weight: 800;
    pointer-events: none;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
    font-family: 'Mukta', sans-serif;
    text-anchor: middle;
}

.map-label-sub {
    fill: #ffffff;
    font-size: 11px;
    font-weight: 700;
    pointer-events: none;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
    font-family: 'Mukta', sans-serif;
    text-anchor: middle;
}

.portal-map-legend-box {
    position: absolute;
    bottom: 16px;
    left: 20px;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    padding: 8px 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    z-index: 5;
}

.province-pill-btn {
    font-size: 0.78rem;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    font-weight: 600;
    border: 1px solid #cbd5e1;
    cursor: pointer;
    background: #f8fafc;
    transition: all 0.15s ease;
}
.province-pill-btn:hover,
.province-pill-btn.active {
    background: #2563eb;
    color: #ffffff;
    border-color: #1d4ed8;
}

/* 7 Modules List */
.portal-modules-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.portal-module-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.95rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.18s ease;
    background: #f8fafc;
    font-size: 0.9rem;
}

.portal-module-row:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    transform: translateX(4px);
}

.portal-module-row.active {
    background: #eff6ff;
    border-color: #2563eb;
    font-weight: 700;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.portal-module-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-right: 0.65rem;
}

/* Software Demo Preview Box */
.portal-demo-preview {
    background: #1e293b;
    color: #f8fafc;
    border-radius: 10px;
    padding: 1.25rem;
    border: 1px solid #334155;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Login Card Styles */
.portal-province-select {
    background-color: #2563eb !important;
    color: #ffffff !important;
    font-weight: 700;
    border: 1px solid #1d4ed8;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
}

.portal-province-select option {
    background: #ffffff;
    color: #0f172a;
}

.btn-quick-portal-user {
    font-size: 0.76rem;
    font-weight: 600;
}

/* Footer */
.portal-footer {
    background: #0b0f19;
    border-top: 1px solid #1e293b;
    color: #94a3b8;
}

/* ==========================================================================
   New Landing Page Layout (Matching User Screenshot)
   ========================================================================== */
.portal-header-title-box {
    background: #0f172a;
    color: #ffffff;
    font-size: 2.1rem;
    font-weight: 800;
    padding: 0.6rem 2.5rem;
    border-radius: 8px;
    letter-spacing: -0.01em;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.portal-header-subpill {
    background: #091325;
    color: #94a3b8;
    border: 1px solid #1e293b;
    border-radius: 9999px;
    padding: 0.35rem 1.75rem;
    font-size: 0.92rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.portal-map-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.portal-feature-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.15rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 0.6rem;
    background: #f8fafc;
    color: #1e293b;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.portal-feature-item:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    transform: translateX(4px);
}

.portal-select-custom {
    height: 46px;
    font-size: 1rem;
    border-radius: 8px;
    font-weight: 600;
    padding-left: 1rem;
    transition: all 0.2s ease;
}

.portal-select-blue {
    background-color: #1e3a8a !important;
    color: #ffffff !important;
    border-color: #1e40af !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
}

.portal-select-blue:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.4) !important;
}

.portal-select-blue option {
    background-color: #1e293b;
    color: #ffffff;
}

.portal-select-palika-style {
    background-color: #94a3b8 !important;
    color: #ffffff !important;
    border-color: #94a3b8 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
}

.portal-select-palika-style.active-selection {
    background-color: #1e3a8a !important;
    border-color: #1e40af !important;
}

.portal-select-palika-style option {
    background-color: #1e293b;
    color: #ffffff;
}

.btn-portal-login-pill {
    background-color: #2563eb !important;
    color: #ffffff !important;
    padding: 0.65rem 4rem !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35) !important;
    transition: all 0.2s ease !important;
}

.btn-portal-login-pill:hover {
    background-color: #1d4ed8 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.5) !important;
}
