/* Ergänzungen zu Bulma - bewusst knapp gehalten. */

html, body {
    min-height: 100vh;
}

body {
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

/* Aktiver Navigationspunkt */
.navbar-item.active {
    background-color: rgba(255, 255, 255, 0.1);
    font-weight: 600;
}

/* Hinweisband, wenn der Offline-Modus läuft */
.offline-banner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background-color: #ffdd57;
    color: #3b3108;
    font-size: 0.875rem;
}

.offline-banner .offline-dot {
    display: inline-block;
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background-color: #b8860b;
}

/* Kennzahlen-Kacheln auf der Übersicht */
.metric-card {
    height: 100%;
}

.metric-value {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.1;
}

.metric-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Beschriftungsspalte im Zeitplan nicht umbrechen */
.schedule-table td:first-child {
    white-space: nowrap;
}

/* Vorschau des Mail-HTML im Log */
.mail-preview {
    width: 100%;
    height: 65vh;
    border: 1px solid var(--bulma-border);
    border-radius: 6px;
    background: white;
}

/* Blazor-Fehlerband am unteren Rand */
#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;
}
