/* base.css */

body {
    padding-top: 75px;
}

#logout-form {
    display: inline;
}

#logout-form button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
  
}

.navbar-nav .dropdown-menu {
    max-height: 85vh;
    overflow-y: auto;
}

.container-90 {
    width: 100%;       /* Full width on mobile */
    padding: 0 15px;
    margin: 0 auto;
}

@media (min-width: 992px) { 
    .container-90 {
        width: 90%;    /* Only shrink to 90% on Desktops */
    }
}

.modal {
    overflow-y: scroll;
}
.transparent-select {
    /* Removes the default browser arrow */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;

    background-color: transparent; 
    border: 1px solid transparent; /* Hide border until hover */
    padding: 2px 8px;              /* Extra padding since there's no arrow */
    color: inherit;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

/* Show a faint border and light background on hover so users know they can click */
.transparent-select:hover {
    background-color: rgba(255, 255, 255, 0.4);
    border-color: rgba(0, 0, 0, 0.1);
}

/* Make it look "active" when focused */
/* Force transparency even when the element is active/focused */
.transparent-select:focus,
.transparent-select:active {
    background-color: rgba(255, 255, 255, 0.5) !important;
    outline: none;
    box-shadow: none; /* Removes the blue Bootstrap glow if present */
    border-color: rgba(0, 0, 0, 0.2);
}

/* Ensure the actual dropdown list (the options) is readable */
.transparent-select option {
    background-color: #fff !important;
    color: #000 !important;
}

.save-badge {
    color: #28a745; /* Success green */
    font-weight: bold;
    opacity: 0;
    font-size: 0.8em;
    margin-left: 5px;
    transition: all 0.3s ease-in-out;
    transform: translateY(5px);
    display: inline-block;
}

.save-badge.show {
    opacity: 1;
    transform: translateY(0);
}
/*
td {
    white-space: nowrap;
} 
    */
/* --- SLIDER --- */
#input_range {
    height: 4px !important;  
    margin-top: 24px;        
    margin-bottom: 6px;
    border: none;
    background: var(--bs-gray-300);
    min-width: 200px;
}
.noUi-connect {
    background: var(--bs-primary);
}

/* --- THE HANDLES --- */
.noUi-handle {
    width: 16px !important;
    height: 16px !important;
    right: -8px !important;
    top: -7px !important;   /* Aligns with 4px track */
    border-radius: 50% !important;
    border: 2px solid var(--bs-primary) !important;
    background: #fff !important; /* Default light */
    box-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
    cursor: grab;
    transition: transform 0.1s ease, background-color 0.1s ease;
}
/* Dark Mode Handle Override */
[data-bs-theme="dark"] .noUi-handle {
    background: var(--bs-gray-900) !important;
    border-color: var(--bs-info) !important;
}
/* Remove internal handle decorations (the three dots) */
.noUi-handle:before, .noUi-handle:after {
    display: none !important;
}
[data-bs-theme="dark"] #input_range {
    background: var(--bs-gray-800);
}

.noUi-tooltip {
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    transition: transform 0.2s ease-in-out, opacity 0.2s;
    font-size: 0.85rem;
    color: var(--bs-body-color);
    font-weight: 600;
    
    padding: 2px 6px;
    white-space: nowrap;
    border: none !important;
    background: transparent !important;
}

/* 3. When handles are close: Shift the upper handle tooltip to the RIGHT */
.tooltips-overlapping .noUi-handle-upper .noUi-tooltip {
    transform: translate(0%, 0) !important;
}
.tooltips-overlapping .noUi-handle-lower .noUi-tooltip {
    transform: translate(-100%, 0) !important;
}

/* Increase the "invisible" touch area of the handles */
.noUi-handle::before,
.noUi-handle::after {
    content: "";
    display: block;
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    background: transparent; /* Makes the clickable area much larger */
}