/* -------------------------------------------------------------------------- */
/* 1. GLOBALE STYLES & THEME TWEAKS                                           */
/* -------------------------------------------------------------------------- */

body {
    transition: background-color 0.3s ease;
}

/* Fix für Textareas: Monospace wirkt professioneller für Vorlagen */
textarea.form-control {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Subtile Schatten für Karten */
.card {
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

[data-bs-theme="dark"] .card {
    border-color: rgba(255, 255, 255, 0.1);
}

/* -------------------------------------------------------------------------- */
/* 2. TABELLEN-STYLING (Dark Mode Fixes)                                      */
/* -------------------------------------------------------------------------- */

/* Spaltenkopf-Fix für Sticky-Header im Dark Mode */
thead.sticky-top tr {
    /* Nutzt die CSS-Variablen von Bootstrap 5.3 für automatische Anpassung */
    background-color: var(--bs-body-bg);
}

.table thead th {
    border-bottom: 2px solid var(--bs-border-color);
    padding: 10px 8px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--bs-secondary-color);
}

/* Zebra-Look und Hover-Effekte subtiler gestalten */
.table-hover tbody tr:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.05);
}

/* Buttons in Tabellenzeilen klein halten */
.btn-link i {
    transition: transform 0.1s ease;
}
.btn-link:hover i {
    transform: scale(1.2);
}

/* -------------------------------------------------------------------------- */
/* 3. LOG-KONSOLE (Terminal Look)                                             */
/* -------------------------------------------------------------------------- */

.console-window {
    background-color: #1a1b1e; /* Sehr dunkles Grau (Professional Dark) */
    color: #a9b7c6;            /* Standard IDE Textfarbe */
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.82rem;
    overflow-y: auto;
    padding: 12px 15px;
    border-bottom-left-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
}

/* Scrollbar-Styling für die Konsole */
.console-window::-webkit-scrollbar {
    width: 10px;
}
.console-window::-webkit-scrollbar-track {
    background: #1a1b1e;
}
.console-window::-webkit-scrollbar-thumb {
    background: #3e3e42;
    border: 2px solid #1a1b1e;
    border-radius: 5px;
}
.console-window::-webkit-scrollbar-thumb:hover {
    background: #4e4e52;
}

/* Log-Einträge & Farben (Pastelltöne für bessere Lesbarkeit auf Dunkel) */
.log-entry {
    margin-bottom: 3px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding-bottom: 2px;
    white-space: pre-wrap;
    word-break: break-all;
}

.log-warn { color: #f1fa8c; }    /* Pastell Gelb */
.log-error { color: #ff5555; }   /* Pastell Rot */
.log-success { color: #50fa7b; } /* Pastell Grün */
.log-info { color: #8be9fd; }    /* Pastell Blau */

/* -------------------------------------------------------------------------- */
/* 4. HEADER & STATUS ELEMENTE                                                */
/* -------------------------------------------------------------------------- */

/* Verhindert das Springen des Headers beim Laden des Spinners */
#filterStatus {
    min-height: 24px;
    min-width: 120px;
}

/* Tooltips/Badges im Header */
.badge {
    letter-spacing: 0.02em;
}

/* Accordion Header Anpassun