.bg-gradient-dark-blue {
    background-color: #0A314D !important;
}

.sidenav-header {
    height: auto;
}

.navbar-brand-img {
    max-height: 3rem !important;
}

.sidenav .navbar-collapse {
    height: calc(100vh - 10px) !important;
}

/* Sidebar Dropdown Icon Rotation */
.nav-link[data-bs-toggle="collapse"] .dropdown-icon {
    transition: transform 0.3s ease;
}

.nav-link[data-bs-toggle="collapse"][aria-expanded="true"] .dropdown-icon {
    transform: rotate(180deg);
}

/* IMPORTANT: Hide theme's default FontAwesome arrow (which shows as a square) */
.nav-link[data-bs-toggle="collapse"]:after {
    display: none !important;
    content: none !important;
}

/* Child Menu Styling - Ensuring clear separation from parent */
.navbar-nav .collapse {
    transition: all 0.3s ease;
}

.navbar-nav .collapse .nav-item .nav-link {
    margin-left: 20px !important;
    margin-right: 15px !important;
    padding: 0.5rem 1rem !important;
    border-radius: 0.375rem;
    background-color: transparent !important;
    box-shadow: none !important;
    /* opacity: 0.8; */
}

.navbar-nav .collapse .nav-item .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    opacity: 1;
}

/* .navbar-nav .collapse .nav-item .nav-link.active {
    background-image: linear-gradient(195deg, #49a3f1 0%, #1A73E8 100%) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    opacity: 1;
} */

/* Fix for the parent link when children are active - keep it subtle */
.nav-link[data-bs-toggle="collapse"].active {
    background-image: none !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: none !important;
}

/* Ensure no square icons show up on hover for any nav-link */
/* Premium Toggle Switch Styles */
.premium-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

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

.premium-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.premium-switch-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}

.premium-switch input:checked+.premium-switch-slider {
    background-image: linear-gradient(195deg, #49a3f1 0%, #1A73E8 100%);
}

.premium-switch input:focus+.premium-switch-slider {
    box-shadow: 0 0 1px #2196F3;
}

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

/* Status loading state */
.status-loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Sticky Navbar Enhancements */
.navbar-main.sticky-top {
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: all 0.3s ease;
    width: 100%;
    border-radius: 0 !important;
}

.navbar-main.navbar-scrolled,
.navbar-main.blur.shadow-blur {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    margin-top: 0 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}



.main-content {
    padding-top: 1.5rem;
}

.navbar-nav .nav-link {
    transition: all 0.2s ease;
}

.navbar-nav .nav-link:hover {
    color: #e91e63 !important;
    transform: translateY(-1px);
}

/* 
 * Native Validation Support for Hidden Inputs (Select2, TinyMCE) 
 * 
 * Browsers refuse to show HTML5 validation messages ("Please fill out this field")
 * if the required input element is display: none; or hidden. 
 * These rules make them technically visible but visually imperceptible, 
 * so the browser can focus them and pop the validation bubble up.
 */
select.select2-multi[required] {
    display: block !important;
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    padding: 0;
    margin: 0;
    pointer-events: none;
    clip: rect(0, 0, 0, 0);
    bottom: 0;
}

/* textarea#long_description[required] {
    display: block !important;
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    padding: 0;
    margin: 0;
    pointer-events: none;
    clip: rect(0, 0, 0, 0);
    bottom: 0;
} */

/* Filter Tags Styling */
.filter-chip {
    transition: all 0.2s ease-in-out;
    border: 1px solid #e0e0e0 !important;
    background-color: #ffffff !important;
}

.filter-chip:hover {
    background-color: #f8f9fa !important;
    border-color: #d0d0d0 !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05) !important;
    transform: translateY(-1px);
}

.remove-filter-tag {
    transition: transform 0.2s ease, color 0.2s ease;
    opacity: 0.6;
}

.filter-chip:hover .remove-filter-tag {
    opacity: 1;
}

.remove-filter-tag:hover {
    color: #f44336 !important;
    transform: scale(1.2);
}

.clear-all-filters {
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.clear-all-filters:hover {
    opacity: 1;
}

/* 
 * Password Visibility Toggle
 */
.input-group-outline .password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 4;
    color: #7b809a;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    padding: 8px;
}

.input-group-outline .password-toggle:hover {
    color: #EABD13;
}

.input-group-outline .password-toggle i {
    font-size: 1.25rem;
}

.input-group-outline:has(.password-toggle) .form-control {
    padding-right: 40px !important;
}

/* Targeted fix for password label overlap when autofilled, matching theme's native style perfectly */
.input-group-outline:has(input[type="password"]:-webkit-autofill) .form-label,
.input-group-outline:has(input[type="password"]:autofill) .form-label {
    width: 100%;
    height: 100%;
    font-size: 0.6875rem !important;
    color: #EABD13;
    display: flex;
    line-height: 1.25 !important;
    top: -0.375rem;
    /* Reverting to theme base top */
    transform: none !important;
}

.input-group-outline:has(input[type="password"]:-webkit-autofill) .form-label:before,
.input-group-outline:has(input[type="password"]:-webkit-autofill) .form-label:after,
.input-group-outline:has(input[type="password"]:autofill) .form-label:before,
.input-group-outline:has(input[type="password"]:autofill) .form-label:after {
    opacity: 1;
    border-top-color: #EABD13;
    box-shadow: inset 0 1px #EABD13;
}

.input-group-outline:has(input[type="password"]:-webkit-autofill) .form-control,
.input-group-outline:has(input[type="password"]:autofill) .form-control {
    border-color: #EABD13 !important;
    border-top-color: transparent !important;
    box-shadow: inset 1px 0 #EABD13, inset -1px 0 #EABD13, inset 0 -1px #EABD13;
}


/* Offset eye icon when validation error icon is present */
.input-group-outline.is-invalid .password-toggle {
    right: 32px;
}

.input-group-outline.is-invalid:has(.password-toggle) .form-control {
    padding-right: 60px !important;
}