/* App-spezifisches Overlay über Bootstrap + velkaris.css.
   Das eigentliche Design-System ist css/velkaris.css (verbatim aus Velkaris übernommen —
   dort NICHT editieren, damit Diff-Syncs mit dem Velkaris-Repo trivial bleiben). */

/* Monospace für Hardware-IDs und Lizenzcodes */
.mono { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: 0.85rem; }

/* Blazor-Fehlerbanner */
#blazor-error-ui {
    background: var(--vk-danger-bg);
    color: var(--vk-danger-text);
    bottom: 0;
    box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 2000;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 0.75rem; top: 0.5rem; }

/* Login-Seite (EmptyLayout, ohne Shell) — dunkelblauer Hintergrund wie die Sidebar */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    background: var(--vk-bg-sidebar);
    padding: 2rem 1rem;
}
.login-brand img { height: 42px; }
.login-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: .35rem .9rem;
    color: var(--vk-text-sidebar);
    font-size: .85rem;
}
.login-footer a { color: var(--vk-text-sidebar); text-decoration: none; }
.login-footer a:hover { color: #fff; text-decoration: underline; }

/* Impressum-Seite (gleiche dunkle Bühne wie der Login, aber scrollbarer Inhalt) */
.legal-wrapper { justify-content: flex-start; }
.legal-card { max-width: 720px; width: 100%; }
.legal-card h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--vk-text-muted); margin: 1.25rem 0 .35rem; }
.legal-card h2:first-of-type { margin-top: 0; }
.legal-card p { margin-bottom: .35rem; }

/* Checkbox-/Zahlenfeld-Matrix (LicenseItemModify) — kein Bootstrap-Äquivalent */
.chk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.5rem 1.25rem;
    align-items: center;
}

/* Theme-Umschalter: jeweils nur das Icon des Zielzustands zeigen. */
html[data-theme="dark"] .theme-icon-moon { display: none; }
html:not([data-theme="dark"]) .theme-icon-sun { display: none; }

/* Sortier-Indikatoren für list.js (th[data-sort]) */
th.sorted-asc::after { content: " \2191"; }
th.sorted-desc::after { content: " \2193"; }

/* Lösch-/Aktions-Formulare in Tabellenzellen inline halten */
.inline-form { display: inline; }

/* Berichte (LicenseReports): Chart-Farbtokens + Layout, token-basiert
   (Dark Mode färbt Donuts und Legende automatisch um). */
:root {
    --vk-chart-success: var(--vk-success);
    --vk-chart-danger: var(--vk-danger);
    --vk-chart-info: var(--vk-info-text);
    --vk-chart-muted: var(--vk-text-muted);
}
.charts-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; margin-bottom: 1.5rem; }
.chart-body { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.chart-legend { display: flex; flex-direction: column; gap: .5rem; }
.legend-item { display: flex; align-items: center; gap: .5rem; }
.legend-color { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }
.legend-success { background: var(--vk-chart-success); }
.legend-danger { background: var(--vk-chart-danger); }
.legend-info { background: var(--vk-chart-info); }
.legend-muted { background: var(--vk-chart-muted); }
.activity-item { display: block; padding: .6rem .25rem; border-bottom: 1px solid var(--vk-border-light); text-decoration: none; color: inherit; }
.activity-item:hover { background: var(--vk-accent-subtle); }
.activity-name { font-weight: 600; }
.activity-date { color: var(--vk-text-muted); font-size: .85rem; }

/* Startseite: klickbare Schnellzugriff-Karten (auf velkaris-project-card aufgesetzt) */
.quicklink-card { display: block; height: 100%; text-decoration: none; color: inherit; }
.quicklink-card .quicklink-icon { color: var(--vk-accent); flex-shrink: 0; }
.quicklink-card .quicklink-title { font-weight: 600; color: var(--vk-text); }
.quicklink-card .quicklink-desc { color: var(--vk-text-muted); font-size: .85rem; }
