/*
 * 2026-05-05 Senior-Polish: rausgezogen aus dem inline <style>-Block
 * der index.html. Damit ist der Bootstrap-CSS jetzt eine echte
 * `'self'`-Resource und nicht von der `'unsafe-inline'`-CSP-Schwaechung
 * abhaengig. Die Schwaechung bleibt heute trotzdem in der CSP weil
 * MudBlazor zur Laufzeit Inline-Styles injiziert (Component-Library-
 * Constraint, kann erst entfernt werden wenn Mud auf strict-CSP
 * migriert).
 */

:root {
    --mud-primary: #5856D6;
    --app-font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --app-font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

body {
    font-family: var(--app-font-sans);
    font-feature-settings: 'cv11', 'ss03';
}

/* Pages haben monospace-Spans fuer Hostnames + Hashes — durchgaengig
   JetBrains Mono statt Browser-Default-Courier. */
[style*="font-family: monospace"],
.mono,
code, pre, kbd, samp {
    font-family: var(--app-font-mono) !important;
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100vw;
    font-family: var(--app-font-sans);
    background-color: #fafbfc;
}

.loading-spinner {
    border: 4px solid rgba(15, 23, 42, 0.08);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border-left-color: var(--mud-primary);
    animation: spin 1s linear infinite;
}

.loading-text {
    margin-top: 16px;
    color: #6b7280;
    font-weight: 500;
    letter-spacing: 0.04em;
    font-size: 0.8125rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Y11 Side-Peek-Modals: kleine Edit-Forms sliden von rechts rein
   statt zentriert zu poppen. Aus Stripe/Linear/Datadog uebernommen
   — die Top-Level-Liste bleibt sichtbar, der Operator verliert
   den Kontext nicht. Modals mit Class="side-peek-shell" auf dem
   MudDialog opt-in, alles andere (Multi-Tab CustomerDialog,
   AgentDetailDialog, Result-Dialogs) bleibt zentriert. */
.mud-dialog-container:has(> .mud-dialog.side-peek-shell) {
    justify-content: flex-end;
    align-items: stretch;
    padding: 0;
}

.mud-dialog.side-peek-shell {
    margin: 0 !important;
    height: 100vh !important;
    max-height: 100vh !important;
    width: 560px !important;
    max-width: 92vw !important;
    border-radius: 0 !important;
    box-shadow: -8px 0 24px rgba(15, 23, 42, 0.18);
    animation: side-peek-in 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.mud-dialog.side-peek-shell .mud-dialog-content {
    flex: 1 1 auto;
    overflow-y: auto;
}

@keyframes side-peek-in {
    from { transform: translateX(100%); opacity: 0.6; }
    to   { transform: translateX(0);    opacity: 1;   }
}

/* F8 Verlauf-Row Hover-Affordance — macht Klickbarkeit
   sichtbar ohne aufdringlich zu sein. Senior-Pattern aus
   Linear/Stripe: 6% Mud-Surface-Variant-Overlay + Chevron-
   Verstaerkung. */
.verlauf-row {
    cursor: pointer;
    border-radius: 6px;
    padding: 4px 8px;
    margin: 0 -8px;
    transition: background-color 0.12s ease-out;
}
.verlauf-row .verlauf-chevron {
    opacity: 0.35;
    transition: opacity 0.12s ease-out, transform 0.12s ease-out;
}
.verlauf-row:hover {
    background-color: rgba(88, 86, 214, 0.08);
}
.verlauf-row:hover .verlauf-chevron {
    opacity: 0.85;
    transform: translateX(2px);
}
