/* ═══════════════════════════════════════════════════
   iReports360 — Secondary Overrides & Utilities
   Complements the main app.css design system
   ═══════════════════════════════════════════════════ */

/* ── MudBlazor Component Overrides ── */

/* Remove MudBlazor's default outlined-input border so ours takes over */
.mud-input-outlined .mud-input-outlined-border {
    transition: all 0.25s cubic-bezier(.4,0,.2,1) !important;
}

/* Popover / Menu styling */
.mud-popover {
    border-radius: 14px !important;
    border: 1px solid var(--mud-palette-lines-default) !important;
    box-shadow: 0 10px 40px -8px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

.mud-popover .mud-list,
.mud-popover .mud-menu,
.mud-popover .mud-paper {
    overflow-x: hidden !important;
}

/* List items in menus */
.mud-menu-item {
    border-radius: 8px !important;
    margin: 2px 6px !important;
    transition: background 0.15s ease !important;
    max-width: 320px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Tabs */
.mud-tabs-toolbar {
    border-radius: 12px !important;
}

/* Progress bars */
.mud-progress-linear {
    border-radius: 99px !important;
    overflow: hidden;
}

/* Tooltips */
.mud-tooltip {
    border-radius: 8px !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
}

/* Snackbar */
.mud-snackbar {
    border-radius: 14px !important;
    box-shadow: 0 10px 40px -8px rgba(0,0,0,0.15) !important;
}

/* Pagination */
.mud-table-pagination {
    border-top: 1px solid var(--mud-palette-lines-default) !important;
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE HELPERS
   ═══════════════════════════════════════════════════ */
.hidden-sm-down {
    display: inline-flex !important;
}

@media (max-width: 599px) {
    .hidden-sm-down {
        display: none !important;
    }
}
/* ── Dashboard Loading Overlay ── */
.dashboard-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 16px;
    transition: opacity 0.3s ease;
}

[data-mud-theme="dark"] .dashboard-overlay {
    background: rgba(15, 23, 42, 0.4);
}

.dashboard-content-loading {
    opacity: 0.6;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.dashboard-content-ready {
    opacity: 1;
    transition: opacity 0.5s ease;
}
.dashboard-loading-status {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1001;
    text-align: center;
}

[data-mud-theme="dark"] .dashboard-loading-status {
    background: rgba(30, 41, 59, 0.9) !important;
}

.pulse-text {
    animation: pulse-breathing 2s infinite ease-in-out;
}

@keyframes pulse-breathing {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.98); }
}

/* ── Live Map Popups ── */
.map-clickable-marker {
    cursor: pointer !important;
    pointer-events: auto !important;
}

.custom-live-popup .leaflet-popup-content-wrapper {
    border-radius: 12px !important;
    padding: 4px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2) !important;
}

.custom-live-popup .leaflet-popup-content {
    margin: 8px 12px !important;
}

/* ── Hide Horizontal Scroll ── */
.mud-main-content {
    overflow-x: clip !important;  /* clip hides overflow without breaking sticky */
}

.mud-appbar .mud-toolbar {
    overflow-x: hidden !important;
}

.mud-drawer-content {
    overflow-x: hidden !important;
}

.mud-navmenu {
    overflow-x: hidden !important;
}
