@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 */
}

[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 */
}

[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;
}

/* 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);
}
