@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.icon-button.has-news .fa-bell {
    animation: pulse 1s infinite;
    color: #FFA500;
}

[data-bs-theme="dark"] {
    --bs-body-bg: #1a2a3a; /* Blue light dark background */
    --bs-body-color: #cfe2f3; /* Light blue text */
}

/* Prevent white flash - set default body background to dark if theme attribute is present */
html[data-bs-theme="dark"] body,
body[data-bs-theme="dark"] {
    background-color: #1a2a3a !important;
}

/* Force style recalculation when theme changes */
.theme-changing * {
    transition: none !important;
}

[data-bs-theme="dark"] .p {
    color: #6fa3d1; /* Light blue-gray text */
}

[data-bs-theme="dark"] .left-sidebar,
[data-bs-theme="dark"] .app-header,
[data-bs-theme="dark"] .sidebar-nav {
    background-color: #2a3b4c !important; /* Blue light background */
}

/* Dark mode - Sidebar border */
[data-bs-theme="dark"] .left-sidebar {
    border-right: 1px solid #3d4e62 !important; /* Dark border instead of light */
}

/* Dark mode - Row border fix */
[data-bs-theme="dark"] .row {
    border: none !important;
    outline: none !important;
}

[data-bs-theme="dark"] .body-wrapper {
    border: none !important;
    outline: none !important;
}

[data-bs-theme="dark"] .page-wrapper {
    border: none !important;
    outline: none !important;
}

[data-bs-theme="dark"] .sidebar-link {
    color: #cfe2f3 !important; /* Light blue-gray for links */
}

[data-bs-theme="dark"] .sidebar-link:hover {
    background-color: #3d4e62 !important; /* Lighter hover background */
    color: #ffffff !important;
}

[data-bs-theme="dark"] .dropdown-menu {
    background-color: #324a5c;
    color: #cfe2f3;
}

[data-bs-theme="dark"] .dropdown-item:hover {
    background-color: #45667f;
    color: #fff;
}

[data-bs-theme="dark"] .sidebar-link {
    color: #d1e4f5 !important; /* Even lighter blue for sidebar links */
}

[data-bs-theme="dark"] .sidebar-link:hover {
    background-color: #4a5e74 !important;
}

[data-bs-theme="dark"] .input-group select.form-control {
    background-color: #3a4f63;
    color: #cfe2f3;
    border: 1px solid #637d95;
}

[data-bs-theme="dark"] .input-group select.form-control:focus {
    background-color: #4a647a;
    color: #fff;
    border-color: #87a2c1;
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .select2-container--default .select2-selection--single {
    background-color: #3a4f63;
    border-color: #637d95;
    color: #cfe2f3;
}

[data-bs-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #cfe2f3;
}

[data-bs-theme="dark"] .select2-container--default .select2-results__option--highlighted {
    background-color: #5a6e7f;
    color: #fff;
}

[data-bs-theme="dark"] .select2-dropdown {
    background-color: #3a4f63;
    color: #fff;
    border: 1px solid #637d95;
}

[data-bs-theme="dark"] .col-form-label {
    color: #a2c5e5; /* Lighter label color */
}

[data-bs-theme="dark"] .table-hover tbody tr:hover {
    background-color: #607d8b !important; /* Lighter hover background */
    color: #ffffff !important;
    transition: background-color 0.2s ease-in-out;
    --bs-table-hover-bg: #193e52;
}

[data-bs-theme="dark"] .table tbody tr {
    background-color: #3a4f63 !important; /* Lighter background for table rows */
    color: #d1e4f5 !important; /* Light blue-gray text for rows */
}

[data-bs-theme="dark"] .table-darkmode.table-hover tbody tr:hover {
    background-color: #607d8b !important;
    color: #ffffff !important;
}

/* Dark mode switch toggle */
.theme-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.theme-switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #a4b5c5; /* Light blue background for the slider */
    transition: .4s;
    border-radius: 24px;
}

.theme-switch .slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.theme-switch input:checked + .slider {
    background-color: #4f9ac2; /* Blue light when checked */
}

.theme-switch input:checked + .slider:before {
    transform: translateX(24px);
}

[data-bs-theme="dark"] .custom-dark-text p {
    color: #d8e0e3;
}


@keyframes shake {
    0% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-15deg);
    }
    50% {
        transform: rotate(15deg);
    }
    75% {
        transform: rotate(-10deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

.animate-shake .fa-bell {
    animation: shake 0.6s ease-in-out infinite;
}

.icon-button_badge {
    position: absolute;
    top: 0;
    right: 0;
    background: red;
    color: white;
    font-weight: bold;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 50%;
}

.news .card {
    transition: transform 0.3s ease; /* 0.3 soniyada yumshoq animatsiya */
}

.news .card:hover {
    transform: scale(1.05); /* 5% kattalashadi */
}

.news .card-header:hover {
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.3); /* Soyani kuchaytiradi */
    transition: all 0.3s ease; /* Silliq o‘tish */
}

.news .card-body:hover {
    box-shadow: 0 40px 40px rgba(92, 70, 0, 0.35); /* Soyani kuchaytiradi */
    transition: all 0.3s ease; /* Silliq o‘tish */
}


[data-bs-theme="dark"] .left-sidebar::-webkit-scrollbar {
    width: 8px;
}

[data-bs-theme="dark"] .left-sidebar::-webkit-scrollbar-track {
    background: #2d3748;
    border-radius: 10px;
}

[data-bs-theme="dark"] .left-sidebar::-webkit-scrollbar-thumb {
    background: #4a5568;
    border-radius: 10px;
}

[data-bs-theme="dark"] .left-sidebar::-webkit-scrollbar-thumb:hover {
    background: #718096;
}

[data-bs-theme="dark"] .left-sidebar {
    scrollbar-color: #4a5568 #2d3748;
}

/* Dark mode - All scrollbars (Webkit browsers) */
[data-bs-theme="dark"] *::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

[data-bs-theme="dark"] *::-webkit-scrollbar-track {
    background: #2a3b4c !important;
    border-radius: 10px;
}

[data-bs-theme="dark"] *::-webkit-scrollbar-thumb {
    background: #4a5568 !important;
    border-radius: 10px;
}

[data-bs-theme="dark"] *::-webkit-scrollbar-thumb:hover {
    background: #5a6e7f !important;
}

/* Dark mode - Firefox scrollbars */
[data-bs-theme="dark"] * {
    scrollbar-width: thin;
    scrollbar-color: #4a5568 #2a3b4c;
}

/* Dark mode - Specific elements scrollbars */
[data-bs-theme="dark"] body::-webkit-scrollbar,
[data-bs-theme="dark"] html::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

[data-bs-theme="dark"] body::-webkit-scrollbar-track,
[data-bs-theme="dark"] html::-webkit-scrollbar-track {
    background: #1a2a3a !important;
}

[data-bs-theme="dark"] body::-webkit-scrollbar-thumb,
[data-bs-theme="dark"] html::-webkit-scrollbar-thumb {
    background: #4a5568 !important;
    border-radius: 10px;
}

[data-bs-theme="dark"] body::-webkit-scrollbar-thumb:hover,
[data-bs-theme="dark"] html::-webkit-scrollbar-thumb:hover {
    background: #5a6e7f !important;
}

[data-bs-theme="dark"] body,
[data-bs-theme="dark"] html {
    scrollbar-width: thin;
    scrollbar-color: #4a5568 #1a2a3a;
}

/* Dark mode - Card body scrollbars */
[data-bs-theme="dark"] .card-body::-webkit-scrollbar,
[data-bs-theme="dark"] .modal-body::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

[data-bs-theme="dark"] .card-body::-webkit-scrollbar-track,
[data-bs-theme="dark"] .modal-body::-webkit-scrollbar-track {
    background: #2a3b4c !important;
    border-radius: 10px;
}

[data-bs-theme="dark"] .card-body::-webkit-scrollbar-thumb,
[data-bs-theme="dark"] .modal-body::-webkit-scrollbar-thumb {
    background: #4a5568 !important;
    border-radius: 10px;
}

[data-bs-theme="dark"] .card-body::-webkit-scrollbar-thumb:hover,
[data-bs-theme="dark"] .modal-body::-webkit-scrollbar-thumb:hover {
    background: #5a6e7f !important;
}

/* Dark mode - Sidebar nav scrollbars override (override layout.css) */
[data-bs-theme="dark"] .sidebar-nav::-webkit-scrollbar {
    width: 8px !important;
}

[data-bs-theme="dark"] .sidebar-nav::-webkit-scrollbar-track {
    background: #2a3b4c !important;
    background-color: #2a3b4c !important;
    border-radius: 10px;
}

[data-bs-theme="dark"] .sidebar-nav::-webkit-scrollbar-thumb {
    background: #4a5568 !important;
    background-color: #4a5568 !important;
    border-radius: 20px;
}

[data-bs-theme="dark"] .sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: #5a6e7f !important;
    background-color: #5a6e7f !important;
}

/* Dark mode - Aside scrollbars override (override layout.css) */
[data-bs-theme="dark"] aside::-webkit-scrollbar {
    width: 8px !important;
}

[data-bs-theme="dark"] aside::-webkit-scrollbar-track {
    background: #2a3b4c !important;
    background-color: #2a3b4c !important;
    border-radius: 10px;
}

[data-bs-theme="dark"] aside::-webkit-scrollbar-thumb {
    background: #4a5568 !important;
    background-color: #4a5568 !important;
    border-radius: 20px;
}

[data-bs-theme="dark"] aside::-webkit-scrollbar-thumb:hover {
    background: #5a6e7f !important;
    background-color: #5a6e7f !important;
}

/* Dark mode - Table responsive scrollbars */
[data-bs-theme="dark"] .table-responsive::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

[data-bs-theme="dark"] .table-responsive::-webkit-scrollbar-track {
    background: #2a3b4c !important;
    border-radius: 10px;
}

[data-bs-theme="dark"] .table-responsive::-webkit-scrollbar-thumb {
    background: #4a5568 !important;
    border-radius: 10px;
}

[data-bs-theme="dark"] .table-responsive::-webkit-scrollbar-thumb:hover {
    background: #5a6e7f !important;
}

/* Dark mode - Overflow elements scrollbars */
[data-bs-theme="dark"] [style*="overflow"]::-webkit-scrollbar,
[data-bs-theme="dark"] .overflow-auto::-webkit-scrollbar,
[data-bs-theme="dark"] .overflow-y-auto::-webkit-scrollbar,
[data-bs-theme="dark"] .overflow-x-auto::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

[data-bs-theme="dark"] [style*="overflow"]::-webkit-scrollbar-track,
[data-bs-theme="dark"] .overflow-auto::-webkit-scrollbar-track,
[data-bs-theme="dark"] .overflow-y-auto::-webkit-scrollbar-track,
[data-bs-theme="dark"] .overflow-x-auto::-webkit-scrollbar-track {
    background: #2a3b4c !important;
    border-radius: 10px;
}

[data-bs-theme="dark"] [style*="overflow"]::-webkit-scrollbar-thumb,
[data-bs-theme="dark"] .overflow-auto::-webkit-scrollbar-thumb,
[data-bs-theme="dark"] .overflow-y-auto::-webkit-scrollbar-thumb,
[data-bs-theme="dark"] .overflow-x-auto::-webkit-scrollbar-thumb {
    background: #4a5568 !important;
    border-radius: 10px;
}

[data-bs-theme="dark"] [style*="overflow"]::-webkit-scrollbar-thumb:hover,
[data-bs-theme="dark"] .overflow-auto::-webkit-scrollbar-thumb:hover,
[data-bs-theme="dark"] .overflow-y-auto::-webkit-scrollbar-thumb:hover,
[data-bs-theme="dark"] .overflow-x-auto::-webkit-scrollbar-thumb:hover {
    background: #5a6e7f !important;
}

/* Light theme for main select */
#category {
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    color: #374151;
    border-radius: 6px;
}

/* Select2 container */
.select2-container--default .select2-selection--single {
    background-color: #ffffff !important;
    border: 1px solid #d1d5db !important;
    border-radius: 6px !important;
    height: 45px !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #374151 !important;
    line-height: 43px !important;
}

/* Light dropdown */
.select2-dropdown {
    background-color: #ffffff !important;
    border: 1px solid #d1d5db !important;
    border-radius: 6px !important;
}

/* SEARCH INPUT - This is the key part */
.select2-search--dropdown .select2-search__field {
    background-color: #f9fafb !important;
    border: 1px solid #d1d5db !important;
    color: #374151 !important;
    border-radius: 4px !important;
    padding: 8px 12px !important;
}

.select2-search--dropdown .select2-search__field:focus {
    background-color: #ffffff !important;
    border-color: #3b82f6 !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2) !important;
}

/* Options */
.select2-results__option {
    background-color: #ffffff !important;
    color: #374151 !important;
}

.select2-results__option:hover {
    background-color: #f3f4f6 !important;
}


/* Dark theme for main select */
[data-bs-theme="dark"] #category {
    background-color: #2d3748;
    border: 1px solid #4a5568;
    color: #e2e8f0;
    border-radius: 6px;
}

/* Select2 container */
[data-bs-theme="dark"] .select2-container--default .select2-selection--single {
    background-color: #2d3748 !important;
    border: 1px solid #4a5568 !important;
    border-radius: 6px !important;
    height: 45px !important;
}

[data-bs-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #e2e8f0 !important;
    line-height: 43px !important;
}

[data-bs-theme="dark"] .select2-dropdown {
    background-color: #2d3748 !important;
    border: 1px solid #4a5568 !important;
    border-radius: 6px !important;
}

/* SEARCH INPUT - This is the key part */
[data-bs-theme="dark"] .select2-search--dropdown .select2-search__field {
    background-color: #1a202c !important;
    border: 1px solid #4a5568 !important;
    color: #e2e8f0 !important;
    border-radius: 4px !important;
    padding: 8px 12px !important;
}

[data-bs-theme="dark"] .select2-search--dropdown .select2-search__field:focus {
    background-color: #374151 !important;
    border-color: #60a5fa !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.2) !important;
}

[data-bs-theme="dark"] .select2-results__option {
    background-color: #2d3748 !important;
    color: #e2e8f0 !important;
}

[data-bs-theme="dark"] .select2-results__option:hover {
    background-color: #374151 !important;
}

.services-row .icon-box{
    background: #2d3748;
    color: rgba(255, 255, 255, 0.52);
}

.services-row .icon-box h4 a{
    color: rgb(157, 171, 227);
}

/* Dark mode - Text colors */
[data-bs-theme="dark"] .text-muted {
    color: #a0b4c7 !important; /* Light blue-gray instead of gray */
}

[data-bs-theme="dark"] .text-dark {
    color: #d1e4f5 !important; /* Light blue-gray instead of dark */
}

/* Dark mode - Background colors */
[data-bs-theme="dark"] .bg-light {
    background-color: #2a3b4c !important; /* Dark blue-gray instead of light */
    color: #d1e4f5 !important;
}

[data-bs-theme="dark"] .bg-body-tertiary {
    background-color: #2a3b4c !important;
    color: #d1e4f5 !important;
}

/* Dark mode - Cards */
[data-bs-theme="dark"] .card {
    background-color: #2a3b4c !important;
    border-color: #3d4e62 !important;
    color: #d1e4f5 !important;
}

[data-bs-theme="dark"] .card-body {
    background-color: #2a3b4c !important;
    color: #d1e4f5 !important;
}

[data-bs-theme="dark"] .card-header {
    background-color: #324a5c !important;
    border-color: #3d4e62 !important;
    color: #d1e4f5 !important;
}

[data-bs-theme="dark"] .card-footer {
    background-color: #324a5c !important;
    border-color: #3d4e62 !important;
    color: #d1e4f5 !important;
}

/* Dark mode - Form labels */
[data-bs-theme="dark"] .form-label {
    color: #d1e4f5 !important;
}

[data-bs-theme="dark"] .form-label.text-muted {
    color: #a0b4c7 !important;
}

[data-bs-theme="dark"] .form-text {
    color: #a0b4c7 !important;
}

/* Dark mode - Tables */
[data-bs-theme="dark"] .table-light {
    background-color: #324a5c !important;
    color: #d1e4f5 !important;
}

[data-bs-theme="dark"] .table-light th {
    background-color: #324a5c !important;
    color: #d1e4f5 !important;
    border-color: #3d4e62 !important;
}

[data-bs-theme="dark"] .table {
    color: #d1e4f5 !important;
}

[data-bs-theme="dark"] .table thead th {
    background-color: #324a5c !important;
    color: #d1e4f5 !important;
    border-color: #3d4e62 !important;
}

/* Dark mode - Table primary (category headers) */
[data-bs-theme="dark"] .table-primary {
    background-color: rgba(93, 135, 255, 0.2) !important;
    color: #d1e4f5 !important;
}

[data-bs-theme="dark"] .table-primary td {
    background-color: rgba(93, 135, 255, 0.2) !important;
    color: #d1e4f5 !important;
    border-color: rgba(93, 135, 255, 0.3) !important;
}

[data-bs-theme="dark"] .table-primary th {
    background-color: rgba(93, 135, 255, 0.2) !important;
    color: #d1e4f5 !important;
    border-color: rgba(93, 135, 255, 0.3) !important;
}

[data-bs-theme="dark"] .table-primary h6 {
    color: #d1e4f5 !important;
}

[data-bs-theme="dark"] .table-primary .badge {
    color: #fff !important;
}

/* Dark mode - Input groups */
[data-bs-theme="dark"] .input-group-text {
    background-color: #3a4f63 !important;
    border-color: #637d95 !important;
    color: #d1e4f5 !important;
}

[data-bs-theme="dark"] .input-group-text.bg-light {
    background-color: #3a4f63 !important;
    color: #d1e4f5 !important;
}

/* Dark mode - Form controls */
[data-bs-theme="dark"] .form-control {
    background-color: #3a4f63 !important;
    border-color: #637d95 !important;
    color: #d1e4f5 !important;
}

[data-bs-theme="dark"] .form-control:focus {
    background-color: #4a647a !important;
    border-color: #87a2c1 !important;
    color: #fff !important;
    box-shadow: 0 0 0 0.2rem rgba(135, 162, 193, 0.25) !important;
}

[data-bs-theme="dark"] .form-control::placeholder {
    color: #7a91a8 !important;
}

[data-bs-theme="dark"] .form-select {
    background-color: #3a4f63 !important;
    border-color: #637d95 !important;
    color: #d1e4f5 !important;
}

[data-bs-theme="dark"] .form-select:focus {
    background-color: #4a647a !important;
    border-color: #87a2c1 !important;
    color: #fff !important;
    box-shadow: 0 0 0 0.2rem rgba(135, 162, 193, 0.25) !important;
}

/* Dark mode - Badges */
[data-bs-theme="dark"] .badge.bg-light {
    background-color: #3a4f63 !important;
    color: #d1e4f5 !important;
}

[data-bs-theme="dark"] .badge.bg-light.text-dark {
    background-color: #3a4f63 !important;
    color: #d1e4f5 !important;
}

/* Dark mode - Alerts */
[data-bs-theme="dark"] .alert {
    background-color: #2a3b4c !important;
    border-color: #3d4e62 !important;
    color: #d1e4f5 !important;
}

[data-bs-theme="dark"] .alert-info {
    background-color: #1e3a5f !important;
    border-color: #2d5a8a !important;
    color: #cfe2f3 !important;
}

[data-bs-theme="dark"] .alert-success {
    background-color: #1e4a3e !important;
    border-color: #2d6a5a !important;
    color: #cfe2f3 !important;
}

[data-bs-theme="dark"] .alert-warning {
    background-color: #4a3e1e !important;
    border-color: #6a5a2d !important;
    color: #f3e2cf !important;
}

[data-bs-theme="dark"] .alert-danger {
    background-color: #4a1e1e !important;
    border-color: #6a2d2d !important;
    color: #f3cfcf !important;
}

/* Dark mode - Modals */
[data-bs-theme="dark"] .modal-content {
    background-color: #2a3b4c !important;
    color: #d1e4f5 !important;
}

[data-bs-theme="dark"] .modal-header {
    background-color: #324a5c !important;
    border-color: #3d4e62 !important;
    color: #d1e4f5 !important;
}

[data-bs-theme="dark"] .modal-body {
    background-color: #2a3b4c !important;
    color: #d1e4f5 !important;
}

[data-bs-theme="dark"] .modal-footer {
    background-color: #2a3b4c !important;
    border-color: #3d4e62 !important;
    color: #d1e4f5 !important;
}

/* Dark mode - Dropdowns */
[data-bs-theme="dark"] .dropdown-menu {
    background-color: #324a5c !important;
    border-color: #3d4e62 !important;
    color: #d1e4f5 !important;
}

[data-bs-theme="dark"] .dropdown-item {
    color: #d1e4f5 !important;
}

[data-bs-theme="dark"] .dropdown-item:hover,
[data-bs-theme="dark"] .dropdown-item:focus {
    background-color: #45667f !important;
    color: #fff !important;
}

/* Dark mode - Links */
[data-bs-theme="dark"] a {
    color: #87a2c1 !important;
}

[data-bs-theme="dark"] a:hover {
    color: #a4bdd4 !important;
}

[data-bs-theme="dark"] .text-primary {
    color: #87a2c1 !important;
}

[data-bs-theme="dark"] .text-info {
    color: #7db3d1 !important;
}

[data-bs-theme="dark"] .text-success {
    color: #5db89e !important;
}

[data-bs-theme="dark"] .text-warning {
    color: #d4b35d !important;
}

[data-bs-theme="dark"] .text-danger {
    color: #d45d5d !important;
}

/* Dark mode - Pagination */
[data-bs-theme="dark"] .pagination .page-link {
    background-color: #3a4f63 !important;
    border-color: #637d95 !important;
    color: #d1e4f5 !important;
}

[data-bs-theme="dark"] .pagination .page-link:hover {
    background-color: #4a647a !important;
    border-color: #87a2c1 !important;
    color: #fff !important;
}

[data-bs-theme="dark"] .pagination .page-item.active .page-link {
    background-color: #5d87ff !important;
    border-color: #5d87ff !important;
    color: #fff !important;
}

[data-bs-theme="dark"] .pagination .page-item.disabled .page-link {
    background-color: #2a3b4c !important;
    border-color: #3d4e62 !important;
    color: #7a91a8 !important;
}

/* Dark mode - Progress bars */
[data-bs-theme="dark"] .progress {
    background-color: #3a4f63 !important;
}

/* Dark mode - Breadcrumbs */
[data-bs-theme="dark"] .breadcrumb {
    background-color: #2a3b4c !important;
    color: #d1e4f5 !important;
}

[data-bs-theme="dark"] .breadcrumb-item a {
    color: #87a2c1 !important;
}

/* Dark mode - List groups */
[data-bs-theme="dark"] .list-group-item {
    background-color: #2a3b4c !important;
    border-color: #3d4e62 !important;
    color: #d1e4f5 !important;
}

[data-bs-theme="dark"] .list-group-item.active {
    background-color: #5d87ff !important;
    border-color: #5d87ff !important;
    color: #fff !important;
}

/* Dark mode - Borders */
[data-bs-theme="dark"] .border {
    border-color: #3d4e62 !important;
}

[data-bs-theme="dark"] .border-top {
    border-top-color: #3d4e62 !important;
}

[data-bs-theme="dark"] .border-bottom {
    border-bottom-color: #3d4e62 !important;
}

[data-bs-theme="dark"] .border-start {
    border-left-color: #3d4e62 !important;
}

[data-bs-theme="dark"] .border-end {
    border-right-color: #3d4e62 !important;
}

/* Dark mode - HR */
[data-bs-theme="dark"] hr {
    border-color: #3d4e62 !important;
    opacity: 0.5;
}

/* Dark mode - Small text */
[data-bs-theme="dark"] small,
[data-bs-theme="dark"] .small {
    color: #a0b4c7 !important;
}

/* Dark mode - Lead text */
[data-bs-theme="dark"] .lead {
    color: #cfe2f3 !important;
}

/* Dark mode - Headings */
[data-bs-theme="dark"] h1,
[data-bs-theme="dark"] h2,
[data-bs-theme="dark"] h3,
[data-bs-theme="dark"] h4,
[data-bs-theme="dark"] h5,
[data-bs-theme="dark"] h6 {
    color: #d1e4f5 !important;
}

/* Dark mode - Paragraphs */
[data-bs-theme="dark"] p {
    color: #d1e4f5 !important;
}

/* Dark mode - Focus states */
[data-bs-theme="dark"] .row:focus,
[data-bs-theme="dark"] .row:focus-within {
    background-color: transparent !important;
    outline: none !important;
}

[data-bs-theme="dark"] div:focus,
[data-bs-theme="dark"] div:focus-visible {
    background-color: transparent !important;
    outline: none !important;
}

[data-bs-theme="dark"] div:focus:not([tabindex="-1"]) {
    background-color: transparent !important;
    outline: none !important;
}

/* Dark mode - Nav link focus */
[data-bs-theme="dark"] .nav-link:focus,
[data-bs-theme="dark"] .nav-link:focus-visible,
[data-bs-theme="dark"] .nav-link:focus-within {
    background-color: transparent !important;
    outline: none !important;
    color: #87a2c1 !important;
}

[data-bs-theme="dark"] .nav-link.nav-icon-hover:focus::before,
[data-bs-theme="dark"] .nav-link.nav-icon-hover:focus-visible::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    height: 40px;
    width: 40px;
    z-index: -1;
    border-radius: 100px;
    transition: all .3s ease-in-out;
    background-color: rgba(93, 135, 255, 0.2) !important;
}

[data-bs-theme="dark"] .nav-link.nav-icon-hover:focus,
[data-bs-theme="dark"] .nav-link.nav-icon-hover:focus-visible {
    background-color: transparent !important;
    outline: none !important;
}

/* Dark mode - All focusable elements */
[data-bs-theme="dark"] *:focus:not(input):not(textarea):not(select):not(button):not(a):not([contenteditable]) {
    outline: none !important;
}

[data-bs-theme="dark"] *:focus-visible:not(input):not(textarea):not(select):not(button):not(a):not([contenteditable]) {
    outline: 2px solid rgba(93, 135, 255, 0.5) !important;
    outline-offset: 2px !important;
}

/* Dark mode - Buttons */
[data-bs-theme="dark"] .btn-primary {
    color: #fff !important;
    background-color: #5d87ff !important;
    border-color: #5d87ff !important;
}

[data-bs-theme="dark"] .btn-primary:hover {
    color: #fff !important;
    background-color: #4d77ef !important;
    border-color: #4d77ef !important;
}

[data-bs-theme="dark"] .btn-primary:focus {
    color: #fff !important;
    background-color: #4d77ef !important;
    border-color: #4d77ef !important;
    box-shadow: 0 0 0 0.2rem rgba(93, 135, 255, 0.25) !important;
}

[data-bs-theme="dark"] .btn-primary:active,
[data-bs-theme="dark"] .btn-primary.active {
    color: #fff !important;
    background-color: #3d67df !important;
    border-color: #3d67df !important;
}

/* Dark mode - Navbar buttons */
[data-bs-theme="dark"] .navbar .btn-primary {
    color: #fff !important;
}

[data-bs-theme="dark"] .navbar-nav .btn-primary {
    color: #fff !important;
}

[data-bs-theme="dark"] .app-header .btn-primary {
    color: #fff !important;
}
