﻿/* Custom Bootstrap Color Overrides */

/* Primary Color */
:root {
    --bs-primary: #FFFFFF;
    --bs-primary-rgb: 80, 46, 145;
    --bs-secondary: #502E91;
    --bs-secondary-rgb: 255, 255, 255;
    --bs-dark: #424242;
    --bs-dark-rgb: 31, 31, 31;
    --bs-light: #9F7FC9; /* #eeecac */
    --bs-light-rgb: 238, 236, 172;
    --bs-muted: #9f9740;
    --bs-muted-rgb: 159, 151, 64;
    --bs-danger: #dc3545; /* Recommended Danger Color */
    --bs-danger-rgb: 220, 53, 69;
    --bs-warning: #ffc107; /* Recommended Warning Color */
    --bs-warning-rgb: 255, 193, 7;
    --bs-info: #0dcaf0;
    --bs-info-rgb: 13, 202, 240;
    --bs-success: #198754;
    --bs-success-rgb: 25, 135, 84;
    --bs-white: #fff;
    --bs-white-rgb: 255, 255, 255;
    --bs-gray: #6c757d;
    --bs-gray-rgb: 108, 117, 125;
    --bs-gray-dark: #343a40;
    --bs-gray-dark-rgb: 52, 58, 64;
    --bs-black: #000;
    --bs-black-rgb: 0, 0, 0;
    --bs-body-color: #212529;
    --bs-body-bg: #fff;
}
@font-face {
    font-family: 'Avenir';
    src: url('/font/AvenirLTStd-Book.otf') format('opentype'), url('/font/AvenirLTStd-Book.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* Apply Avenir Medium Font */
body, .navbar, .dropdown-menu, .nav-link, .btn, .dropdown-item {
    font-family: 'Avenir', sans-serif !important;
    font-weight: 500 !important;
}
.dropdown-toggle {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    transition: all 0.3s ease !important;
}

.dropdown-toggle:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: white !important;
}
/* Override Bootstrap Classes to Use New Colors */

/* Body */
body {
    background-color: var(--bs-white) !important;
    color: var(--bs-body-color) !important;
}
/*Dropdown divider*/
.divider {    
    background-color: var(--bs-primary) !important;
}
/* Dropdown Menu */
.dropdown-menu {
    background: linear-gradient(135deg, #502E91 0%, #6C489C 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 4px 15px rgba(80, 46, 145, 0.3) !important;
    color: white !important;
}

.dropdown-item {
    color: white !important;
    transition: all 0.3s ease !important;
    padding: 0.5rem 1rem !important;
}
   
.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item.active,
.dropdown-item:active {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
}

/* Ensure dropdown toggle works properly */
.dropdown-toggle[aria-expanded="true"] {
    background-color: rgba(255, 255, 255, 0.2) !important;
}

/* Fix dropdown positioning and visibility */
.dropdown {
    position: relative !important;
}

/* Ensure dropdown items are clickable */
.dropdown-item {
    cursor: pointer !important;
    white-space: nowrap !important;
}


/* Top Navbar Styling - Enhanced with Maximus Brand Colors */
.navbar {
    background: linear-gradient(135deg, #502E91 0%, #6C489C 50%, #9F7FC9 100%) !important;
    box-shadow: 0 4px 15px rgba(80, 46, 145, 0.2) !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1) !important;
    padding: 0.5rem 0 !important;
    transition: all 0.3s ease !important;
}


.navbar-brand {
    font-weight: 700 !important;
    font-size: 1.25rem !important;
    color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.3s ease !important;
}

.navbar-brand:hover {
    transform: scale(1.02) !important;
    color: white !important;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4) !important;
}

.navbar-nav .nav-link {
    font-weight: 600 !important;
    color: white !important;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem !important;
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.15) !important;
    color: white !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

.navbar-nav .nav-link.active {
    background-color: var(--bs-primary) !important;
    color: var(--bs-secondary) !important;
    font-weight: 600 !important;
}

/* Additional active state overrides */
.navbar-nav .nav-link.active,
.navbar-nav .nav-link[aria-current="page"],
.navbar-nav .nav-link[class*="active"] {
    background-color: var(--bs-primary) !important;
    color: var(--bs-secondary) !important;
    font-weight: 600 !important;
}

/* Force active state visibility */
.navbar .nav-link.active {
    background-color: var(--bs-primary) !important;
    color: var(--bs-secondary) !important;
    font-weight: 600 !important;
}

/* Override any inline styles or conflicting CSS */
.navbar .nav-link.active[style*="background-color"],
.navbar .nav-link.active[style*="color"] {
    background-color: var(--bs-primary) !important;
    color: var(--bs-secondary) !important;
    font-weight: 600 !important;
}

/* Ensure active state is visible with high specificity */
.navbar .navbar-nav .nav-item .nav-link.active {
    background-color: var(--bs-primary) !important; 
    color: var(--bs-secondary) !important;
    font-weight: 600 !important;
}

/* Ultra high specificity to override any conflicting styles */
.navbar .navbar-nav .nav-item .nav-link.active,
.navbar .navbar-nav .nav-item .nav-link.active:hover,
.navbar .navbar-nav .nav-item .nav-link.active:focus,
.navbar .navbar-nav .nav-item .nav-link.active:visited {
    background-color: var(--bs-primary) !important;
    color: var(--bs-secondary) !important;
    font-weight: 600 !important;
}

/* Override any Bootstrap or custom classes */
.navbar .nav-link.active,
.navbar .nav-link.active:hover,
.navbar .nav-link.active:focus,
.navbar .nav-link.active:visited,
.navbar .nav-link[class*="active"],
.navbar .nav-link[class*="active"]:hover,
.navbar .nav-link[class*="active"]:focus {
    background-color: var(--bs-primary) !important;
    color: var(--bs-secondary) !important;
    font-weight: 600 !important;
}

/* Force active menu styling with maximum specificity */
.navbar .nav-item .nav-link.active {
    background-color: var(--bs-primary) !important;
    color: var(--bs-secondary) !important;
    font-weight: 600 !important;
}

/* Additional override for any remaining conflicts */
.navbar .nav-link[class*="active"] {
    background-color: var(--bs-primary) !important; 
    color: var(--bs-secondary) !important;
    font-weight: 600 !important;
}

/* Fix dropdown visibility in tables */
.table-responsive {
    overflow: visible !important;
}

.table {
    overflow: visible !important;
}

.table td,
.table th {
    overflow: visible !important;
}

/* Ensure dropdowns can extend beyond table boundaries */
.table .dropdown {
    position: relative !important;
}

.table .dropdown-menu {
    position: absolute !important;
    z-index: 9999 !important;
    max-height: 300px !important;
    overflow-y: auto !important;
}



/* Dropdown Styling - Enhanced for New Navbar */
.navbar .dropdown-menu {
    background: linear-gradient(135deg, #502E91 0%, #6C489C 100%) !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 25px rgba(80, 46, 145, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    max-height: 300px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    margin-top: 0.5rem !important;
}

.navbar .dropdown-item {
    color: white !important;
    padding: 0.5rem 1rem !important;
    transition: all 0.2s ease !important;
    font-weight: 500 !important;
}

.navbar .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.15) !important;
    color: white !important;
    transform: translateX(4px) !important;
}

/* Custom scrollbar for dropdown menus */
.navbar .dropdown-menu::-webkit-scrollbar {
    width: 8px !important;
}

.navbar .dropdown-menu::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1) !important;
    border-radius: 4px !important;
}

.navbar .dropdown-menu::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3) !important;
    border-radius: 4px !important;
}

.navbar .dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.5) !important;
}


/* Form Element Protection - Ensure form dropdowns are not affected by nav styling */
.form-control,
.form-select,
select,
input[type="select"],
.dropdown-menu:not(.navbar .dropdown-menu) {
    font-family: 'Avenir', sans-serif !important;
    font-weight: normal !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    background-color: var(--bs-white) !important;
    color: var(--bs-dark) !important;
    border: 1px solid #ced4da !important;
    border-radius: 0.375rem !important;
    padding: 0.375rem 0.75rem !important;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !important;
}

.form-control:focus,
.form-select:focus,
select:focus {
    border-color: #86b7fe !important;
    outline: 0 !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
}

/* Ensure form dropdowns maintain their original styling */
.dropdown-menu:not(.navbar .dropdown-menu) {
    background-color: var(--bs-white) !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    border-radius: 0.375rem !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.175) !important;
    padding: 0.5rem 0 !important;
    margin: 0 !important;
    min-width: auto !important;
}

.dropdown-item:not(.navbar .dropdown-item) {
    color: var(--bs-primary) !important;
    padding: 0.25rem 1rem !important;
    font-weight: normal !important;
    transition: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    transform: none !important;
    box-shadow: none !important;
}

.dropdown-item:not(.navbar .dropdown-item):hover,
.dropdown-item:not(.navbar .dropdown-item):focus {
    background-color: var(--bs-light) !important;
    color: var(--bs-dark) !important;
    transform: none !important;
    box-shadow: none !important;
}


/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem 0 !important;
}

.nav-link {
        padding: 0.5rem 1rem !important;
        margin: 0.125rem 0 !important;
        font-size: 0.9rem !important;
    }
    
    .dropdown-menu {
        margin-top: 0.25rem !important;
        border-radius: 8px !important;
        max-height: 250px !important;
    }
    
    /* Navbar dropdown scrolling on mobile */
    .navbar .dropdown-menu {
        max-height: 300px !important;
        overflow-y: auto !important;
    }
    }

/* Buttons */
.btn-primary {
    background-color: var(--bs-secondary) !important;
    border-color: var(--bs-primary) !important;
    color: var(--bs-primary) !important;
}

    .btn-primary:hover,
    .btn-primary:focus,
    .btn-primary:active {
        background-color: var(--bs-light) !important;
        border-color: var(--bs-secondary) !important;
        color: var(--bs-white) !important;
    }

.btn-secondary {
    background-color: var(--bs-light) !important;
    border-color: var(--bs-light) !important;
    color: var(--bs-white) !important;
}

    .btn-secondary:hover,
    .btn-secondary:focus,
    .btn-secondary:active {
        background-color: var(--bs-secondary) !important;
        border-color: var(--bs-secondary) !important;
        color: var(--bs-white) !important;
    }

/* Backgrounds */
.bg-primary {
    background-color: var(--bs-light) !important;
}

.bg-primary2 {
    background-color: var(--bs-primary) !important;
}

.bg-secondary {
    background-color: var(--bs-secondary) !important;
}

.bg-dark {
    background-color: var(--bs-dark) !important;
}

.bg-light {
    background-color: var(--bs-light) !important;
}

.bg-muted {
    background-color: var(--bs-muted) !important;
}

/* Text Colors */
.text-primary {
    color: var(--bs-secondary) !important;
}

.text-secondary {
    color: var(--bs-secondary) !important;
}

.text-dark {
    color: var(--bs-dark) !important;
}

.text-light {
    color: var(--bs-primary) !important;
}

.text-muted {
    color: var(--bs-muted) !important;
}

/* Borders */
.border-primary {
    border-color: var(--bs-primary) !important;
}

.border-secondary {
    border-color: var(--bs-secondary) !important;
}

.border-dark {
    border-color: var(--bs-dark) !important;
}

.border-light {
    border-color: var(--bs-light) !important;
}

.border-muted {
    border-color: var(--bs-muted) !important;
}


/* logo image */
@media (min-width: 576px ) and ( max-width:876px){
    .responsive-image {
      max-width:none;
        height:auto;        
    }
    .header-display {
       display:inline-block;
    }   
}
@media (min-width: 768px ) and ( max-width:991px) {
    .login-div {
        width: 90% !important;
    }
}

@media (min-width: 992px ) and ( max-width:1100px) {
    .login-div {
        width: 70% !important;
    }
}
.navbar-toggler {
    background-color: var(--bs-primary) !important;
}

    /* Custom Bootstrap Color Overrides */

    /* Primary Color */
    /*:root {
    --bs-primary: #88dd9f;
    --bs-primary-rgb: 136, 221, 159;
    --bs-secondary: #ec7430;
    --bs-secondary-rgb: 236, 116, 48;
    --bs-dark: #1f1f1f;
    --bs-dark-rgb: 31, 31, 31;
    --bs-light: #eeecac;
    --bs-light-rgb: 238, 236, 172;
    --bs-muted: #9f9740;
    --bs-muted-rgb: 159, 151, 64;
    --bs-danger: #dc3545;*/ /* Recommended Danger Color */
    /*--bs-danger-rgb: 220, 53, 69;
    --bs-warning: #ffc107;*/ /* Recommended Warning Color */
    /*--bs-warning-rgb: 255, 193, 7;
    --bs-info: #0dcaf0;
    --bs-info-rgb: 13, 202, 240;
    --bs-success: #198754;
    --bs-success-rgb: 25, 135, 84;
    --bs-white: #fff;
    --bs-white-rgb: 255, 255, 255;
    --bs-gray: #6c757d;
    --bs-gray-rgb: 108, 117, 125;
    --bs-gray-dark: #343a40;
    --bs-gray-dark-rgb: 52, 58, 64;
    --bs-black: #000;
    --bs-black-rgb: 0, 0, 0;
    --bs-body-color: #212529;
    --bs-body-bg: #fff;
}*/

    /* Apply Chakra Petch Medium Font */
    /*body, .navbar, .dropdown-menu, .nav-link, .btn, .dropdown-item {
    font-family: 'Chakra Petch', sans-serif !important;
    font-weight: 500 !important;
}*/

    /* Override Bootstrap Classes to Use New Colors */

    /* Body */
    /*body {
    background-color: var(--bs-white) !important;
    color: var(--bs-body-color) !important;
}*/

    /* Dropdown Menu */
    /*.dropdown-menu {
    background-color: var(--bs-light) !important;
    color: var(--bs-body-color) !important;
}

.dropdown-item {
    color: var(--bs-body-color) !important;
}

    .dropdown-item:hover,
    .dropdown-item:focus,
    .dropdown-item.active {
        background-color: var(--bs-primary) !important;
        color: var(--bs-white) !important;
    }*/

    /* Active Nav Item */
    /*.nav-link.active {
    background-color: var(--bs-primary) !important;
    color: var(--bs-white) !important;
}

.nav-link {
    color: var(--bs-body-color) !important;
}

    .nav-link:hover,
    .nav-link:focus {
        background-color: var(--bs-secondary) !important;
        color: var(--bs-white) !important;
    }*/

    /* Buttons */
    /*.btn-primary {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    color: var(--bs-white) !important;
}

.btn-secondary {
    background-color: var(--bs-secondary) !important;
    border-color: var(--bs-secondary) !important;
    color: var(--bs-white) !important;
}*/

    /* Backgrounds */
    /*.bg-primary {
    background-color: var(--bs-primary) !important;
}

.bg-secondary {
    background-color: var(--bs-secondary) !important;
}

.bg-dark {
    background-color: var(--bs-dark) !important;
}

.bg-light {
    background-color: var(--bs-light) !important;
}

.bg-muted {
    background-color: var(--bs-muted) !important;
}*/

    /* Text Colors */
    /*.text-primary {
    color: var(--bs-primary) !important;
}

.text-secondary {
    color: var(--bs-secondary) !important;
}

.text-dark {
    color: var(--bs-dark) !important;
}

.text-light {
    color: var(--bs-light) !important;
}

.text-muted {
    color: var(--bs-muted) !important;
}*/

    /* Borders */
    /*.border-primary {
    border-color: var(--bs-primary) !important;
}

.border-secondary {
    border-color: var(--bs-secondary) !important;
}

.border-dark {
    border-color: var(--bs-dark) !important;
}

.border-light {
    border-color: var(--bs-light) !important;
}

.border-muted {
    border-color: var(--bs-muted) !important;
}*/

/* Enhanced Table Styling */
.table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    margin-bottom: 1rem;
    background-color: transparent;
    border-radius: 0.375rem;
    overflow: hidden;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.table thead th {
    background-color: var(--bs-secondary);
    color: white;
    font-weight: 600;
    border: 1px solid var(--bs-secondary);
    padding: 0.75rem;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    position: relative;
    vertical-align: middle;
}

.table thead th:first-child {
    border-top-left-radius: 0.375rem;
}

.table thead th:last-child {
    border-top-right-radius: 0.375rem;
}

.table tbody tr {
    border-bottom: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 0.375rem;
}

.table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 0.375rem;
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border: none;
    border-bottom: 1px solid #dee2e6;
}

/* Professional Button Styling in Tables */
.table .btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
    width: 40px;
    height: 40px;
    margin: 0.125rem;
    border: 1px solid transparent;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    cursor: pointer;
    line-height: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.table .btn-sm {
    width: 35px;
    height: 35px;
    padding: 0.375rem;
    font-size: 0.8rem;
    border-radius: 0.2rem;
}

.table .btn-lg {
    width: 45px;
    height: 45px;
    padding: 0.75rem;
    font-size: 1rem;
    border-radius: 0.3rem;
}

.table .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    text-decoration: none;
}

.table .btn:focus {
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.table .btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* Text buttons - wider for text content */
.table .btn[title*="action"],
.table .btn:contains("action"),
.table .btn[data-original-title*="action"] {
    width: auto;
    min-width: 40px;
    max-width: 80px;
    padding: 0.5rem 0.75rem;
}

/* Icon-only buttons */
.table .btn i,
.table .btn .fa,
.table .btn .fas,
.table .btn .far,
.table .btn .fab {
    font-size: 0.875rem;
    line-height: 1;
}

/* Global Button Styling - Application Wide */
.btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.375rem;
    transition: all 0.2s ease-in-out;
    border: 1px solid transparent;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    cursor: pointer;
    line-height: 1.5;
    min-height: 40px;
    min-width: 80px;
    text-align: center;
    white-space: nowrap;
    user-select: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.btn:focus {
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn:disabled,
.btn.disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Button Sizes */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    min-height: 35px;
    min-width: 70px;
    border-radius: 0.25rem;
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    min-height: 50px;
    min-width: 100px;
    border-radius: 0.5rem;
}

.btn-xl {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    min-height: 60px;
    min-width: 120px;
    border-radius: 0.625rem;
}

/* Button Variants */
.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    color: #fff;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    color: #fff;
}

.btn-secondary {
    background-color: var(--bs-secondary);
    border-color: var(--bs-secondary);
    color: #fff;
}

.btn-secondary:hover {
    background-color: #3d2a6b;
    border-color: #3d2a6b;
    color: #fff;
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
    color: #fff;
}

.btn-success:hover {
    background-color: #1e7e34;
    border-color: #1e7e34;
    color: #fff;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #c82333;
    color: #fff;
}

.btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background-color: #e0a800;
    border-color: #e0a800;
    color: #212529;
}

.btn-info {
    background-color: #17a2b8;
    border-color: #17a2b8;
    color: #fff;
}

.btn-info:hover {
    background-color: #138496;
    border-color: #138496;
    color: #fff;
}

.btn-light {
    background-color: #f8f9fa;
    border-color: #f8f9fa;
    color: #495057;
}

.btn-light:hover {
    background-color: #e9ecef;
    border-color: #e9ecef;
    color: #495057;
}

.btn-dark {
    background-color: #343a40;
    border-color: #343a40;
    color: #fff;
}

.btn-dark:hover {
    background-color: #23272b;
    border-color: #23272b;
    color: #fff;
}

/* Outline Buttons */
.btn-outline-primary {
    color: #007bff;
    border-color: #007bff;
    background: transparent;
}

.btn-outline-primary:hover {
    background: #007bff;
    border-color: #007bff;
    color: #fff;
}

.btn-outline-secondary {
    color: #fff;
    border-color: var(--bs-secondary);
    background: var(--bs-secondary);
}

.btn-outline-secondary:hover {
    background: #fff;
    border-color: var(--bs-secondary);
    color: var(--bs-secondary);
}

/* Icon Buttons */
.btn i,
.btn .fa,
.btn .fas,
.btn .far,
.btn .fab {
    font-size: 0.875rem;
    line-height: 1;
    margin-right: 0.5rem;
}

.btn i:last-child,
.btn .fa:last-child,
.btn .fas:last-child,
.btn .far:last-child,
.btn .fab:last-child {
    margin-right: 0;
    margin-left: 0.5rem;
}

.btn i:only-child,
.btn .fa:only-child,
.btn .fas:only-child,
.btn .far:only-child,
.btn .fab:only-child {
    margin: 0;
}

/* Button Groups */
.btn-group .btn {
    border-radius: 0;
}

.btn-group .btn:first-child {
    border-top-left-radius: 0.375rem;
    border-bottom-left-radius: 0.375rem;
}

.btn-group .btn:last-child {
    border-top-right-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
}

/* Floating Action Buttons */
.btn-floating {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    padding: 0;
    min-width: 60px;
    min-height: 60px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-floating:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Responsive Buttons */
@media (max-width: 768px) {
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        min-height: 35px;
        min-width: 70px;
    }
    
    .btn-sm {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
        min-height: 30px;
        min-width: 60px;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        min-height: 45px;
        min-width: 90px;
    }
}

/* Custom Scrollbar Styling */
.table-responsive::-webkit-scrollbar {
    height: 8px;
    width: 8px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--bs-secondary), var(--bs-primary));
    border-radius: 4px;
    transition: background 0.3s ease;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-secondary));
}

.table-responsive::-webkit-scrollbar-corner {
    background: #f1f1f1;
}

/* DataTables Enhancement */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_processing,
.dataTables_wrapper .dataTables_paginate {
    margin: 1rem 0;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 0.5rem 0.75rem;
    margin: 0 0.125rem;
    border-radius: 0.375rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: linear-gradient(135deg, var(--bs-secondary), var(--bs-primary));
    color: white;
    border-color: var(--bs-secondary);
    transform: translateY(-1px);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: linear-gradient(135deg, var(--bs-secondary), var(--bs-primary));
    color: white;
    border-color: var(--bs-secondary);
}

/* Card Header Styling */
.card-header {
    background-color: #e9ecef;
    color: #495057;
    border: 1px solid #dee2e6;
    padding: 1rem;
    font-weight: 600;
}

/* Table Striped Enhancement */
.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

.table-striped tbody tr:nth-of-type(even) {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Table Hover Enhancement */
.table-hover tbody tr:hover {
    background-color: rgba(var(--bs-secondary-rgb), 0.1);
    color: var(--bs-secondary);
}

/* Remove white space and make table full width */
.container,
.container-fluid,
.table-responsive {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 30px !important;
}

/* Table container adjustments */
.table-container,
.table-wrapper {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Remove excessive margins from main content */
main,
.pb-3 {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Full width table */
.table {
    width: 100% !important;
    margin: 0 !important;
}

/* Responsive Table */
@media (max-width: 768px) {
    .table .btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
        min-width: 60px;
        margin: 0.0625rem;
    }
    
    .table thead th,
    .table tbody td {
        padding: 0.5rem;
    }
    
    .container,
    .container-fluid {
        padding: 0 20px !important;
    }
}

/* Footer Styling with Maximus Brand Colors */
.footer {
    background: linear-gradient(135deg, #EBE4F3 0%, #9F7FC9 100%) !important;
    border-top: 2px solid #502E91 !important;
    padding: 0.25rem 0 !important;
    margin-top: 0.5rem !important;
}

.footer .container {
    color: #424242 !important;
    font-weight: 500 !important;
}

.footer a {
    color: #502E91 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.footer a:hover {
    color: #6C489C !important;
    text-decoration: underline !important;
}

/* Ensure dropdown arrows are visible */
.dropdown-toggle::after {
    border-top: 0.3em solid white !important;
    border-right: 0.3em solid transparent !important;
    border-bottom: 0 !important;
    border-left: 0.3em solid transparent !important;
}

/* Ensure dropdowns are clickable and visible */
.navbar-nav .dropdown-menu {
    z-index: 1050 !important;
}

/* Fix any potential pointer events issues */
.dropdown-toggle {
    pointer-events: auto !important;
}

.navbar-nav .nav-link {
    pointer-events: auto !important;
}
