body {
    background-color: #f7f7ff;
}

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

:root {
    /* Tetrahedron Branding - Professional Light Theme */
    --primary: #00a651;
    /* Logo Green */
    --primary-dark: #008148;
    --accent-red: #e31e24;
    /* Logo Red */
    --accent-yellow: #fdb913;
    /* Logo Yellow */
    --background: #f1f5f9;
    --surface: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --sidebar-bg: #ffffff;
    --topbar-bg: #ffffff;
    --radius-lg: 12px;
    --radius-md: 8px;
    --transition: all 0.2s ease-in-out;
}

/* Override Bootstrap Primaries */
.text-primary {
    color: var(--primary) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.border-primary {
    border-color: var(--primary) !important;
}

.btn-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.btn-primary:hover {
    background-color: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
}

.container-fluid {
    margin: 0px !important;
    padding: 0px !important;
}

html,
body {
    font-family: "Inter", "Outfit", Verdana, sans-serif !important;
}

/* sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 260px;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border);
    z-index: 10000;
    transition: all 0.5s ease;
}

.page-wrapper {
    margin-left: 260px;
    margin-top: 53px;
    transition: all 0.5s ease;
}

.sidebar.close~.page-wrapper {
    margin-left: 78px;
}

@media (max-width: 991px) {
    .page-wrapper {
        margin-left: 0 !important;
    }
}

.sidebar.close {
    width: 78px;
}

.sidebar .logo-details {
    height: 70px;
    width: 100%;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 1px solid var(--border);
    background: #fff;
}

.sidebar.close .logo-details img {
    height: 35px;
}

.sidebar .logo-details i.toggle-sidebar-btn {
    position: absolute;
    right: 15px;
    font-size: 18px;
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition);
    display: none;
    /* Hidden on desktop by default in some views, but let's see */
}

@media (max-width: 991px) {
    .sidebar .logo-details i.toggle-sidebar-btn {
        display: block;
    }
}

.sidebar .logo-details .logo_name {
    display: none;
    /* No name needed as per earlier request */
}

.sidebar.close .logo-details .logo_name {
    transition-delay: 0s;
    opacity: 0;
    pointer-events: none;
}

.sidebar .nav-links {
    height: 100%;
    padding: 0 0 150px 0;
    overflow: auto;
}

.logo-details a {
    text-decoration: none;
    display: flex;
}

.sidebar.close .nav-links {
    overflow: visible;
}

.sidebar .nav-links::-webkit-scrollbar {
    display: none;
}

.sidebar .nav-links li {
    position: relative;
    list-style: none;
    transition: all 0.4s ease;
}

.sidebar .nav-links li:hover {
    background: #f8fafc;
}

.sidebar .nav-links li.active {
    background: rgba(0, 166, 81, 0.08);
    /* light green bg for active */
    border-right: 3px solid var(--primary);
}

.sidebar .nav-links li i {
    color: var(--text-muted);
}

.sidebar .nav-links li .link_name {
    color: var(--text-main);
}

.sidebar .nav-links li.active i,
.sidebar .nav-links li.active .link_name {
    color: var(--primary) !important;
    font-weight: 600 !important;
}

.sidebar .nav-links li .iocn-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar.close .nav-links li .iocn-link {
    display: block;
}

.sidebar .nav-links li i {
    height: 40px;
    min-width: 60px;
    text-align: center;
    line-height: 40px;
    color: var(--text-muted);
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sidebar .nav-links li.showMenu i.arrow {
    transform: rotate(-180deg);
}

.sidebar.close .nav-links i.arrow {
    display: none;
}

.sidebar .nav-links li a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.sidebar .nav-links li a {
    text-transform: capitalize;
}

.sidebar .nav-links li a .link_name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
    transition: all 0.4s ease;
}

.sidebar.close .nav-links li a .link_name {
    opacity: 0;
    pointer-events: none;
}

.sidebar .nav-links li .sub-menu {
    padding: 6px 0 14px 0;
    margin-top: 0;
    transition: all 0.3s ease;
    background: #f8fafc !important;
    /* Light background for open state */
    display: none;
}

.sidebar .nav-links li.showMenu .sub-menu {
    display: block;
}

.sidebar .nav-links li .sub-menu a {
    color: var(--text-muted) !important;
    font-size: 14px;
    padding: 10px 15px 10px 65px !important;
    white-space: nowrap;
    transition: all 0.3s ease;
    display: block;
    text-decoration: none;
    font-weight: 500;
    position: relative;
}

.sidebar .nav-links li .sub-menu a:hover::before,
.sidebar .nav-links li .sub-menu li.active a::before {
    width: 12px;
    background: var(--primary);
    opacity: 1;
}

.sidebar .nav-links li .sub-menu a:hover {
    color: var(--primary) !important;
    background: rgba(0, 166, 81, 0.05);
}

.sidebar .nav-links li .sub-menu li.active a {
    color: var(--primary) !important;
    font-weight: 600 !important;
    background: rgba(0, 166, 81, 0.1) !important;
}

/* Floating submenu when sidebar is closed */
.sidebar.close .nav-links li .sub-menu {
    position: absolute;
    left: 100%;
    top: -10px;
    margin-top: 0;
    padding: 10px 20px;
    border-radius: 0 12px 12px 0;
    opacity: 0;
    display: block;
    pointer-events: none;
    transition: 0s;
    background: var(--text-main) !important;
    /* Dark background for floating menu */
    box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.1);
}

.sidebar.close .nav-links li .sub-menu a {
    color: rgba(255, 255, 255, 0.8) !important;
    padding: 10px 0 !important;
    font-size: 14px;
}

.sidebar.close .nav-links li .sub-menu a:hover {
    color: #fff !important;
    background: none;
}

.sidebar.close .nav-links li:hover .sub-menu {
    top: 0;
    opacity: 1;
    pointer-events: auto;
    transition: all 0.4s ease;
}

.sidebar .nav-links li .sub-menu .link_name {
    display: none;
}

.sidebar.close .nav-links li .sub-menu .link_name {
    font-size: 15px;
    opacity: 1;
    display: block;
    color: var(--bs-white);
}

.sidebar .nav-links li .sub-menu.blank {
    opacity: 1;
    pointer-events: auto;
    padding: 3px 20px 6px 16px;
    opacity: 0;
    pointer-events: none;
}

.sidebar .nav-links li:hover .sub-menu.blank {
    top: 50%;
    transform: translateY(-50%);
}

.sidebar .profile-details {
    position: absolute;
    bottom: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #cac7ec;
    padding: 0.5rem;
    left: 0;
    transition: all 0.5s ease;
}

.sidebar.close .profile-details {
    background: none;
    width: 78px;
}

.sidebar .profile-details .profile-content {
    display: flex;
    align-items: center;
}

.sidebar .profile-details img {
    height: 52px;
    width: 52px;
    object-fit: cover;
    border-radius: 16px;
    margin: 0 14px 0 12px;
    background: #1d1b31;
    transition: all 0.5s ease;
}

.sidebar.close .profile-details img {
    padding: 10px;
}

.sidebar .profile-details .profile_name,
.sidebar .profile-details .job {
    color: var(--bs-white);
    font-size: 18px;
    font-weight: 500;
    white-space: nowrap;
    text-transform: capitalize;
}

.sidebar.close .profile-details i,
.sidebar.close .profile-details .profile_name,
.sidebar.close .profile-details .job {
    display: none;
}

.sidebar .profile-details .job {
    font-size: 12px;
}

.home-section {
    padding: 10px;
    margin-top: 53px;
    min-height: calc(100vh - 53px);
    background: #eef0f8;
}

.sidebar.close~.app-top-bar {
    /* left: 78px;
  width: calc(100% - 78px); */
    left: 78px;
}

.profile-details i {
    height: 50px;
    min-width: 78px;
    text-align: center;
    line-height: 50px;
    color: var(--bs-white);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* app-top-bar responsive adjustment */
.sidebar.close~.page-wrapper {
    margin-left: 78px;
}

.toggle-sidebar-btn {
    width: 2.2rem;
    height: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.toggle-sidebar-btn i {
    color: var(--text-main) !important;
    font-size: 1.1rem !important;
}

.toggle-sidebar-btn:hover {
    background: #f1f5f9;
    border-color: var(--primary);
}

.toggle-sidebar-btn:hover i {
    color: var(--primary) !important;
}

.app-slider {
    margin: 0 0 2rem 0;
}

.page-wrapper .home-section .app-slider .carousel .carousel-inner {
    height: 18rem;
}

.page-wrapper .home-section .app-slider .carousel .carousel-inner .carousel-item {
    height: 100%;
}

.page-wrapper .home-section .app-slider .carousel .carousel-inner .carousel-item img {
    height: 100%;
    object-fit: cover;
}

/* overview-card */
.overview-card {
    margin: 2rem 0;
}

.overview-card .card .card-body ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.overview-card .card {
    width: 100%;
    border: 0;
    border-width: 3px !important;
    box-shadow: var(--bs-box-shadow-sm);
}

.overview-card .card .card-body ul li p {
    margin-bottom: 0.25rem;
    color: var(--bs-secondary);
}

.overview-card .card .card-body ul li h4 {
    margin-bottom: 0;
    font-weight: 600;
}

.overview-card .card .card-body ul li .overview-card-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-white);
    font-size: 30px;
    border-radius: var(--bs-border-radius-lg);
}

/* recent-transactions */
.recent-transactions {
    margin: 2rem 0;
}

.card {
    border: 0;
    box-shadow: var(--bs-box-shadow-sm);
}

.recent-transactions .card .card-body .card-title {
    margin-bottom: 1rem;
}

/* app-table */
.app-table table thead tr th {
    font-size: 14px;
    font-weight: 500;
}

.app-table table {
    margin-bottom: 0;
}

.app-table table tbody tr td {
    font-size: 14px;
    color: var(--bs-secondary);
    text-wrap: nowrap;
    text-transform: capitalize;
}

.app-table table tbody tr td .btn {
    padding: 0;
    border: 0;
    text-transform: capitalize;
    font-weight: 500;
}

/* app-top-bar */
.app-top-bar {
    position: fixed;
    top: 0;
    left: 260px;
    right: 0;
    height: 53px;
    background: var(--topbar-bg) !important;
    border-bottom: 1px solid var(--border);
    z-index: 9999;
    transition: all 0.5s ease;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.welcome-text {
    font-size: 0.95rem;
    font-weight: 500;
}

.sidebar.close~.app-top-bar {
    left: 78px;
}

.desktop-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    cursor: pointer;
    margin-right: 15px;
    transition: var(--transition);
}

.user-header-avatar {
    background-color: #ffffff !important;
    color: var(--primary) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.user-header-avatar:hover {
    transform: scale(1.05);
    background-color: #f8fafc !important;
}

.navbar {
    --bs-navbar-padding-x: 0;
    --bs-navbar-padding-y: 0 !important;
}

.app-top-bar .navbar .collapse .navbar-nav .nav-item .nav-link {
    color: var(--bs-white);
    font-size: 15px;
}

.app-top-bar .navbar .collapse form .form-control {
    background-color: white;
    color: black;
    box-shadow: none;
    border-color: var(--bs-white);
}

.app-top-bar .navbar .collapse form .form-control::placeholder {
    color: var(--bs-white);
}

.app-top-bar .navbar .collapse marquee {
    color: var(--bs-white);
    font-size: 15px;
}

.app-top-bar .navbar .collapse .navbar-nav .dropdown-menu {
    animation: 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) 0s normal forwards 1 animdropdown;
    width: 162px;
    left: -102px;
    padding: 0.5rem;
    border: 0;
    box-shadow: var(--bs-box-shadow-sm);
    margin: 0;
    border-radius: var(--bs-border-radius-lg);
}

@keyframes animdropdown {
    0% {
        -webkit-transform: translate3d(0, 6px, 0);
        transform: translate3d(0, 6px, 0);
        opacity: 0;
    }

    100% {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        opacity: 1;
    }
}

.app-top-bar .navbar .collapse .navbar-nav .dropdown-menu::after {
    content: "";
    width: 13px;
    height: 13px;
    background: #fff;
    position: absolute;
    top: -7px;
    right: 16px;
    transform: rotate(45deg);
    border-top: 1px solid #ddd;
    border-left: 1px solid #ddd;
}

.app-top-bar .navbar .collapse .navbar-nav .dropdown-menu .card {
    border: 0;
    margin-bottom: 0.5rem;
}

.app-top-bar .navbar .collapse .navbar-nav .dropdown-menu .card:last-of-type {
    margin-bottom: 0;
}

.app-top-bar .navbar .collapse .navbar-nav .dropdown-menu .card .card-body ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.app-top-bar .navbar .collapse .navbar-nav .dropdown-menu .card .card-body ul li p {
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    font-size: 14px;
}

.app-top-bar .navbar .collapse .navbar-nav .dropdown-menu .card .card-body ul li h5 {
    margin-bottom: 0.25rem;
    text-transform: capitalize;
}

.app-top-bar .navbar .collapse .navbar-nav .dropdown-menu .card .card-body ul li p:last-of-type i {
    margin-right: 0.25rem;
    vertical-align: middle;
}

.app-top-bar .navbar .collapse .navbar-nav .dropdown-menu .card .card-body ul li p:last-of-type {
    margin-bottom: 0;
}

.app-top-bar .navbar .collapse .navbar-nav .dropdown-menu .card .card-body ul li .widgets-icons {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-white);
    font-size: 30px;
    border-radius: var(--bs-border-radius-lg);
}

/* app-breadcrumb */
.app-breadcrumb .breadcrumb .breadcrumb-item a {
    text-decoration: none;
    color: var(--bs-primary);
}

.app-breadcrumb .breadcrumb .breadcrumb-item {
    text-transform: capitalize;
}

.app-breadcrumb .breadcrumb {
    margin-bottom: 0.5rem;
}

.app-breadcrumb h6 {
    margin-bottom: 0;
    text-transform: uppercase;
}

.app-breadcrumb {
    margin-bottom: 1rem;
}

.app-filter .btn {
    border-radius: 2px;
    text-transform: capitalize;
}

.app-offcanvas .offcanvas .offcanvas-header .offcanvas-title {
    text-transform: capitalize;
}

.app-offcanvas .offcanvas .offcanvas-body .offcanvas-table .table tbody tr th {
    font-size: 14px;
    font-weight: 500;
    text-transform: capitalize;
}

.app-offcanvas .offcanvas .offcanvas-body .offcanvas-table .table tbody tr td {
    font-size: 14px;
    color: var(--bs-secondary);
    text-transform: capitalize;
}

.width-fixed {
    margin-left: 70px !important;
}

/* ==================== MOBILE RESPONSIVE SIDEBAR ==================== */

/* Backdrop overlay for mobile sidebar */
.sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    /* Just below sidebar but above all content */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-backdrop.active {
    display: block;
    opacity: 1;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {

    /* Hide sidebar by default on mobile */
    .sidebar {
        position: fixed;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        width: 260px;
        z-index: 1000 !important;
        /* Increased z-index to overlay above content */
        top: 0;
        left: 0;
        height: 100%;
    }

    /* Show sidebar when active */
    .sidebar.active {
        transform: translateX(0);
    }

    /* Remove the close state behavior on mobile */
    .sidebar.close {
        transform: translateX(-100%);
        width: 260px;
    }

    .sidebar.close.active {
        transform: translateX(0);
    }

    /* Adjust page-wrapper for mobile - no left margin */
    .page-wrapper {
        margin-left: 0 !important;
        margin-top: 60px;
        padding: 0.75rem !important;
        width: 100% !important;
        position: relative;
        z-index: 1;
        /* Lower z-index than sidebar */
    }

    /* Adjust app-top-bar for mobile - full width */
    .app-top-bar {
        left: 0 !important;
        width: 100% !important;
        z-index: 10;
        /* Below sidebar but above content */
    }

    /* Hide default bootstrap navbar toggler on mobile */
    .navbar-toggler {
        display: none !important;
    }

    /* Home section responsive */
    .home-section {
        padding: 0 !important;
        width: 100%;
        position: relative;
        z-index: 1;
        /* Lower z-index than sidebar */
    }

    /* Ensure sidebar content is visible when opened */
    .sidebar.active .logo-details .logo_name {
        opacity: 1;
        pointer-events: auto;
    }

    .sidebar.active .nav-links li a .link_name {
        opacity: 1;
        pointer-events: auto;
    }

    /* Keep toggle button visible and functional */
    .toggle-sidebar-btn {
        display: none !important;
    }

    /* Ensure sidebar stays at full width on mobile */
    .sidebar.close .nav-links li a .link_name {
        opacity: 1;
        pointer-events: auto;
    }

    /* Fix submenu on mobile */
    .sidebar.close .nav-links li .sub-menu {
        position: relative;
        left: 0;
        opacity: 1;
        pointer-events: auto;
        padding: 0px 0px 0px 60px;
        margin-top: 0;
        border-radius: 0;
    }

    /* Hide the close state submenu link name behavior */
    .sidebar.close .nav-links li .sub-menu .link_name {
        display: none;
    }

    /* When sidebar is active (open), show all content */
    .sidebar.active.close {
        width: 260px;
    }

    /* ========== Content Area Responsive Styles ========== */

    .row {
        margin-left: -0.5rem !important;
        margin-right: -0.5rem !important;
    }

    /* Card responsiveness */
    .card {
        margin-bottom: 1rem;
    }

    .card-body {
        padding: 0.75rem !important;
    }

    /* Tables - horizontal scroll */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table {
        font-size: 16px !important;
    }

    th,
    td {
        padding: 0.5rem !important;
        font-size: 16px !important;
    }

    /* Buttons */
    .btn {
        padding: 0.5rem 1rem !important;
        font-size: 17px !important;
    }

    /* Headings - Increased Sizes */
    h1,
    .h1 {
        font-size: 2.25rem !important;
    }

    h2,
    .h2 {
        font-size: 2rem !important;
    }

    h3,
    .h3 {
        font-size: 1.75rem !important;
    }

    h4,
    .h4 {
        font-size: 1.5rem !important;
    }

    h5,
    .h5 {
        font-size: 1.25rem !important;
    }

    h6,
    .h6 {
        font-size: 1.1rem !important;
    }

    /* Overview cards */
    .overview-card {
        margin: 1rem 0;
    }

    .overview-card .card .card-body ul {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.5rem;
    }

    /* App slider */
    .app-slider .carousel .carousel-inner {
        height: 200px !important;
    }

    /* Base body text size */
    body {
        font-size: 18px !important;
    }

    /* Paragraph and general text */
    p,
    span,
    div,
    label {
        font-size: 18px !important;
    }

    /* Form floating labels */
    .form-floating>label {
        font-size: 14px !important;
    }

    /* Text wrapping */
    .text-wrap-mobile {
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

    /* Full width on mobile */
    .full-width-mobile {
        width: 100% !important;
    }

    /* Spacing adjustments */
    .mb-3,
    .my-3 {
        margin-bottom: 0.75rem !important;
    }

    .mt-3,
    .my-3 {
        margin-top: 0.75rem !important;
    }

    .p-3 {
        padding: 0.75rem !important;
    }

    /* Grid cols - stack on mobile */
    .col-md-6,
    .col-md-4,
    .col-md-3,
    .col-lg-6,
    .col-lg-4,
    .col-lg-3 {
        width: 100% !important;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 576px) {
    .heading-color {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    #searchInput {
        width: 100% !important;
        max-width: 100% !important;
    }

    .heading-color button {
        margin-top: 5px;
    }
}

/* Custom Global Modal Style */
.modal-header {
    background-color: #111;
    padding: 7px 15px !important;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header .modal-title {
    color: white !important;
    margin-bottom: 0;
}

/* Make default Bootstrap close button white */
.modal-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 1;
    background-size: 1em;
}

/* Support for custom icon if used instead of button */
.modal-header i {
    color: white !important;
    cursor: pointer;
}

.form-label {
    font-size: 14px !important;
    margin-bottom: 0 !important;
}

.form-control,
.form-select {
    padding: 4px 10px !important;
    font-size: 14px !important;
}

.col-md-4 .col-md-3 .col-md-2 .col-md-1 .col-md-12 .col-lg-6 {
    margin-bottom: 8px !important;
}

input[type="file"].form-control {
    display: block !important;
    height: auto !important;
    padding: 6px 10px !important;
}

/* Custom Tabs Style */
.custom-tabs .nav-link {
    color: #555;
    border: 1px solid #dee2e6;
    background: #fff;
    padding: 2px 10px;
    font-weight: 500;
    border-radius: 4px;
    margin-right: 8px;
    transition: all 0.2s;
}

.custom-tabs .nav-link:hover {
    border-color: #bc1424;
    color: #bc1424;
    background: #f8f9fa;
}

.custom-tabs .nav-link.active {
    background: linear-gradient(to right, black, red, black) !important;
    color: white !important;
    border-color: #000 !important;
}

/* Extra Extra Small Button */
.btn-xxs {
    padding: 2px 5px !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    border-radius: 3px !important;
}

/* Clean Cards & Premium Components */
.glass-card {
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.stat-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Custom Unified Button System */
.btn-custom-save,
.btn-primary,
button[type="submit"]:not(.heading-color button) {
    background: var(--primary) !important;
    color: white !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 6px 24px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    transition: var(--transition) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    cursor: pointer;
}

.btn-custom-save:hover,
.btn-primary:hover,
button[type="submit"]:hover {
    background: var(--primary-light) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15) !important;
}

.btn-custom-cancel,
.btn-secondary,
.btn-dark {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    padding: 6px 24px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    transition: var(--transition) !important;
}

.btn-custom-cancel:hover,
.btn-secondary:hover {
    background: #e2e8f0 !important;
    color: #1e293b !important;
}

/* Custom Back Button - Yellow Theme */
.btn-custom-back {
    background: #fdb913 !important;
    color: #000 !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 4px 16px !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition) !important;
    text-decoration: none !important;
}

.btn-custom-back:hover {
    background: #e5a500 !important;
    color: #000 !important;
}

.btn-custom-back::before {
    content: "\f060";
    /* FontAwesome arrow-left */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

/* Success & Action Variants */
.btn-success {
    background: #10b981 !important;
    border: none !important;
    color: white !important;
}

.btn-info {
    background: #0ea5e9 !important;
    color: white !important;
    border: none !important;
}

.btn-warning {
    background: #f59e0b !important;
    color: white !important;
    border: none !important;
}

.btn-danger {
    background: #ef4444 !important;
    color: white !important;
    border: none !important;
}

/* Compact Report & Table Styling */
.table {
    width: 100% !important;
    margin-bottom: 0 !important;
}

.table thead th {
    background: #f8fafc !important;
    color: #475569 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 11px !important;
    letter-spacing: 0.05em !important;
    padding: 6px 8px !important;
    border: 1px solid #cbd5e1 !important;
    vertical-align: middle !important;
}

.table tbody td {
    padding: 4px 8px !important;
    vertical-align: middle !important;
    color: #334155 !important;
    font-size: 12.5px !important;
    border: 1px solid #cbd5e1 !important;
}

/* Premium Attractive & Compact Table Utility */
.table-premium {
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

.table-premium thead th {
    background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%) !important;
    border-bottom: 2px solid var(--primary) !important;
    color: #1e293b !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    border-top: 1px solid #e2e8f0 !important;
    padding: 5px 6px !important;
    font-size: 10.5px !important;
}

.table-premium thead th:first-child {
    border-left: 1px solid #e2e8f0 !important;
}

.table-premium thead th:last-child {
    border-right: 1px solid #e2e8f0 !important;
}

.table-premium tbody td {
    white-space: nowrap !important;
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 3px 6px !important;
    font-size: 11.5px !important;
}

.table-premium tbody tr:nth-child(even) {
    background: rgba(248, 250, 252, 0.6) !important;
}

.table-premium tbody tr:hover {
    background-color: rgba(0, 166, 81, 0.04) !important;
    transition: all 0.2s ease;
}

.table-premium tbody tr:hover td {
    color: #000 !important;
}

.table-premium tfoot td {
    border-top: 2px solid #e2e8f0 !important;
    border-bottom: 1px solid #e2e8f0 !important;
    background: #f8fafc !important;
}

.table-premium tfoot td:first-child {
    border-left: 1px solid #e2e8f0 !important;
}

.table-premium tfoot td:last-child {
    border-right: 1px solid #e2e8f0 !important;
}

/* Soft Status Badges - The Trend */
.badge-soft-success {
    background: rgba(16, 185, 129, 0.12) !important;
    color: #059669 !important;
    border: 1px solid rgba(16, 185, 129, 0.2) !important;
}

.badge-soft-warning {
    background: rgba(245, 158, 11, 0.12) !important;
    color: #d97706 !important;
    border: 1px solid rgba(245, 158, 11, 0.2) !important;
}

.badge-soft-danger {
    background: rgba(239, 68, 68, 0.12) !important;
    color: #dc2626 !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
}

.badge-soft-info {
    background: rgba(14, 165, 233, 0.12) !important;
    color: #0284c7 !important;
    border: 1px solid rgba(14, 165, 233, 0.2) !important;
}

.badge-soft-secondary {
    background: rgba(100, 116, 139, 0.12) !important;
    color: #475569 !important;
    border: 1px solid rgba(100, 116, 139, 0.2) !important;
}

.table-nowrap th,
.table-nowrap td {
    white-space: nowrap !important;
}

/* Compact Status Badges */
.badge {
    padding: 2px 6px !important;
    font-weight: 600 !important;
    font-size: 10px !important;
    border-radius: 4px !important;
    text-transform: uppercase !important;
}

.bg-success {
    background-color: #10b981 !important;
    color: white !important;
    border: none !important;
}

.bg-danger {
    background: #ef4444 !important;
    color: white !important;
    border: none !important;
}

.bg-warning {
    background-color: #f59e0b !important;
    color: white !important;
    border: none !important;
}

/* Compact Rectangular Action Icons */
.table .btn-sm {
    padding: 4px 8px !important;
    font-size: 11px !important;
    border-radius: 4px !important;
    margin: 0 2px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    border: none !important;
    /* color: white !important; */
}

.table .btn-sm i {
    color: white !important;
    font-size: 14px !important;
    display: inline-block !important;
}

.table .btn-info {
    background: #0ea5e9 !important;
}

.table .btn-warning {
    background: #f59e0b !important;
}

.table .btn-secondary {
    background: #64748b !important;
}

.table .btn-danger {
    background: #ef4444 !important;
}

.table .btn-sm:hover {
    opacity: 0.9 !important;
    transform: scale(1.05);
}

.table .btn-warning:hover {
    background: #f59e0b !important;
    color: white !important;
}

.table .btn-secondary:hover {
    background: #64748b !important;
    color: white !important;
}

.table .btn-danger:hover {
    background: #ef4444 !important;
    color: white !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animate-fade-in {
    animation: fadeIn 0.4s ease forwards;
}

/* Custom Nav Styles */
.authcss {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main) !important;
    font-size: 13px;
    border-radius: var(--radius-md);
    transition: var(--transition);
    text-decoration: none;
    padding: 8px 15px;
}

.authcss:hover {
    background: #f1f5f9;
    color: var(--primary) !important;
}

/* Ultra-Compact Form Design */
.compact-form .form-group {
    margin-bottom: 0px !important;
    /* Zero spacing between rows */
}

.compact-form label {
    font-size: 11.5px !important;
    font-weight: 700 !important;
    color: #334155 !important;
    margin-bottom: 1px !important;
    display: block !important;
    text-transform: uppercase;
}

.compact-form .form-control,
.compact-form .form-select {
    padding: 2px 8px !important;
    font-size: 13px !important;
    border-radius: 4px !important;
    border: 1px solid #cbd5e1 !important;
    height: 28px !important;
}

.compact-form textarea.form-control {
    height: auto !important;
    min-height: 50px !important;
}

.form-section-title {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: var(--primary) !important;
    padding-bottom: 2px !important;
    margin-bottom: 4px !important;
    border-bottom: 1.5px solid #64748b !important;
    width: 100%;
}

.compact-form .row {
    margin-left: -5px !important;
    margin-right: -5px !important;
    margin-bottom: 12px !important;
    /* Zero margin bottom for extra compactness */
}

.compact-form [class*="col-"],
.col-lg-3.col-md-6 {
    padding-left: 5px !important;
    padding-right: 5px !important;
    padding-bottom: 0px !important;
}

/* Form Action Container */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 0.5rem;
    padding: 6px 15px;
    border-top: 1px solid #e2e8f0;
}

.custom-card {
    min-height: calc(105vh - 150px) !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 13px !important;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 2px 4px -1px rgba(0, 0, 0, 0.03) !important;
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
}

.custom-card .card-body {
    flex: 1;
}

.custom-card .heading-color {
    background: #fff !important;
    color: var(--primary) !important;
    padding: 8px 15px !important;
    font-weight: 800 !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    letter-spacing: 1.2px !important;
    border-radius: 13px 13px 0 0 !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid rgba(0, 166, 81, 0.2) !important;
    position: sticky !important;
    top: 53px !important;
    z-index: 990 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.heading-color .btn,
.heading-color button,
.heading-color a.btn {
    padding: 4px 14px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    text-transform: capitalize !important;
}

/* Default state for header buttons - outline style */
.heading-color .btn:not(.btn-primary):not(.btn-custom-back),
.heading-color a.btn:not(.btn-primary):not(.btn-custom-back) {
    background: #ffffff !important;
    color: var(--primary) !important;
    border: 1px solid rgba(0, 166, 81, 0.3) !important;
}

/* Primary/Success Header Buttons - Green */
.heading-color .btn-primary,
.heading-color .btn-success,
.heading-color a.btn-primary {
    background: var(--primary) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 4px 6px rgba(0, 166, 81, 0.15) !important;
}

.heading-color .btn-primary:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(0, 166, 81, 0.2) !important;
}

/* Back Button - Yellow */
.heading-color .btn-custom-back {
    background: #fdb913 !important;
    color: #000 !important;
    border: none !important;
    box-shadow: 0 4px 6px rgba(253, 185, 19, 0.15) !important;
    text-transform: none !important;
}

.heading-color .btn-custom-back:hover {
    background: #e5a500 !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(253, 185, 19, 0.2) !important;
}

.desktop-toggle-btn,
.toggle-sidebar-btn {
    color: var(--text-main) !important;
    cursor: pointer;
    transition: var(--transition);
}

.desktop-toggle-btn:hover,
.toggle-sidebar-btn:hover {
    color: var(--primary) !important;
    transform: scale(1.1);
}

/* Specific variants for header buttons - matching original compact dimensions */
.btn-header-green,
.btn-header-yellow {
    padding: 4px 12px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    text-transform: capitalize !important;
    transition: all 0.2s ease !important;
    border: 1px solid transparent !important;
    text-decoration: none !important;
}

.btn-header-green {
    background: var(--primary) !important;
    color: white !important;
}

.btn-header-yellow {
    background: #fdb913 !important;
    color: white !important;
    border: 1px solid white !important;
}

.btn-header-green:hover,
.btn-header-yellow:hover {
    opacity: 0.9 !important;
    transform: translateY(-1px);
    color: white !important;
}

/* Select2 Custom Styling for Compact Form */
.select2-container--default .select2-selection--single {
    background-color: #fff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 4px !important;
    height: 28px !important;
    font-size: 13px !important;
    transition: border-color 0.2s;
}

.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 2px rgba(8, 68, 104, 0.1) !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--text-main) !important;
    line-height: 26px !important;
    padding-left: 8px !important;
}

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

.select2-dropdown {
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
    border-radius: 6px !important;
    z-index: 999999 !important;
    overflow: hidden;
}

.select2-container--default .select2-search--dropdown {
    padding: 6px !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #e2e8f0 !important;
    border-radius: 4px !important;
    padding: 4px 8px !important;
    font-size: 12px !important;
    outline: none !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: var(--primary) !important;
}

.select2-results__option {
    font-size: 12.5px !important;
    padding: 5px 10px !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--primary) !important;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #94a3b8 !important;
    font-size: 12px !important;
}

/* Uniform styling for non-searchable selects (like Status) */
.form-select:not(.select2-hidden-accessible) {
    height: 28px !important;
    padding: 2px 25px 2px 8px !important;
    font-size: 13px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 4px !important;
    background-color: #fff !important;
    cursor: pointer;
}

.form-select:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 2px rgba(8, 68, 104, 0.1) !important;
}

/* Ultra-Compact Modal UI */
.modal-content {
    border: none !important;
    border-radius: 8px !important;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
}

.modal-header {
    background: var(--primary) !important;
    color: white !important;
    padding: 10px 15px !important;
    border-bottom: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    /* Ensure separation */
    min-height: 50px;
}

.modal-title {
    font-size: 16px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    line-height: normal !important;
}

.modal-header .btn-close {
    background-color: transparent !important;
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 1 !important;
    font-size: 12px;
    margin: 0 !important;
    padding: 0.5rem !important;
    box-shadow: none !important;
}

.modal-body {
    padding: 12px 15px !important;
    background: #ffffff;
}

/* Detail Styling inside Modal - Ultra Compact */
.modal-body p,
.modal-body .row>div {
    margin-bottom: 6px !important;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 2px;
}

.modal-body strong {
    color: #94a3b8;
    font-size: 9px;
    text-transform: uppercase;
    display: block;
    font-weight: 700;
    margin-bottom: 0px;
    letter-spacing: 0.05em;
}

.modal-body .detail-value,
.modal-body span:not(.badge) {
    color: var(--text-main);
    font-weight: 600;
    font-size: 12.5px;
    display: block;
    /* line-height: 1.2; */
}

.modal-body .badge {
    padding: 2px 6px !important;
    font-size: 10px !important;
    margin-top: 2px;
}

/* Soft Background Utilities */
.bg-primary-soft {
    background-color: rgba(8, 68, 104, 0.1) !important;
    color: var(--primary) !important;
}

.bg-success-soft {
    background-color: rgba(25, 135, 84, 0.1) !important;
    color: #198754 !important;
}

.bg-warning-soft {
    background-color: rgba(255, 193, 7, 0.1) !important;
    color: #997404 !important;
}

.bg-danger-soft {
    background-color: rgba(220, 53, 69, 0.1) !important;
    color: #dc3545 !important;
}

.bg-info-soft {
    background-color: rgba(13, 202, 240, 0.1) !important;
    color: #0dcaf0 !important;
}

.badge-soft {
    border: none;
    font-weight: 600;
}

.smallest {
    font-size: 10px !important;
}

.btn-action {
    /* width: 74px;
    height: 32px; */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.btn-action.view {
    background: rgba(0, 166, 81, 0.1);
    color: #00a651;
}

.btn-action.edit {
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-action.view:hover {
    background: #00a651;
    color: white;
}

.btn-action.edit:hover {
    background: #0d6efd;
    color: white;
}

.btn-action-compact {
    width: 25px !important;
    height: 25px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 5px;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none !important;
}

.btn-action-compact i {
    font-size: 11.5px !important;
}

.btn-action-compact.view {
    background: #00a651 !important;
    color: white !important;
    box-shadow: 0 2px 4px rgba(0, 166, 81, 0.2);
}

.btn-action-compact.edit {
    background: #0ea5e9 !important;
    color: white !important;
    box-shadow: 0 2px 4px rgba(14, 165, 233, 0.2);
}

.btn-action-compact.bg-danger {
    background: #ef4444 !important;
    color: white !important;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
}

.btn-action-compact:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    filter: brightness(1.1);
}

.btn-add-item {
    background: rgba(0, 166, 81, 0.08) !important;
    color: var(--primary) !important;
    border: 1.5px dashed var(--primary) !important;
    font-weight: 700 !important;
    padding: 6px 20px !important;
    border-radius: 8px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-size: 13px !important;
}

.btn-add-item:hover {
    background: var(--primary) !important;
    color: white !important;
    border-style: solid !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 166, 81, 0.2);
}
