/* ============================================================
   WundcuraBI – App CSS
   ============================================================ */

/* Allgemein */
body {
    font-size: 0.925rem;
    background-color: #f8f9fa;
}

/* Navigation */
.navbar-brand {
    font-size: 1.1rem;
    letter-spacing: 0.02em;
}

/* Karten */
.card {
    border-radius: 0.6rem;
}

/* Tabellen */
.table thead th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6c757d;
    font-weight: 600;
    border-top: none;
}

/* Status-Badges */
.badge-success-soft {
    background-color: #d1fae5;
    color: #065f46;
}
.badge-danger-soft {
    background-color: #fee2e2;
    color: #991b1b;
}
.badge-warning-soft {
    background-color: #fef3c7;
    color: #92400e;
}
.badge-secondary-soft {
    background-color: #e2e8f0;
    color: #475569;
}

/* Login-Seite */
body.bg-light .card {
    border-radius: 0.75rem;
}

/* TOTP-Code Eingabe */
.letter-spacing-wide {
    letter-spacing: 0.5em;
    font-family: monospace;
    font-size: 1.5rem;
}

/* Charts Container */
.chart-container {
    position: relative;
    min-height: 380px;
}

/* Debug Panel Scrollbar */
#debug-panel::-webkit-scrollbar {
    width: 6px;
}
#debug-panel::-webkit-scrollbar-track {
    background: #1a1a2e;
}
#debug-panel::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 3px;
}

/* Status-Karten */
.status-card-ok {
    border-left: 4px solid #198754;
}
.status-card-error {
    border-left: 4px solid #dc3545;
}
.status-card-never {
    border-left: 4px solid #adb5bd;
}
.status-card-running {
    border-left: 4px solid #0d6efd;
}

/* Paginierung */
.pagination .page-link {
    font-size: 0.85rem;
}

/* Responsive Tabellen */
@media (max-width: 768px) {
    .table-responsive-stack thead {
        display: none;
    }
    .table-responsive-stack tr {
        display: block;
        margin-bottom: 0.75rem;
        border: 1px solid #dee2e6;
        border-radius: 0.375rem;
    }
    .table-responsive-stack td {
        display: flex;
        justify-content: space-between;
        padding: 0.4rem 0.75rem;
        border-bottom: 1px solid #f0f0f0;
    }
    .table-responsive-stack td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #6c757d;
        font-size: 0.75rem;
        text-transform: uppercase;
        margin-right: 0.5rem;
    }
}

/* Flatpickr Anpassung */
.flatpickr-input {
    background-color: #fff !important;
}

/* Alert klein */
.alert-sm {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
}
