/* ═══════════════════════════════════════════════════════════════════
   Heatops — Global Styles
   ═══════════════════════════════════════════════════════════════════ */

/* ── Skip navigation — keyboard accessibility ────────────────────── */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #E65100;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 9999;
    font-family: Inter, Roboto, Helvetica Neue, Arial, sans-serif;
}
.skip-link:focus {
    top: 0;
}

/* ── Card depth & hover ──────────────────────────────────────────── */
.mud-card {
    border: 1px solid var(--mud-palette-lines-default);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.dashboard-stat-card {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.dashboard-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12) !important;
}
.dashboard-stat-card .stat-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ── DataGrid polish ─────────────────────────────────────────────── */
.mud-table-container {
    border-radius: 8px;
    border: 1px solid var(--mud-palette-lines-default);
}
.mud-table .mud-table-head .mud-table-row .mud-table-cell {
    background-color: var(--mud-palette-background);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--mud-palette-text-secondary);
}

/* ── Drawer refinement ───────────────────────────────────────────── */
.mud-drawer {
    border-right: 1px solid var(--mud-palette-lines-default) !important;
}
.mud-nav-link.active {
    background-color: rgba(230, 81, 0, 0.08) !important;
    border-radius: 8px;
    font-weight: 500;
}
.mud-navmenu .mud-nav-link {
    border-radius: 8px;
    margin: 1px 8px;
}

/* ── AppBar subtle shadow ────────────────────────────────────────── */
.mud-appbar {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

/* ── Filled button depth ─────────────────────────────────────────── */
.mud-button-filled {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}
.mud-button-filled:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* ── Page header separator ───────────────────────────────────────── */
.page-header-section {
    border-bottom: 1px solid var(--mud-palette-lines-default);
    padding-bottom: 16px;
    margin-bottom: 24px;
}

/* ── Chip refinements ────────────────────────────────────────────── */
.mud-chip {
    font-weight: 500;
}

/* ── Loading progress — shown while Blazor WASM boots ────────────── */
.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}
.loading-progress circle {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}
.loading-progress circle:last-child {
    stroke: #E65100;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}
.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}
.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

/* ── Blazor error UI ─────────────────────────────────────────────── */
#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}
#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
.blazor-error-boundary {
    background: #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}
.blazor-error-boundary::after {
    content: "An error has occurred.";
}
