@import url('https://fonts.maateen.me/solaiman-lipi/font.css');
/* BRMSystem Main Style */
/* Base Colors */
:root {
    --primary-green: #004D2E;
    --sidebar-bg: #004D2E;
    --sidebar-text: #ffffff;
    --header-bg: #e6f0ec;
    --site-bg: #EEF3FC;
    --text-black: #000000;
    --accent-green: #2ecc71;
}

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

body {
    font-family: 'SolaimanLipi', 'Kalpurush', sans-serif;
    background-color: #EEF3FC !important;
    color: var(--text-black);
}

#content {
    background-color: #EEF3FC !important;
}

/* Auth Pages */
/* Login Page Enhancements */
.login-container {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #004D2E 0%, #002b1a 100%);
    padding: 20px;
}

.login-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem 2.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 420px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-box img.logo {
    width: 90px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.login-box h2 {
    color: var(--primary-green);
    margin-bottom: 2rem;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.form-group {
    margin-bottom: 1.2rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: #444;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #eee;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s;
    background: #fcfcfc;
}

.form-control:focus {
    border-color: var(--primary-green);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 77, 46, 0.1);
    outline: none;
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary-green) 0%, #00361f 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 77, 46, 0.25);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 77, 46, 0.35);
    filter: brightness(1.1);
}

.btn-google {
    width: 100%;
    padding: 0.8rem;
    background-color: #fff;
    color: #444;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 0.95rem;
    cursor: pointer;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.btn-google:hover {
    background-color: #f8f9fa;
    border-color: #ccc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-google img {
    width: 20px !important;
    height: 20px !important;
    display: inline-block !important;
}

.or-divider {
    margin: 1.8rem 0;
    display: flex;
    align-items: center;
    text-align: center;
    color: #888;
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

.or-divider::before,
.or-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #eee;
}

.or-divider:not(:empty)::before {
    margin-right: 1.5rem;
}

.or-divider:not(:empty)::after {
    margin-left: 1.5rem;
}

/* Sidebar & Layout */
.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}

#sidebar {
    min-width: 270px;
    max-width: 270px;
    background: #ffffff !important;
    color: #1e293b !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    border-right: 1px solid #e2e8f0;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.03);
    margin-left: 0;
    overflow-y: auto;
    scrollbar-width: thin;
}

#sidebar::-webkit-scrollbar {
    width: 4px;
}

#sidebar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

#sidebar.active {
    margin-left: -270px;
}

#sidebar .sidebar-header {
    padding: 22px 20px 18px 20px;
    background: #ffffff !important;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-brand .brand-logo {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-brand .brand-title {
    font-size: 1.4rem;
    font-weight: 900;
    color: #10b981;
    margin: 0;
    line-height: 1.1;
    letter-spacing: -0.3px;
}

.sidebar-brand .brand-subtitle {
    font-size: 0.75rem;
    color: #64748b;
    display: block;
    margin-top: 3px;
    font-weight: 800;
}

/* Header & Bulk layout alignments */
.custom-action-bar {
    margin-bottom: 15px;
    text-align: center;
}

#sidebar ul.components {
    padding: 16px 12px;
}

#sidebar ul li.menu-item {
    margin-bottom: 4px;
}

#sidebar ul li a {
    padding: 12px 16px;
    font-size: 1.02rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #334155 !important;
    text-decoration: none;
    transition: all 0.25s ease-in-out;
    border-left: none !important;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 600;
}

#sidebar ul li a .menu-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

#sidebar ul li a i.menu-icon {
    font-size: 1.25rem;
    color: #475569;
    width: 24px;
    text-align: center;
    transition: color 0.2s;
}

#sidebar ul li a:hover {
    background: #f8fafc;
    color: #1e293b !important;
}

#sidebar ul li a:hover i.menu-icon {
    color: #1e293b;
}

/* Active Menu Item (Bright Blue Gradient like reference image) */
#sidebar ul li.menu-item.active>a,
#sidebar ul li.active>a:not(.submenu a) {
    background: linear-gradient(135deg, #5b86e5 0%, #3b82f6 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
    border-radius: 14px;
}

#sidebar ul li.menu-item.active>a i.menu-icon,
#sidebar ul li.active>a:not(.submenu a) i.menu-icon {
    color: #ffffff !important;
}

/* Badges */
.badge-count {
    background: #d1fae5;
    color: #059669;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 20px;
    line-height: 1.4;
}

.badge-new {
    background: #06b6d4;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    line-height: 1.4;
    letter-spacing: 0.3px;
}

#sidebar ul li.menu-item.active>a .badge-count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

#sidebar ul li.menu-item.active>a .badge-new {
    background: #ffffff;
    color: #0284c7;
}

/* Sub-menus */
#sidebar ul li ul.submenu {
    display: none;
    background: transparent;
    padding: 4px 0 6px 0;
}

#sidebar ul li ul.submenu.show {
    display: block;
}

#sidebar ul li ul.submenu li {
    margin-bottom: 2px;
}

#sidebar ul li ul.submenu li a {
    padding: 9px 16px 9px 38px !important;
    font-size: 0.95rem;
    font-weight: 600;
    color: #475569 !important;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

#sidebar ul li ul.submenu li a i.sub-icon {
    font-size: 0.75rem;
    color: #64748b;
    transition: all 0.2s;
}

#sidebar ul li ul.submenu li a:hover {
    background: #f1f5f9;
    color: #0f172a !important;
}

#sidebar ul li ul.submenu li.active a {
    background: #eff6ff !important;
    color: #2563eb !important;
    font-weight: 700;
}

#sidebar ul li ul.submenu li.active a i.sub-icon {
    color: #2563eb !important;
}

.sidebar-dropdown-toggle::after {
    display: inline-block;
    margin-left: auto;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f105";
    transition: transform 0.3s;
    color: currentColor;
}

.menu-item.open .sidebar-dropdown-toggle::after,
.menu-item.active .sidebar-dropdown-toggle::after {
    transform: rotate(90deg);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    top: 0;
    left: 0;
}

@media (max-width: 768px) {
    .sidebar-overlay.active {
        display: block;
    }

    #sidebar {
        margin-left: -270px;
    }

    #sidebar.active {
        margin-left: 0;
    }

    #content {
        margin-left: 0 !important;
        padding: 10px;
    }

    .hide-on-mobile {
        display: none !important;
    }

    .top-bar {
        padding: 10px;
        flex-wrap: wrap;
    }

    .user-info {
        gap: 10px !important;
    }

    .card-container {
        grid-template-columns: 1fr;
    }

    .d-flex.justify-content-center.align-items-center.gap-2.flex-wrap>* {
        flex: 1 1 100%;
        margin-bottom: 5px;
    }

    .table-filter-pill,
    .table-date-pill {
        width: 100% !important;
    }

    .btn-print-report {
        width: 100%;
    }
}

@media (min-width: 768px) {
    .w-md-auto {
        width: auto !important;
    }
}

@media (min-width: 769px) {
    .sidebar-overlay {
        display: none !important;
    }
}

#content {
    width: 100%;
    padding: 15px;
    min-height: 100vh;
    margin-left: 270px;
    transition: all 0.3s;
}

#content.active {
    margin-left: 0;
}

.top-bar {
    background: var(--header-bg);
    padding: 12px 20px;
    margin-bottom: 10px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Dashboard Enhancements - Modern Premium Style */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.stat-card {
    background: #ffffff;
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 77, 46, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 77, 46, 0.12);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 100%);
    z-index: -1;
    border-radius: 12px;
    pointer-events: none;
}

.stat-card-header {
    background: transparent;
    padding: 10px 15px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.06);
    font-weight: bold;
    font-size: 0.85rem;
    color: #444;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-card-body {
    padding: 15px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-card-info h3 {
    font-size: 1.6rem;
    margin: 0;
    font-weight: 800;
    color: #2c3e50;
    letter-spacing: -0.5px;
}

.stat-card-info p {
    margin: 3px 0 0;
    font-size: 0.85rem;
    color: #7f8c8d;
    font-weight: 500;
}

.stat-card-icon {
    font-size: 1.6rem;
    color: var(--primary-green);
    background: rgba(0, 77, 46, 0.06);
    padding: 12px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.stat-card:hover .stat-card-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--primary-green);
    color: #ffffff !important;
}

/* Formal Solid Accents with Gradients */
.stat-card.govt-primary {
    border-top: 4px solid #004D2E;
}

.stat-card.govt-info {
    border-top: 4px solid #0984e3;
}

.stat-card.govt-warning {
    border-top: 4px solid #f39c12;
}

.stat-card.govt-danger {
    border-top: 4px solid #d63031;
}

/* Quick Actions - Formal Rectangular Buttons */
.quick-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.btn-action {
    padding: 10px 22px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #ffffff 0%, #f1f1f1 100%);
    color: var(--primary-green);
    border: 1px solid rgba(0, 77, 46, 0.2);
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

.btn-action:hover {
    background: linear-gradient(135deg, var(--primary-green) 0%, #00361f 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 77, 46, 0.2);
    border-color: var(--primary-green);
}

.btn-action i {
    font-size: 1.1rem;
}

/* Global Button Classes */
.btn {
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-green) 0%, #00361f 100%);
    color: white;
    box-shadow: 0 4px 10px rgba(0, 77, 46, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 77, 46, 0.3);
    filter: brightness(1.1);
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    color: white;
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.2);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(40, 167, 69, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    box-shadow: 0 4px 10px rgba(231, 76, 60, 0.2);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(231, 76, 60, 0.3);
}

.btn-warning {
    background: linear-gradient(135deg, #f1c40f 0%, #f39c12 100%);
    color: #333;
    box-shadow: 0 4px 10px rgba(241, 196, 15, 0.2);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(241, 196, 15, 0.3);
}

/* Recent Activity Table - Formal Registry Style */
.activity-table {
    width: 100%;
    border-collapse: collapse;
}

.activity-table th,
.activity-table td {
    padding: 12px;
    text-align: left;
    border: 1px solid #dee2e6;
    font-size: 0.95rem;
}

.activity-table th {
    background: #004D2E;
    color: #fff;
    font-weight: normal;
}

.activity-table tr:nth-child(even) {
    background: #f9f9f9;
}

.activity-table tr:hover {
    background: #f1f1f1;
}

.status-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    border: 1px solid transparent;
}

/* Forms, Tables & Cards - Shared Sarkari Styling */
.main-card {
    background: #ffffff;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 77, 46, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    margin-bottom: 30px;
}

.main-card h3,
.main-card h5 {
    color: #004D2E;
    font-weight: bold;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* Global Table Styles (Sarkari Registry Style) */
table:not(.no-style) {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

table:not(.no-style) th {
    padding: 12px;
    border: 1px solid #dee2e6;
    text-align: center !important;
    font-size: 0.95rem;
}

table:not(.no-style) td {
    padding: 12px;
    border: 1px solid #dee2e6;
    text-align: left;
    font-size: 0.95rem;
}

table:not(.no-style) th {
    background: #004D2E;
    color: #fff;
    font-weight: normal;
}

table:not(.no-style) tr:nth-child(even) {
    background: #f9f9f9;
}

table:not(.no-style) tr:hover {
    background: #f1f1f1;
}

/* Bootstrap 5 Style ONLY for Specific Tables (e.g. e-report) */
table.bootstrap-style {
    width: 100%;
    margin-bottom: 1rem;
    color: #212529;
    vertical-align: top;
    border-color: #dee2e6;
    border-collapse: collapse;
}

table.bootstrap-style thead {
    vertical-align: bottom;
}

table.bootstrap-style th {
    border: 1px solid #dee2e6 !important;
    padding: 0.75rem 1rem !important;
    text-align: center !important;
    font-size: 0.95rem;
    vertical-align: middle !important;
}

table.bootstrap-style td {
    border: 1px solid #dee2e6 !important;
    padding: 0.75rem 1rem !important;
    text-align: left;
    font-size: 0.95rem;
    vertical-align: middle !important;
}

table.bootstrap-style thead tr {
    background-color: transparent !important;
}

table.bootstrap-style th {
    background-color: #f8f9fa !important;
    color: #004D2E !important;
    font-weight: 600 !important;
    border-bottom: 2px solid #dee2e6 !important;
    white-space: nowrap;
}

table.bootstrap-style tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02) !important;
}

table.bootstrap-style tbody tr:nth-of-type(even) {
    background-color: #fff !important;
}

table.bootstrap-style tbody tr {
    transition: background-color 0.2s ease-in-out;
}

table.bootstrap-style tbody tr:hover td {
    background-color: rgba(0, 77, 46, 0.05) !important;
}

/* Mobile Sidebar behavior & Responsiveness */
@media (max-width: 768px) {
    #sidebar {
        margin-left: -260px;
    }

    #sidebar.active {
        margin-left: 0;
    }

    #content {
        margin-left: 0;
        padding: 15px 10px;
    }

    #content.active {
        margin-left: 0;
    }

    .top-bar {
        padding: 10px 15px;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 10px;
    }

    .top-bar .user-info {
        width: auto !important;
        margin-left: 0 !important;
    }

    .profile-dropdown-toggle {
        padding: 4px 8px !important;
    }

    .profile-dropdown-toggle span {
        display: none !important;
        /* Hide 'Welcome Name' text on mobile */
    }

    .dropdown-menu {
        right: 0 !important;
        left: auto !important;
    }

    .quick-actions {
        flex-direction: column;
    }

    .quick-actions .btn-action {
        width: 100%;
        justify-content: center;
        padding: 12px;
    }

    .card-container {
        grid-template-columns: 1fr;
    }

    .stat-card-info h3 {
        font-size: 1.6rem;
    }

    /* Table Responsive fixes */
    .datatable {
        min-width: 900px !important;
    }

    /* Header layout fixes */
    .filter-header-container {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px;
    }

    .filter-header-container form {
        width: 100%;
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .filter-header-container form select {
        width: 100% !important;
    }

    /* Custom action bar fixes */
    .custom-action-bar .custom-action-inner {
        flex-direction: column !important;
        align-items: center !important;
    }

    span#bulkCountSpan {
        display: block;
        margin-top: 5px;
        margin-left: 0 !important;
    }
}

/* Page Loader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.loader {
    width: 48px;
    height: 48px;
    border: 5px solid #E1E9F0;
    border-bottom-color: #004D2E;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    overflow-y: auto;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 800px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover {
    color: #000;
}

.modal-header {
    border-bottom: 2px solid var(--primary-green);
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.modal-body {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

#modalBody {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
}

.view-item {
    padding: 16px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease-in-out;
}

.view-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
    border-color: #cbd5e1;
}

.view-label {
    font-weight: 600;
    color: #64748b;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.view-label i {
    color: #3b82f6;
    font-size: 1rem;
}

.view-value {
    color: #0f172a;
    font-size: 1.1rem;
    font-weight: 600;
    word-break: break-word;
}

.modal-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn-modal {
    padding: 10px 25px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn-modal-close {
    background-color: #f1f1f1;
    color: #333;
}

.btn-modal-close:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
}

.btn-modal-edit {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: #fff;
}

.btn-modal-edit:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(230, 126, 34, 0.3);
}

/* Action Icon Styling */
.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    margin: 0 2px;
    cursor: pointer;
    transition: 0.2s;
    border: none;
    color: #fff;
}

.btn-view {
    background-color: #3498db;
}

.btn-view:hover {
    background-color: #2980b9;
}

.btn-edit {
    background-color: #f39c12;
}

.btn-edit:hover {
    background-color: #e67e22;
}

.btn-delete {
    background-color: #e74c3c;
}

.btn-delete:hover {
    background-color: #c0392b;
}

.btn-print {
    background-color: var(--primary-green);
}

.btn-print:hover {
    background-color: #00361f;
}

/* DataTables Top and Bottom Styling */
.dt-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.dataTables_filter {
    text-align: right;
}

.dataTables_filter label {
    font-weight: bold;
    position: relative;
}

.dataTables_filter input {
    border: 2px solid var(--primary-green);
    border-radius: 5px;
    padding: 6px 12px;
    margin-left: 10px;
    outline: none;
}

.dt-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.dataTables_paginate .paginate_button {
    padding: 5px 12px !important;
    margin: 0 2px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
}

.dataTables_paginate .paginate_button.current {
    background: var(--primary-green) !important;
    color: white !important;
    border-color: var(--primary-green);
}

/* Dashboard Quick Action Buttons */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 15px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    text-align: center;
}

.quick-action-btn i {
    font-size: 2rem;
    color: var(--primary-green);
    transition: all 0.3s ease;
}

.quick-action-btn:hover {
    background: linear-gradient(135deg, var(--primary-green), #003620);
    color: #ffffff;
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
    border-color: transparent;
}

.quick-action-btn:hover i {
    color: #ffffff;
    transform: scale(1.1);
}

/* Big Beautiful Custom Search Bar for DataTables */
.dataTables_filter {
    width: 100% !important;
    text-align: left !important;
    margin-bottom: 25px !important;
    background: #f7fbfa;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2eee8;
    box-shadow: 0 4px 6px rgba(0, 77, 46, 0.05);
}

.dataTables_filter label {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    font-size: 1.1rem !important;
    color: #004D2E !important;
    font-weight: bold;
}

.dataTables_filter input {
    flex-grow: 1 !important;
    margin-left: 15px !important;
    padding: 12px 20px !important;
    font-size: 1.1rem !important;
    border: 2px solid var(--primary-green) !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) inset;
    transition: all 0.3s ease;
}

.dataTables_filter input:focus {
    box-shadow: 0 0 0 3px rgba(0, 77, 46, 0.2) !important;
    border-color: #003620 !important;
    outline: none;
}

.dataTables_length {
    margin-bottom: 25px !important;
    margin-top: 25px !important;
}

.dt-buttons {
    margin-bottom: 25px !important;
    margin-top: 25px !important;
}

/* Compact Elegant Search Bar Override */
.dataTables_filter {
    margin-bottom: 20px !important;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

.dataTables_filter label {
    display: inline-flex !important;
    flex-wrap: nowrap;
    align-items: center;
    font-size: 0.95rem !important;
    color: #333 !important;
    font-weight: 600 !important;
    margin: 0 !important;
}

.dataTables_filter input {
    width: 250px !important;
    margin-left: 10px !important;
    padding: 8px 15px !important;
    font-size: 0.95rem !important;
    border: 2px solid #ddd !important;
    border-radius: 5px !important;
    transition: all 0.3s ease;
}

.dataTables_filter input:focus {
    border-color: var(--primary-green) !important;
    outline: none;
}

.dataTables_length {
    margin-bottom: 20px !important;
}

.dataTables_length select {
    padding: 6px 10px !important;
    border: 2px solid #ddd !important;
    border-radius: 5px !important;
    margin: 0 5px !important;
}

.dt-buttons {
    margin-bottom: 20px !important;
}

/* ===========================
   Entry Form Section Styles
   =========================== */
.form-section {
    background: #fff;
    border: 1px solid #e0e8e4;
    border-left: 5px solid var(--primary-green);
    border-radius: 10px;
    padding: 25px 20px 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 77, 46, 0.06);
}

.section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #c3ddd0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    background: linear-gradient(135deg, var(--primary-green), var(--accent-green));
    color: #fff;
    padding: 7px 9px;
    border-radius: 8px;
    font-size: 0.95rem;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.form-row .form-group {
    flex: 1;
    min-width: 200px;
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.88rem;
    color: #334;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #d0ddd8;
    border-radius: 8px;
    font-size: 0.97rem;
    background: #f9fbfa;
    transition: border-color 0.25s, box-shadow 0.25s;
    font-family: inherit;
    color: #222;
}

.form-control:focus {
    border-color: var(--primary-green);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 77, 46, 0.12);
    outline: none;
}

select.form-control {
    cursor: pointer;
}

textarea.form-control {
    resize: vertical;
}

/* Alert boxes */
.alert {
    padding: 13px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: #edfaf2;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background: #fff5f5;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-left: 4px solid #e74c3c;
}

/* Form action bar */
.form-action-bar {
    background: linear-gradient(135deg, #f8faf9, #edf4f0);
    padding: 18px 22px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #d0e8dc;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 5px;
}

.family-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 600;
    color: var(--primary-green);
    font-size: 0.95rem;
}

.family-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-green);
    cursor: pointer;
}

.btn-draft {
    background: #6c757d;
    color: #fff;
    border: none;
    padding: 11px 28px;
    border-radius: 8px;
    font-size: 0.97rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
    font-family: inherit;
}

.btn-draft:hover {
    background: #545b62;
}

.btn-submit-final {
    background: linear-gradient(135deg, var(--primary-green), var(--accent-green));
    color: #fff;
    border: none;
    padding: 11px 28px;
    border-radius: 8px;
    font-size: 0.97rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
    font-family: inherit;
    box-shadow: 0 4px 12px rgba(0, 77, 46, 0.25);
}

.btn-submit-final:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 77, 46, 0.35);
}

/* ============================================================
   RESPONSIVE DESIGN A TO Z (MOBILE, TABLET, DESKTOP)
   ============================================================ */

/* Utility for horizontal table scrolling */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

/* Tablet & Mobile Improvements (Under 992px) */
@media (max-width: 991.98px) {
    #sidebar {
        min-width: 240px;
        max-width: 240px;
    }

    .modal-content {
        width: 95%;
        margin: 10px auto;
        padding: 15px;
    }

    .modal-body {
        grid-template-columns: 1fr;
        /* Stack items vertically */
    }
}

/* Mobile Specific (Under 768px) */
@media (max-width: 767.98px) {

    /* Top Bar Optimization */
    .top-bar {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 10px 15px;
    }

    .top-bar .user-info {
        margin-left: 0 !important;
        gap: 10px !important;
    }

    .profile-dropdown-toggle span {
        display: none !important;
    }

    /* Dashboard Cards */
    .card-container {
        grid-template-columns: 1fr !important;
    }

    .stat-card-body {
        padding: 15px;
    }

    /* Forms Optimization */
    .form-row {
        flex-direction: column;
        gap: 15px;
    }

    .form-row .form-group {
        width: 100% !important;
        flex: none !important;
    }

    .form-action-bar {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .form-action-bar .btn-draft,
    .form-action-bar .btn-submit-final {
        width: 100%;
    }

    /* Login Page Mobile */
    .login-box {
        padding: 2rem 1.5rem;
        margin: 10px;
    }

    .login-box h2 {
        font-size: 1.4rem;
    }

    /* DataTables Mobile Layout */
    .dt-top,
    .dt-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .dataTables_filter input {
        width: 100% !important;
        margin-left: 0 !important;
        margin-top: 10px;
    }

    .dataTables_length,
    .dt-buttons {
        float: none !important;
        text-align: center !important;
        width: 100%;
    }

    .dt-buttons button {
        width: 100%;
        margin-bottom: 5px;
    }
}

/* --- Status Badges (Premium Rounded Style) --- */
.status-badge {
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-block;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.status-pending {
    background-color: #fff3cd !important;
    color: #856404 !important;
    border-color: #ffeeba !important;
}

.status-delivered {
    background-color: #d4edda !important;
    color: #155724 !important;
    border-color: #c3e6cb !important;
}

.status-cancelled {
    background-color: #f8d7da !important;
    color: #721c24 !important;
    border-color: #f5c6cb !important;
}

.status-processing {
    background-color: #cce5ff !important;
    color: #004085 !important;
    border-color: #b8daff !important;
}

.status-default {
    background-color: #e2e3e5 !important;
    color: #383d41 !important;
    border-color: #d6d8db !important;
}

/* DataTables Controls visibility fix */
.dt-top {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 20px !important;
    padding: 15px !important;
    background: #fdfdfd !important;
    border-radius: 10px !important;
    border: 1px solid #e1e8ed !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
}

.dataTables_length,
.dataTables_filter {
    float: none !important;
    margin: 0 !important;
    display: block !important;
}

.dataTables_filter label {
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.dataTables_filter input {
    width: 280px !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 50px !important;
    padding: 10px 20px !important;
    font-size: 0.95rem !important;
    transition: all 0.3s ease;
    background: #fdfdfd !important;
    margin-left: 10px !important;
}

.dataTables_filter input:focus {
    border-color: var(--primary-green) !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(0, 77, 46, 0.1) !important;
    outline: none;
}

.dataTables_length {
    margin-bottom: 0 !important;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

/* Select2 for DataTables Length Menu */
.dataTables_length .select2-container--default .select2-selection--single {
    border: 2px solid #e0e0e0 !important;
    border-radius: 50px !important;
    height: 40px !important;
    display: flex;
    align-items: center;
    padding: 0 10px;
}

.dataTables_length .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 38px !important;
}

/* DataTables Info */
.dataTables_info {
    font-size: 0.95rem;
    color: #666 !important;
    padding-top: 15px !important;
}

/* Pagination Styling */
.dataTables_paginate {
    padding-top: 15px !important;
}

.dataTables_paginate .paginate_button {
    padding: 8px 16px !important;
    margin: 0 4px !important;
    border-radius: 50px !important;
    border: 1px solid #e0e0e0 !important;
    background: #fff !important;
    color: #444 !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
}

.dataTables_paginate .paginate_button:hover {
    background: #f8f9fa !important;
    color: var(--primary-green) !important;
    border-color: var(--primary-green) !important;
}

.dataTables_paginate .paginate_button.current {
    background: var(--primary-green) !important;
    color: #fff !important;
    border-color: var(--primary-green) !important;
}

.dataTables_paginate .paginate_button.disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

.dt-buttons {
    margin: 0 !important;
}

/* DataTables Controls - Premium Style */
.dt-controls-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8fafb;
    border-radius: 12px 12px 0 0;
    border: 1px solid #e1eee7;
    border-bottom: none;
    flex-wrap: wrap;
    gap: 15px;
}

.dt-controls-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8fafb;
    border-radius: 0 0 12px 12px;
    border: 1px solid #e1eee7;
    border-top: none;
    flex-wrap: wrap;
    gap: 15px;
}

.dataTables_length select {
    padding: 6px 12px !important;
    border: 1.5px solid #d0ddd8 !important;
    border-radius: 50px !important;
    background: #fff !important;
    outline: none;
    cursor: pointer;
    margin: 0 8px !important;
    color: #004D2E !important;
    font-weight: 600;
}

.dataTables_length label {
    font-weight: 600;
    color: #555;
    display: flex;
    align-items: center;
}

.dataTables_info {
    color: #666 !important;
    font-size: 0.9rem;
    font-weight: 500;
}

.dataTables_paginate {
    display: flex;
    align-items: center;
}

.dataTables_paginate .paginate_button {
    padding: 6px 14px !important;
    margin: 0 3px !important;
    border-radius: 50px !important;
    border: 1px solid #d0ddd8 !important;
    background: #fff !important;
    color: #444 !important;
    font-weight: 600 !important;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.dataTables_paginate .paginate_button:hover:not(.current) {
    background: #e1eee7 !important;
    color: #004D2E !important;
    border-color: #004D2E !important;
}

.dataTables_paginate .paginate_button.current {
    background: #004D2E !important;
    color: #fff !important;
    border-color: #004D2E !important;
    box-shadow: 0 4px 10px rgba(0, 77, 46, 0.2);
}

.dataTables_paginate .paginate_button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Mobile Responsiveness for DataTables */
@media (max-width: 768px) {

    .dt-controls-top,
    .dt-controls-bottom {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 8px;
        padding: 10px;
    }

    .main-card {
        padding: 15px !important;
    }

    h3 {
        font-size: 1.2rem !important;
    }

    .filter-header-container {
        padding: 15px !important;
        margin-bottom: 20px !important;
    }

    .form-control,
    select,
    .btn-action {
        font-size: 0.9rem !important;
        padding: 8px 15px !important;
        height: auto !important;
    }

    .dataTables_length,
    .dt-buttons,
    .dataTables_info,
    .dataTables_paginate {
        justify-content: center !important;
        margin: 0 auto !important;
        text-align: center !important;
    }

    .dataTables_length label {
        justify-content: center;
    }

    .dataTables_paginate {
        flex-wrap: wrap;
        gap: 5px;
    }

    .dataTables_paginate .paginate_button {
        padding: 4px 10px !important;
        margin: 2px !important;
        font-size: 0.8rem;
    }

    .table-responsive {
        border-radius: 0;
        margin: 0 -15px;
        width: calc(100% + 30px);
    }

    .dt-controls-top {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .dt-controls-bottom {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    /* Filter Header Responsiveness */
    .filter-header-container>div {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .filter-header-container form {
        flex-direction: column !important;
        width: 100% !important;
        gap: 10px !important;
    }

    .filter-header-container select,
    .filter-header-container .btn-action,
    .filter-header-container div[style*="display: flex"] {
        width: 100% !important;
        max-width: none !important;
    }

    .bulk-action-bar {
        padding: 15px !important;
    }

    .bulk-action-bar>div {
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
    }

    .bulk-action-bar select,
    .bulk-action-bar button {
        width: 100% !important;
    }

    .table-search-box {
        margin-top: 10px !important;
        width: 100% !important;
        max-width: none !important;
        order: 2;
    }

    #bulkCountSpan {
        font-weight: 600 !important;
        color: #e67e22 !important;
        font-size: 0.85rem !important;
        margin-left: 5px !important;
    }

    .bulk-action-bar>div {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 10px !important;
    }

    /* Inner Date Range Fix - Compact Side-by-Side */
    .filter-header-container div[style*="border-radius: 50px"] {
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        padding: 5px 10px !important;
        gap: 5px !important;
        border-radius: 50px !important;
        background: #fff !important;
    }

    .filter-header-container div[style*="border-radius: 50px"] input[type="date"] {
        width: 42% !important;
        font-size: 0.75rem !important;
        padding: 0 !important;
        text-align: center !important;
    }

    .filter-header-container div[style*="border-radius: 50px"] span {
        font-size: 0.7rem !important;
        min-width: 20px;
        text-align: center;
    }

    /* Table Content Shrink - Balanced */
    .datatable td,
    .datatable th {
        font-size: 0.85rem;
        padding: 10px 8px;
    }

    .action-dots {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.75rem !important;
    }

    .badge {
        font-size: 0.7rem !important;
        padding: 3px 8px !important;
    }
}

/* Printing Responsiveness */
@media print {

    #sidebar,
    .top-bar,
    .dt-buttons,
    .dataTables_filter,
    .dataTables_length,
    .dataTables_paginate,
    .btn-action,
    .preloader {
        display: none !important;
    }

    #content {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .main-card {
        box-shadow: none !important;
        border: none !important;
    }
}

/* Table Action Dropdown - Premium Style */
.action-dropdown {
    position: relative;
    display: inline-block;
}

.action-dots {
    cursor: pointer;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #555;
    background: #f8f9fa;
    border: 1px solid #ddd;
    font-size: 0.9rem;
}

.action-dots:hover,
.action-dots.active {
    background: var(--primary-green);
    color: #fff;
    border-color: var(--primary-green);
    box-shadow: 0 4px 8px rgba(0, 77, 46, 0.2);
}

.action-menu {
    display: none;
    background: #fff;
    min-width: 170px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    z-index: 9999;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 8px;
    animation: actionMenuIn 0.2s ease-out;
    text-align: left;
}

.action-menu.show {
    display: block;
}

.action-menu.dropup-anim {
    animation: actionMenuUp 0.2s ease-out;
}

/* Dropup logic */
.action-dropdown.dropup .action-menu {
    top: auto;
    bottom: 100%;
    margin-top: 0;
    margin-bottom: 8px;
    animation: actionMenuUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes actionMenuUp {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.action-menu a,
.action-menu button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: #444;
    text-decoration: none;
    font-size: 0.95rem;
    width: 100%;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 8px;
    font-family: inherit;
    font-weight: 500;
}

.action-menu a:hover,
.action-menu button:hover {
    background: rgba(0, 77, 46, 0.08);
    color: var(--primary-green);
}

.action-menu i {
    width: 20px;
    font-size: 1rem;
    text-align: center;
    opacity: 0.8;
}

.action-menu .btn-delete {
    color: #e74c3c;
}

.action-menu .btn-delete:hover {
    background: #fff5f5;
    color: #c0392b;
}

@keyframes actionMenuIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* --- Modern Form Field & Button Styles (From Reference Design) --- */
.form-label {
    font-size: 0.92rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
    display: block;
}

.form-label .text-danger {
    color: #ef4444 !important;
}

.form-control,
.form-select {
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px !important;
    padding: 10px 14px !important;
    font-size: 0.95rem !important;
    color: #334155 !important;
    height: auto !important;
    min-height: 44px;
    transition: all 0.2s ease-in-out !important;
    box-shadow: none !important;
}

.form-control::placeholder {
    color: #94a3b8 !important;
    font-size: 0.9rem;
}

.form-control:focus,
.form-select:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12) !important;
    background-color: #ffffff !important;
    outline: none !important;
}

.form-select {
    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='%2f475569' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 12px 10px !important;
    padding-right: 36px !important;
}

input[type="file"].form-control {
    padding: 6px 12px !important;
    display: flex;
    align-items: center;
}

input[type="file"].form-control::file-selector-button {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #475569;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 8px;
    margin-right: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

input[type="file"].form-control::file-selector-button:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.form-section-header {
    color: #1e293b;
    font-size: 1.15rem;
    font-weight: 700;
    margin-top: 1.8rem;
    margin-bottom: 1rem;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
}

.btn-save-primary {
    background: #3b82f6 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 10px 26px !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25) !important;
    transition: all 0.2s ease-in-out !important;
}

.btn-save-primary:hover {
    background: #2563eb !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.35) !important;
}

.btn-cancel-danger {
    background: #ff6b6b !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 10px 24px !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.2) !important;
    transition: all 0.2s ease-in-out !important;
}

.btn-cancel-danger:hover {
    background: #ee5253 !important;
    transform: translateY(-1px);
}


/* --- Modern Table Design (From Reference Image) --- */
.modern-table-card {
    background: #ffffff !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
    border: 1px solid #f1f5f9 !important;
    padding: 24px !important;
}

.table.custom-reg-table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    width: 100% !important;
    border: none !important;
}

.table.custom-reg-table thead th {
    background: #ffffff !important;
    color: #475569 !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    padding: 16px 14px !important;
    border-bottom: 2px solid #f1f5f9 !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
}

.table.custom-reg-table tbody td {
    padding: 16px 14px !important;
    font-size: 0.95rem !important;
    color: #475569 !important;
    border-bottom: 1px solid #f1f5f9 !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    vertical-align: middle !important;
    background: #ffffff !important;
}

.table.custom-reg-table tbody tr:hover td {
    background-color: #f8fafc !important;
}

.text-blue-600 {
    color: #3b82f6 !important;
    font-weight: 600 !important;
}

.text-slate-600 {
    color: #475569 !important;
}

.btn-action-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.2s ease-in-out;
}

.btn-action-edit {
    background: #3b82f6 !important;
    color: #ffffff !important;
}

.btn-action-edit:hover {
    background: #2563eb !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.btn-action-view {
    background: #38bdf8 !important;
    color: #ffffff !important;
}

.btn-action-view:hover {
    background: #0284c7 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.btn-action-delete {
    background: #ef4444 !important;
    color: #ffffff !important;
}

.btn-action-delete:hover {
    background: #dc2626 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.dt-controls-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.dt-controls-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    flex-wrap: wrap;
    gap: 12px;
    color: #64748b;
    font-size: 0.9rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #4483F1 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 600;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover:not(.current) {
    background: #e6f0ff !important;
    color: #4483F1 !important;
    border: none !important;
    border-radius: 8px !important;
}


/* Action Dropdown Button Styling */
.btn-action-dropdown {
    width: 34px;
    height: 34px;
    border-radius: 10px !important;
    background: #f1f5f9 !important;
    color: #475569 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease-in-out !important;
}

.btn-action-dropdown:hover,
.btn-action-dropdown:focus {
    background: #e2e8f0 !important;
    color: #1e293b !important;
}

.text-slate-700 {
    color: #334155 !important;
}

.dropdown-menu .dropdown-item:hover {
    background-color: #f8fafc !important;
}


/* --- Modern Dashboard Stat Cards (Matching Modern Clean Theme) --- */
.dashboard-page-header {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px 24px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.dashboard-page-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-user-badge {
    background: #f1f5f9;
    color: #475569;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #e2e8f0;
}

.modern-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.modern-stat-card {
    background: #ffffff !important;
    border-radius: 16px !important;
    border: 1px solid #f1f5f9 !important;
    padding: 20px 22px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.modern-stat-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06) !important;
    border-color: #cbd5e1 !important;
}

.modern-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--card-accent, #3b82f6);
}

.modern-stat-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.modern-stat-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #475569;
    margin: 0;
}

.modern-stat-icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--card-icon-bg, #eff6ff);
    color: var(--card-accent, #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.modern-stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
    margin-bottom: 4px;
}

.modern-stat-subtext {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0;
    font-weight: 500;
}

.stat-accent-blue {
    --card-accent: #3b82f6;
    --card-icon-bg: #eff6ff;
}

.stat-accent-green {
    --card-accent: #10b981;
    --card-icon-bg: #ecfdf5;
}

.stat-accent-red {
    --card-accent: #ef4444;
    --card-icon-bg: #fef2f2;
}

.stat-accent-amber {
    --card-accent: #f59e0b;
    --card-icon-bg: #fffbeb;
}

.stat-accent-purple {
    --card-accent: #8b5cf6;
    --card-icon-bg: #f5f3ff;
}

.stat-accent-indigo {
    --card-accent: #6366f1;
    --card-icon-bg: #eef2ff;
}

.stat-accent-cyan {
    --card-accent: #06b6d4;
    --card-icon-bg: #ecfeff;
}

.stat-accent-rose {
    --card-accent: #f43f5e;
    --card-icon-bg: #fff1f2;
}


/* --- Modern Top Bar / Header Design --- */
.top-bar {
    background: #ffffff !important;
    border-bottom: 1px solid #f1f5f9 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03) !important;
    padding: 12px 24px !important;
    margin-bottom: 0 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    z-index: 999;
}

.top-bar-toggle {
    color: #3b82f6 !important;
    font-size: 1.25rem !important;
    margin-right: 16px !important;
    transition: transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.top-bar-toggle:hover {
    color: #2563eb !important;
    transform: scale(1.1);
}

.top-bar-title {
    color: #1e293b !important;
    font-weight: 700 !important;
    font-size: 1.05rem !important;
}

.top-bar-date {
    background: #f1f5f9 !important;
    color: #475569 !important;
    padding: 6px 16px !important;
    border-radius: 20px !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    border: 1px solid #e2e8f0 !important;
}

.profile-dropdown-toggle {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    border: 1px solid #e2e8f0 !important;
    padding: 6px 16px !important;
    border-radius: 50px !important;
    background: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.2s ease-in-out !important;
}

.profile-dropdown-toggle:hover {
    border-color: #cbd5e1 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

.profile-user-name {
    font-weight: 700 !important;
    color: #1e293b !important;
    font-size: 0.92rem !important;
}

.profile-avatar {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    border: 2px solid #3b82f6 !important;
    object-fit: cover;
}

#profileDropdownMenu {
    border-radius: 12px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid #f1f5f9 !important;
    padding: 6px 0 !important;
}

#profileDropdownMenu a {
    font-size: 0.9rem !important;
    font-weight: 600 !important;
}


/* --- Table Header Light Gray Background & Single Line Styling --- */
.table.custom-reg-table thead th {
    background: #f1f5f9 !important;
    color: #1e293b !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    padding: 14px 12px !important;
    border-bottom: 2px solid #cbd5e1 !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    white-space: nowrap !important;
    vertical-align: middle !important;
}

.table.custom-reg-table thead tr th:first-child {
    border-top-left-radius: 10px !important;
    border-bottom-left-radius: 10px !important;
}

.table.custom-reg-table thead tr th:last-child {
    border-top-right-radius: 10px !important;
    border-bottom-right-radius: 10px !important;
}


/* --- Filter Dropdowns & Compact Search Bar --- */
.table-filter-select {
    background-color: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 25px !important;
    padding: 6px 32px 6px 14px !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    color: #334155 !important;
    min-width: 150px;
    height: 38px !important;
    box-shadow: none !important;
    transition: all 0.2s ease-in-out !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='%2f475569' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 12px 10px !important;
}

.table-filter-select:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
}

.dataTables_filter input {
    background-color: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 25px !important;
    padding: 6px 14px !important;
    font-size: 0.88rem !important;
    color: #334155 !important;
    width: 170px !important;
    max-width: 170px !important;
    height: 38px !important;
    margin-left: 8px !important;
    transition: all 0.2s ease-in-out !important;
    box-shadow: none !important;
}

.dataTables_filter input:focus {
    border-color: #3b82f6 !important;
    width: 210px !important;
    max-width: 210px !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
    outline: none !important;
}

.dataTables_filter label {
    font-weight: 600;
    color: #475569;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
}


/* --- Reference Screenshot Filters & Controls Styling --- */
.table-filter-pill {
    background-color: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 50px !important;
    padding: 6px 30px 6px 14px !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    color: #334155 !important;
    height: 38px !important;
    box-shadow: none !important;
    transition: all 0.2s ease-in-out !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='%2f475569' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 12px 10px !important;
}

.table-filter-pill:focus {
    border-color: #004D2E !important;
    box-shadow: 0 0 0 3px rgba(0, 77, 46, 0.12) !important;
}

.table-date-pill {
    background-color: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 50px !important;
    padding: 6px 14px !important;
    font-size: 0.88rem !important;
    color: #334155 !important;
    height: 38px !important;
    width: 155px !important;
}

.table-search-pill {
    background-color: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 50px !important;
    padding: 6px 16px !important;
    font-size: 0.88rem !important;
    color: #334155 !important;
    height: 38px !important;
    width: 220px !important;
}

.table-search-pill:focus {
    border-color: #004D2E !important;
    box-shadow: 0 0 0 3px rgba(0, 77, 46, 0.12) !important;
}

.btn-print-report {
    background: #004D2E !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 8px 22px !important;
    font-weight: 700 !important;
    font-size: 0.88rem !important;
    box-shadow: 0 4px 12px rgba(0, 77, 46, 0.25) !important;
    transition: all 0.2s ease-in-out !important;
}

.btn-print-report:hover {
    background: #003822 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.btn-update-green {
    background: #27ae60 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 7px 20px !important;
    font-weight: 700 !important;
    font-size: 0.88rem !important;
    transition: all 0.2s ease-in-out !important;
}

.btn-update-green:hover {
    background: #219150 !important;
    color: #ffffff !important;
}

.btn-search-green {
    background: #004D2E !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 7px 20px !important;
    font-weight: 700 !important;
    font-size: 0.88rem !important;
    transition: all 0.2s ease-in-out !important;
}

.btn-search-green:hover {
    background: #003822 !important;
    color: #ffffff !important;
}


/* Remove Underline from Applicant Names */
a.text-blue-600,
.text-blue-600 {
    text-decoration: none !important;
}

a.text-blue-600:hover,
.text-blue-600:hover {
    text-decoration: none !important;
    color: #2563eb !important;
}


/* --- GLOBAL UNIFIED TABLE HEADER STYLING (Light Gray #f1f5f9) --- */
table th,
table thead th,
table:not(.no-style) th,
.table th,
.table thead th,
.table-light th,
.activity-table th {
    background: #f1f5f9 !important;
    background-color: #f1f5f9 !important;
    color: #1e293b !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    padding: 14px 12px !important;
    border-bottom: 2px solid #cbd5e1 !important;
    border-top: none !important;
    white-space: nowrap !important;
    vertical-align: middle !important;
}

/* Pagination Override */
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: #4483F1 !important;
    color: #ffffff !important;
    border-color: #4483F1 !important;
}

/* Horizontal Action Popup Buttons */
.action-popup-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 38px;
    height: 52px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #475569;
    transition: all 0.2s ease;
    text-decoration: none;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.action-popup-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.action-popup-btn.text-primary { color: #3b82f6 !important; }
.action-popup-btn.text-success { color: #10b981 !important; }
.action-popup-btn.text-info { color: #06b6d4 !important; }
.action-popup-btn.text-danger { color: #ef4444 !important; }
.action-popup-btn i {
    font-size: 1.05rem;
}
