:root {
    --primary-color: #00245d;
    --secondary-color: #007bff;
    --background-color: #f2f3f8;
    
    /* Bootstrap Primary Color Override */
    --bs-primary: #00245d;
    --bs-primary-rgb: 0, 36, 93;
    --bs-primary-text-emphasis: #00245d;
    --bs-primary-bg-subtle: rgba(0, 36, 93, 0.1);
    --bs-primary-border-subtle: rgba(0, 36, 93, 0.3);
}

/* Menu Color Overrides */
:root {
    --bs-menu-color: #444050;
    --bs-menu-hover-color: #00245d;
    --bs-menu-active-color: #ffffff;
    --bs-menu-active-bg: #00245d;
    --bs-menu-hover-bg: rgba(0, 36, 93, 0.08);
    --bs-menu-sub-active-bg: rgba(0, 36, 93, 0.12);
    --bs-menu-sub-active-color: #00245d;
}

/* Menu Item Active State */
.menu-item.active > .menu-link:not(.menu-toggle) {
    background: linear-gradient(270deg, rgba(0, 36, 93, 0.8) 0%, #00245d 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 0.125rem 0.375rem 0 rgba(0, 36, 93, 0.3) !important;
}

/* Menu Item Hover State */
.menu-vertical .menu-item:not(.active):not(.open) .menu-link:hover {
    background-color: rgba(0, 36, 93, 0.08) !important;
    color: #00245d !important;
}

/* Menu Toggle Active State */
.menu-vertical .menu-item.active > .menu-toggle {
    background-color: rgba(0, 36, 93, 0.12) !important;
    color: #00245d !important;
}

/* Menu Sub Items */
.menu-vertical .menu-sub .menu-link:hover {
    background-color: rgba(0, 36, 93, 0.08) !important;
    color: #00245d !important;
}

/* Menu Header */
.menu-header .menu-header-text {
    color: #00245d !important;
    font-weight: 600 !important;
}

/* Menu Divider */
.menu-divider {
    border-color: rgba(0, 36, 93, 0.2) !important;
}

/* App Brand */
.menu .app-brand .app-brand-text {
    color: #00245d !important;
}

/* Rolando SVG Logo - Primary Color */
.app-brand-logo .text-primary {
    color: #00245d !important;
}

.app-brand-logo svg {
    fill: #00245d !important;
}

.app-brand-logo .text-primary svg {
    fill: currentColor !important;
}

/* App Brand Link Hover State */
.app-brand-link:hover .app-brand-logo svg {
    fill: #00245d !important;
}

.app-brand-link:hover .text-primary {
    color: #00245d !important;
}

/* App Brand Active State */
.app-brand-link:active .app-brand-logo svg {
    fill: #001a3d !important;
}

.app-brand-link:active .text-primary {
    color: #001a3d !important;
}

/* Menu Icons */
.menu-icon {
    color: inherit !important;
}

.menu-item.active .menu-icon {
    color: #ffffff !important;
}

.menu-item:not(.active) .menu-link:hover .menu-icon {
    color: #00245d !important;
}

/* Menu Toggle Arrow */
.menu-toggle::after {
    background-color: inherit !important;
}

.menu-item.active .menu-toggle::after {
    background-color: #ffffff !important;
}

/* Menu Sub Items */
.menu-sub .menu-item .menu-link {
    color: #444050 !important;
}

.menu-sub .menu-item .menu-link:hover {
    color: #00245d !important;
}

/* Menu Spacing and Typography */
.menu-link {
    font-weight: 500 !important;
    transition: all 0.2s ease-in-out !important;
}

.menu-item.active .menu-link {
    font-weight: 600 !important;
}

/* Menu Background */
.menu {
    background-color: #ffffff !important;
    border-right: 1px solid rgba(0, 36, 93, 0.1) !important;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 600;
    color: var(--primary-color);
}

.sub-heading {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 36px;
    font-weight: 500;
    color: var(--primary-color);
}

body {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 13px;
    line-height: 1.5;
    background-color: var(--background-color);
}

/* Button Styles */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 0;
}

.btn-primary:hover {
    background-color: #001a3d;
    border-color: #001a3d;
    border-radius: 0;
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    border-radius: 0;
}

.btn-secondary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    border-radius: 0;
}

/* All buttons should have no border radius */
.btn {
    border-radius: 0 !important;
    margin-top: 1rem !important;
}

.btn-sm {
    border-radius: 0 !important;
    margin-top: 1rem !important;
}

.btn-lg {
    border-radius: 0 !important;
    margin-top: 1rem !important;
}

/* Card Styles */
.card {
    background-color: white;
    border: 1px solid #e3e6f0;
    border-radius: 0.35rem;
}

.card-header {
    background-color: var(--primary-color);
    color: white;
    border-bottom: 1px solid #e3e6f0;
}

/* Table Styles */
.table thead th {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Navigation */
.navbar {
    background-color: var(--primary-color);
}

.navbar-brand {
    color: white !important;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
}

.navbar-nav .nav-link:hover {
    color: white !important;
}

/* Sidebar */
.sidebar {
    background-color: var(--primary-color);
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Form Controls */
.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* DataTables Customization */
.dataTables_wrapper .dataTables_length select {
    border-color: var(--secondary-color);
}

.dataTables_wrapper .dataTables_filter input {
    border-color: var(--secondary-color);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Modal Styles */
.modal-header {
    background-color: var(--primary-color);
    color: white;
}

.modal-header .btn-close {
    filter: invert(1);
}

/* Alert Styles */
.alert-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.alert-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

/* Badge Styles */
.badge-primary {
    background-color: var(--primary-color);
}

.badge-secondary {
    background-color: var(--secondary-color);
}

/* Progress Bar */
.progress-bar {
    background-color: var(--primary-color);
}

/* Custom Utility Classes */
.text-primary-custom {
    color: var(--primary-color) !important;
}

.text-secondary-custom {
    color: var(--secondary-color) !important;
}

.bg-primary-custom {
    background-color: var(--primary-color) !important;
}

.bg-secondary-custom {
    background-color: var(--secondary-color) !important;
}

.border-primary-custom {
    border-color: var(--primary-color) !important;
}

.border-secondary-custom {
    border-color: var(--secondary-color) !important;
}

.text-primary {
    color: #00245d !important;
}

.bg-primary {
    background-color: #00245d !important;
}

.border-primary {
    border-color: #00245d !important;
}

/* Rolando Logo Enhancements */
.app-brand-logo svg {
    transition: fill 0.2s ease-in-out !important;
    
}

.app-brand-logo {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}