/* ================= Header ================= */
    .gov-header {
        background: #fff;
        color: #114;
        padding: 10px 15px;
        box-shadow: rgba(0, 0, 0, 0.09) 0px 2px 1px, rgba(0, 0, 0, 0.09) 0px 4px 2px, rgba(0, 0, 0, 0.09) 0px 8px 4px, rgba(0, 0, 0, 0.09) 0px 16px 8px, rgba(0, 0, 0, 0.09) 0px 32px 16px;
        border-bottom-left-radius: 12px;
        border-bottom-right-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin-bottom: 2px;
    }

    .gov-header .logo {
        flex: 0 0 auto;
    }

    .gov-header img {
        height: clamp(38px, 6vw, 80px);
        flex: 0 0 auto;
    }

    .gov-header .header-center {
        flex: 1;
        text-align: center;
        overflow: hidden;
    }

    .gov-header .header-center p {
        margin: 2px 0;
        font-weight: 600;
        line-height: 1.3;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Responsive header */
    @media(max-width:768px) {
        .gov-header img {
            height: 45px;
        }
        .gov-header .header-center p:nth-child(1) { font-size: 16px; }
        .gov-header .header-center p:nth-child(2) { font-size: 14px; }
        .gov-header .header-center p:nth-child(3) { font-size: 13px; }
    }

    @media(max-width:480px) {
        .gov-header img { height: 38px; }
        .gov-header { padding: 8px 10px; }
    }

    /* ================= Navbar ================= */
    .custom-navbar {
        background: #041E36;
        border-bottom: 1px solid #dee2e6;
        box-shadow: rgba(9, 30, 66, 0.25) 0px 4px 8px -2px, rgba(9, 30, 66, 0.08) 0px 0px 0px 1px;
        border-radius: 0 0 12px 12px;
        position: relative;
        z-index: 100;
        color: #fff;
        margin: 0 14px;
        padding: 0 14px;
    }

    .custom-navbar ul {
        list-style:none;
        margin:0;
        padding:0;
        display:flex;
        font-weight:500;
        flex-wrap: wrap;  
    }

    .custom-navbar li {
        position:relative;
        flex: 0 0 auto; 
    }

    /* Auto-fit font and spacing */
    .custom-navbar a {
        font-size: clamp(14px, 1.2vw, 16px);
        padding: 12px 20px;
        display:flex;
        align-items:center;
        gap:6px;
        text-decoration:none;
        color:#fff;
        border-bottom:3px solid transparent;
        cursor:pointer;
        transition: all 0.3s ease;
        white-space: nowrap;
    }

    .custom-navbar a:hover,
    .custom-navbar a.active {
        color: #0d6efd;
        border-bottom-color: #0d6efd;
    }

    /* Dropdown arrow */
    .dropdown-arrow {
        font-size: .65rem;
        display: inline-block;
        margin-left: 5px;
        transition: transform 0.3s ease;
    }

    .dropdown-toggle.active .dropdown-arrow {
        transform: rotate(180deg) translateY(-2px);
    }

    /* ===== SUBMENU STYLING - मुख्य menu जस्तै ===== */
    .custom-navbar .dropdown-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 220px;
        background: #041E36;  /* मुख्य menu को जस्तै color */
        border: 1px solid #0a4a6e;
        border-radius: 8px;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
        white-space: nowrap;
        z-index: 1000;
        opacity: 0;
        
        transition: all 0.25s ease;
        padding: 8px 0;
    }

    .custom-navbar .dropdown-menu.show,
    .dropdown:hover > .dropdown-menu {
        display: block;
        opacity: 1;
        transform: translateY(0);
    }

    /* Submenu items - मुख्य menu जस्तै */
    .custom-navbar .dropdown-menu li {
        display: block;
        width: 100%;
    }

    .custom-navbar .dropdown-menu a {
        color: #fff;  /* मुख्य menu को जस्तै white text */
        padding: 10px 20px;
        border-bottom: none;
        font-size: 14px;
        display: flex;
        align-items: center;
        gap: 8px;
        white-space: nowrap;
        transition: all 0.3s ease;
    }

    .custom-navbar .dropdown-menu a:hover {
        color: #0dfd2d;
        background: #0a4a6e;  
        border-radius: 10px;
    }

    .custom-navbar .dropdown-menu a i {
        font-size: 0.9rem;
        width: 20px;
        color: #0d6efd;
    }
    .custom-navbar .dropdown-menu a i:hover {
        font-size: 0.9rem;
        width: 20px;
        color: #0dfd2d;
    }

    /* Right-aligned dropdown (Profile) */
    .custom-navbar .dropdown-menu.dropdown-menu-end {
        right: 0px;
        left: auto;
    }

    .navbar-right {
        margin-left: auto;
    }

    .nav-toggle {
        display: none;
        background: none;
        border: none;
        font-size: 1.6rem;
        padding: 2px 4px;
        color: #fff;
        cursor: pointer;
    }

    @media(max-width:768px) {
        .nav-toggle { display: block; }
        .custom-navbar ul { display: none; flex-direction: column; width: 100%; }
        .custom-navbar ul.show { display: flex; }
        .navbar-right { margin-left: 0; }
        .custom-navbar a { font-size: clamp(13px, 2.5vw, 16px); padding: 10px 15px; }
        
        /* Disable hover on mobile */
        .dropdown:hover > .dropdown-menu {
            display: none;
        }
        .dropdown:hover > .dropdown-menu.show {
            display: block;
        }
        
        .custom-navbar .dropdown-menu {
            position: static;
            width: 100%;
            box-shadow: none;
            margin-left: 20px;
            background: #0a4a6e;  /* Mobile मा अलिकता different */
            border: none;
        }
        
        .custom-navbar .dropdown-menu a {
            padding: 8px 20px;
        }
        
        .custom-navbar .dropdown-menu a:hover {
            transform: translateX(3px);
        }
    }

    /* ================= Footer ================= */
    .gov-footer {
        background: #fff;
        border-top: 1px solid #dee2e6;
        padding: 12px;
        text-align: center;
        font-size: 13px;
        color: #6c757d;
        margin-top: 20px;
    }

    /* Select2 */
    .select2-container .select2-selection--single {
        min-height: 38px;
        padding: 4px 8px;
        display: flex;
        align-items: center;
    }

    .select2-selection__rendered {
        line-height: normal !important;
        padding-left: 0 !important;
        font-size: 1rem;
    }

    .select2-selection__arrow {
        height: 100%;
    }

    @media (max-width:768px) {
        .select2-container .select2-selection--single { font-size: 1rem; }
    }

    .select2-container--default .select2-selection--single .select2-selection__arrow {
        top: 50% !important;
        transform: translateY(-50%);
        height: auto;
    }

    .gov-header .header-center p:nth-child(1) { font-size: clamp(14px, 3.5vw, 20px); }
    .gov-header .header-center p:nth-child(2) { font-size: clamp(12px, 3vw, 16px); }
    .gov-header .header-center p:nth-child(3) { font-size: clamp(11px, 2.8vw, 14px); }
    
    /* Main content area */
    .main-content {
        min-height: calc(100vh - 250px);
    }
    
    /* Card styles */
    .dashboard-card {
        border-radius: 15px;
        border: none;
        box-shadow: rgba(0, 0, 0, 0.05) 0px 6px 24px 0px, rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;
        transition: transform 0.3s ease;
    }
 
    .welcome-banner {
        background: linear-gradient(135deg, #041E36 0%, #0a3a5e 100%);
        color: white;
        padding: 20px;
        border-radius: 15px;
        margin-bottom: 20px;
    }
    
    /* Table action buttons */
    .btn-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
    
    /* Badge styles */
    .badge {
        padding: 0.5em 0.75em;
        font-weight: 500;
    }

    /* DataTable font size */
    .table {
        font-size: 0.9rem;
    }
    
    .dataTables_wrapper {
        font-size: 0.85rem;
    }
    @font-face {
    font-family: 'Kalimati';
    src: url('../assets/fonts/Kalimati.ttf') format('truetype');
    }

    .nepali-input {
        font-family: 'Kalimati', sans-serif; /* केवल Kalimati font */
        direction: ltr;
        font-size: 16px;
    }
    .doc-card {
    border-radius: 16px;
    padding: 18px;
    height: 100%;
    transition: .3s;
}

.doc-card:hover {
    transform: translateY(-5px)
}

.section-pending .doc-card {
    background: #fff5f5;
    border: 2px dashed #f87171;
}

.section-uploaded .doc-card {
    background: #f0fdf4;
    border: 2px solid #22c55e;
}

.doc-preview {
    margin: 10px auto;
    width: 100%;
    height: 160px;
    border-radius: 12px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.doc-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain
}

.gov-required {
    background: #dc2626;
    color: #fff;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 20px
}
/* Modal styling */
.modal-backdrop {
    z-index: 1040 !important;
}

.modal {
    z-index: 1050 !important;
    overflow-y: auto;
}

.modal-dialog {
    margin: 1.75rem auto;
    display: flex;
    align-items: center;
    min-height: calc(100% - 3.5rem);
}

.modal-content {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-header {
    flex-shrink: 0;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #dee2e6;
    background-color: #041E36;
    border-top-left-radius: 0.3rem;
    border-top-right-radius: 0.3rem;
}

.modal-header .modal-title {
    font-weight: 600;
    color: #fff;
}

.modal-body {
    flex: 1 1 auto;
    padding: 1.5rem;
    overflow-y: auto;
    max-height: calc(80vh - 130px);
    background-color: #ffffff;
}

.modal-footer {
    flex-shrink: 0;
    border-top: 1px solid #dee2e6;
    background-color: #f8f9fa;
    gap: 0.5rem;
    border-bottom-left-radius: 0.3rem;
    border-bottom-right-radius: 0.3rem;
}

.modal-footer .btn {
    min-width: 120px;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.modal-footer .btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

.modal-footer .btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.modal-footer .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.modal-footer .btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.modal-dialog-scrollable .modal-content {
    max-height: 90vh;
}

.modal-dialog-scrollable .modal-body {
    overflow-y: auto;
}

@media (max-width: 768px) {
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-footer .btn {
        min-width: 100px;
        padding: 0.5rem 0.8rem;
    }
    
    .modal-footer {
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 576px) {
    .modal-footer {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .modal-footer .btn {
        width: 100%;
        min-width: auto;
    }
}
.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: scale(0.95);
}

.modal.show .modal-dialog {
    transform: scale(1);
}
/* .select2-container {
    z-index: 9999 !important;
} */
.modal .btn-close {
    filter: invert(1);
    opacity: 1;
}
.card{
    border-radius:10px;
}

.form-control, .form-select{
    border-radius:8px;
}

.select2-container--default .select2-selection--single{
    height:38px;
    border-radius:8px;
}
input[readonly] {
    background-color: #f0f0f0; /* हल्का gray */
    color: #555; /* optional, text color हल्का */
}
.btn-view {
    padding: 5px 14px;
    font-size: 14px;
    border-radius: 10px;
    border: none;

    background: #e6e6e6;
    color: #333;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 0.0625em 0.0625em, rgba(0, 0, 0, 0.25) 0px 0.125em 0.5em, rgba(255, 255, 255, 0.1) 0px 0px 0px 1px inset;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-view:hover {
    background: #ee0808e1;
    color:#fff;
}
.btn-print {
    padding: 8px 10px;
    font-size: 14px;
    border-radius: 10px;
    border: none;

    background: #e6e6e6e1;
    color: #333;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 0.0625em 0.0625em, rgba(0, 0, 0, 0.25) 0px 0.125em 0.5em, rgba(255, 255, 255, 0.1) 0px 0px 0px 1px inset;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-print:hover {
    background: #ee0808e1;
    color:#fff;
}
.container-print{
    min-height: 500px;
}