/* Global font standardization */
* {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    box-sizing: border-box;
}

/* Ensure all Dash components use the font */
.dash-dropdown, .dash-input, .dash-textarea, 
.dash-checklist, .dash-radioitems, 
.Select-control, .Select-menu-outer {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Plotly/Map text */
.js-plotly-plot .plotly text {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Prevent scrolling and ensure fullscreen */
html, body {
    margin: 0;
    padding: 0;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

#react-entry-point, #_dash-app-content {
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

/* Spinner animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Translucent loading overlay - NEW OPTIMIZED VERSION */
._dash-loading {
    background-color: transparent !important;
}

._dash-loading-callback {
    background-color: transparent !important;
}

/* Make the loading spinner less intrusive */
.dash-spinner {
    background-color: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(3px);
    padding: 15px !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

/* Keep the graph visible during loading */
._dash-loading .dash-graph {
    visibility: visible !important;
    opacity: 1 !important;
}

/* Custom styling for territory checkboxes */
.territory-checklist {
    margin-left: 24px;
    margin-top: 4px;
    margin-bottom: 8px;
    font-size: 13px;
}

/* Modern checkbox styling */
.modern-checklist label {
    cursor: pointer;
    transition: all 0.2s ease;
}

.modern-checklist label:hover {
    background-color: rgba(0, 122, 255, 0.05);
}