/* Global background gradient */
html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #162447, #1f4068);
    background-attachment: fixed;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Ensure Dash root container stretches */
#react-entry-point, #_dash-app-content {
    min-height: 100%;
}

/* Optional: remove scrollbars in some browsers */
body::-webkit-scrollbar {
    width: 8px;
}
body::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.2);
    border-radius: 4px;
}

._dash-tabs {
    margin-top: 1.5rem !important;
}

/* Make "Signed in / Not signed in" text white */
#auth-status-text {
    color: white !important;
}


/* -------------------------------------------------------- */
/* FORCE ALL INPUTS TO 36PX HEIGHT — DASH DATEPICKER FIXES  */
/* -------------------------------------------------------- */

/* Outer container of the datepicker */
.SingleDatePickerInput {
    height: 36px !important;
    border-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
}

/* Wrapper of the text input */
.DateInput {
    height: 36px !important;
    padding: 0 !important;
}

/* The actual <input> field inside the datepicker */
.DateInput_input {
    height: 34px !important;
    line-height: 34px !important;
    padding: 0 10px !important;
    font-size: 14px !important;
    box-sizing: border-box !important;
}

/* Remove unwanted focused border glow */
.DateInput_input__focused {
    border-bottom: 2px solid #1976D2 !important;
}

/* Time input uniform height */
input[type="time"] {
    height: 36px !important;
    line-height: 36px !important;
    padding: 0 10px !important;
    box-sizing: border-box !important;
    border-radius: 6px !important;
    border: 1px solid #ccc !important;
    font-size: 14px !important;
}

/* Device dropdown should match 36px height */
.Select-control {
    height: 36px !important;
    min-height: 36px !important;
}

.Select-value-label {
    line-height: 34px !important;
}

/* Ensure the whole Select element respects the 36px size */
.Select--single > .Select-control .Select-value {
    line-height: 34px !important;
}

/* Apply button — same height as inputs */
#custom-range-apply {
    height: 36px !important;
    padding: 0 14px !important; /* horizontal only */
    line-height: 36px !important;
    border-radius: 6px !important;
    box-sizing: border-box !important;
}

/* ─── Hamburger Navigation ─────────────────────────────────── */

/* Remove old tab top margin — no longer needed */
._dash-tabs {
    margin-top: 0 !important;
}

/* Overlay that dims the page when drawer is open */
#nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 900;
    cursor: pointer;
}
#nav-overlay.open {
    display: block;
}

/* Slide-out drawer */
#nav-drawer {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 260px;
    background: #1a2e4a;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    display: flex;
    flex-direction: column;
    padding-top: 0;
    box-shadow: 4px 0 20px rgba(0,0,0,0.4);
}
#nav-drawer.open {
    transform: translateX(0);
}

/* Drawer header row */
#nav-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
#nav-drawer-logo {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
#nav-close-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    line-height: 1;
}
#nav-close-btn:hover {
    color: #ffffff;
    background: rgba(255,255,255,0.1);
}

/* Nav item list */
#nav-menu-list {
    list-style: none;
    margin: 12px 0 0 0;
    padding: 0;
    flex: 1;
    overflow-y: auto;
}
#nav-menu-list li {
    margin: 0;
}
.nav-menu-item {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: rgba(255,255,255,0.75);
    font-size: 0.95rem;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    padding: 13px 22px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    border-left: 3px solid transparent;
}
.nav-menu-item:hover {
    background: rgba(255,255,255,0.08);
    color: #ffffff;
}
.nav-menu-item.active {
    background: rgba(25, 118, 210, 0.25);
    color: #ffffff;
    border-left-color: #1976D2;
    font-weight: 600;
}

/* Admin item gets a subtle gold accent */
.nav-menu-item.admin-item {
    color: rgba(255, 200, 100, 0.8);
}
.nav-menu-item.admin-item:hover,
.nav-menu-item.admin-item.active {
    color: #ffc864;
    background: rgba(255, 200, 100, 0.1);
    border-left-color: #ffc864;
}

/* Hamburger button in the top bar */
#hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    justify-content: center;
}
#hamburger-btn:hover {
    background: rgba(255,255,255,0.12);
}
#hamburger-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: white;
    border-radius: 2px;
}

/* Page content area */
#page-content {
    min-height: 60vh;
}

