/* Focus outline nur bei Tastaturnavigation, nicht bei Maus/Touch */
:focus:not(:focus-visible) {
    outline: none !important;
}

/* Kompakte MudTable-Zeilen */
.compact-table td,
.compact-table th {
    padding-top: 2px !important;
    padding-bottom: 2px !important;
    padding-left: 6px;
    padding-right: 6px;
    line-height: 1.1;
}

.compact-table th {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
}

/* Sort-Pfeile immer sichtbar machen */
.mud-table-sort-label .mud-icon-root {
    visibility: visible !important;
    opacity: 0.4;
}

/* Chart axis labels - dark mode */
.theme-dark .mud-chart text {
    fill: rgba(255, 255, 255, 0.55);
    font-size: 0.7rem;
}

/* Chart axis labels - light mode */
.theme-light .mud-chart text {
    fill: rgba(20, 20, 50, 0.7);
    font-size: 0.7rem;
}

/* Chart grid lines - light mode */
.theme-light .mud-chart line,
.theme-light .mud-chart .mud-chart-gridline {
    stroke: rgba(20, 20, 50, 0.15) !important;
}

/* Chart series lines: force visibility in light mode.
   CSS stroke property overrides SVG stroke attribute.
   path[fill="none"] targets line series (not filled bars/areas). */
.theme-light .mud-chart svg path[fill="none"] {
    stroke: #3d1fcc !important;
    stroke-opacity: 1 !important;
    stroke-width: 2.5px !important;
}

/* Digital Countdown Block */
.countdown-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.countdown-value {
    font-family: 'Courier New', Courier, monospace;
    font-size: 3.5rem;
    font-weight: 700;
    color: #7e6fff;
    background: rgba(126, 111, 255, 0.1);
    border: 1px solid rgba(126, 111, 255, 0.3);
    border-radius: 8px;
    padding: 8px 16px;
    min-width: 90px;
    text-align: center;
    letter-spacing: 4px;
    text-shadow: 0 0 20px rgba(126, 111, 255, 0.8);
}

.theme-light .countdown-label { color: rgba(20, 20, 50, 0.55); }

.countdown-label {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.5);
    letter-spacing: 2px;
    margin-top: 4px;
    font-weight: 600;
}

.app-header-bar {
    height: auto !important;
    padding-top: 4px;
    padding-bottom: 4px;
}

.header-logo {
    display: flex;
    align-items: flex-end;
    flex-shrink: 0;
    text-decoration: none;
    gap: 10px;
}

.header-logo img {
    height: 32px;
    width: auto;
}

.header-title {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    margin-left: 12px;
}

.header-title svg {
    flex-shrink: 0;
    height: 28px;
    width: auto;
}

.header-title h1 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #FEF8E8;
    white-space: nowrap;
    line-height: 1;
    padding-bottom: 4px;
}

.header-title h1 span {
    color: #23FFFF;
}

/* ===== 5-column stats grid on md+ ===== */
@media (min-width: 960px) {
    .stats-grid > .mud-grid-item {
        flex: 0 0 20% !important;
        max-width: 20% !important;
    }
}

/* ===== Adaptive muted text ===== */
.theme-dark .dim-text  { color: rgba(255, 255, 255, 0.40) !important; }
.theme-light .dim-text { color: rgba(20,  20,  50,  0.55) !important; }

/* ===== StatCard label color per theme ===== */
.theme-dark .stat-card-label {
    color: rgba(255, 255, 255, 0.55) !important;
}

.theme-light .stat-card-label {
    color: rgba(20, 20, 50, 0.6) !important;
}

/* ===== Dark mode: no glass, clean MudBlazor surface ===== */
.theme-dark .glass-card {
    background: rgba(26, 35, 50, 0.85) !important;
    border: 1px solid rgba(126, 111, 255, 0.12) !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    transition: border-color 0.2s ease;
}

.theme-dark .glass-card:hover {
    border-color: rgba(126, 111, 255, 0.28) !important;
}

.theme-dark .glass {
    background: rgba(26, 35, 50, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 12px !important;
}

/* ===== Light mode: iPhone-style glassmorphism ===== */
.theme-light .glass-card {
    background: rgba(255, 255, 255, 0.55) !important;
    backdrop-filter: blur(20px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(160%) !important;
    border: 1px solid rgba(255, 255, 255, 0.75) !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255,255,255,0.9) !important;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.theme-light .glass-card:hover {
    box-shadow: 0 8px 32px rgba(126, 111, 255, 0.18), inset 0 1px 0 rgba(255,255,255,0.9) !important;
    border-color: rgba(126, 111, 255, 0.35) !important;
}

.theme-light .glass {
    background: rgba(255, 255, 255, 0.45) !important;
    backdrop-filter: blur(20px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(160%) !important;
    border: 1px solid rgba(255, 255, 255, 0.65) !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
}

/* Light mode: fix text colors inside glass cards */
.theme-light .glass-card .mud-typography,
.theme-light .glass-card p,
.theme-light .glass-card span {
    color: rgba(20, 20, 50, 0.85) !important;
}

/* Keep accent colors (stat values) visible in light mode */
.theme-light .glass-card h5.mud-typography,
.theme-light .glass-card [style*="color: #"],
.theme-light .glass-card [style*="color:#"] {
    opacity: 1;
}

.footer-container {
    background-color: #0f1220;
    color: #dfe6ff;
    margin-top: 12px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
}

.footer-separator {
    margin: 0 0.45rem;
    color: rgba(223, 230, 255, 0.75);
}

.footer-link {
    color: #91b8ff;
    text-decoration: none;
}
.footer-link:hover {
    text-decoration: underline;
}
