/* Festival Management System - Weiß/Hellgrau Design */
@charset "UTF-8";

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #ffffff;
    color: #333;
    line-height: 1.6;
}

/* ==========================================================================
   LOGIN PAGE STYLES - Weiß/Hellgrau
   ========================================================================== */

.login-page {
    background: #f8f9fa;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-main {
    width: 100%;
    max-width: 400px;
    padding: 0;
}

.login-container {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    text-align: center;
}

.login-logo {
    font-size: 2.5rem;
    font-weight: bold;
    color: #495057;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: #6c757d;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.login-form .form-group {
    text-align: left;
    margin-bottom: 1.5rem;
}

.login-btn {
    width: 100%;
    padding: 1rem;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.demo-info {
    margin-top: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.9rem;
    border: 1px solid #e9ecef;
}

/* ==========================================================================
   FORM STYLES
   ========================================================================== */

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #495057;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: border-color 0.3s;
    background: #ffffff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6c757d;
    box-shadow: 0 0 0 3px rgba(108, 117, 125, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* ==========================================================================
   BUTTON STYLES
   ========================================================================== */

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-size: 0.9rem;
}

.btn-primary {
    background: #495057;
    color: white;
}

.btn-primary:hover {
    background: #343a40;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-info {
    background: #17a2b8;
    color: white;
}

.btn-info:hover {
    background: #138496;
}

.btn-warning {
    background: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background: #e0a800;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

/* ==========================================================================
   ALERT STYLES
   ========================================================================== */

.alert {
    padding: 1rem 1.5rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-weight: 500;
    border: 1px solid transparent;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border-color: #ffeaa7;
}

/* ==========================================================================
   HEADER STYLES - Weiß/Hellgrau
   ========================================================================== */

.main-header {
    background: #ffffff;
    border-bottom: 2px solid #e9ecef;
    padding: 0rem 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo h1 {
    color: #495057;
    font-size: 1.8rem;
    font-weight: 700;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.welcome {
    font-weight: 500;
    color: #495057;
}

.role-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.role-badge.admin {
    background: #495057;
    color: white;
}

.role-badge.user {
    background: #6c757d;
    color: white;
}

.preview-btn {
    background: #6c757d;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
}

.preview-btn:hover {
    background: #5a6268;
}

.logout-btn {
    background: #dc3545;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s;
}

.logout-btn:hover {
    background: #c82333;
}

/* ==========================================================================
   NAVIGATION STYLES - Weiß/Hellgrau
   ========================================================================== */

/* ==========================================================================
   NAVIGATION STYLES - Angepasst
   ========================================================================== */

.main-nav {
    background: #ffffff;
    border-bottom: 1px solid #dee2e6;
    padding: 0 2rem;
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 0.5rem;
}

.nav-item {
    padding: 0.67rem 1.5rem;  /* 33% kleiner: war 1rem, jetzt 0.67rem */
    text-decoration: none;
    color: #495057;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.nav-item:hover {
    color: #343a40;
    background: #f8f9fa;
}

.nav-item.active {
    color: #343a40;
    border-bottom-color: #495057;
    background: #f8f9fa;
}

/* Spezielle Formatierung für Regiebuch */
.nav-regiebuch {
    background: #92a897 !important;
    color: white !important;
    font-weight: bold !important;
}

.nav-regiebuch:hover {
    background: #f8f9fa !important;
    color: #343a40 !important;
}

.nav-regiebuch.active {
    background: #92a897 !important;
    color: white !important;
    border-bottom-color: #6d7c73 !important;
}

.nav-item.has-submenu::after {
    content: '▼';
    font-size: 0.7rem;
    margin-left: 0.5rem;
    opacity: 0.6;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 6px;
    padding: 0.5rem 0;
    min-width: 200px;
    display: none;
    z-index: 100;
    border: 1px solid #e9ecef;
}

.nav-item:hover .submenu {
    display: block;
}

.submenu a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: #495057;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s;
}

.submenu a:hover {
    background: #f8f9fa;
    color: #343a40;
}

/* ==========================================================================
   MAIN CONTENT
   ========================================================================== */

.main-content {
    max-width: 1400px;
    margin: 0rem auto;
    padding: 0 2rem;
    background: #ffffff;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;  /* Reduziert von 2rem */
    padding-top: 0.5rem;    /* Reduziert von Standard */
    /* border-bottom entfernt */
}

.page-header-left {
    flex: 1;
    min-width: 0; /* Verhindert Overflow */
}

.page-header-right {
    flex: 0 0 auto;
    margin-left: 2rem;
    min-width: 300px; /* Mindestbreite für Suche/Filter */
}

.page-header h2 {
    color: #495057;
    margin-bottom: 0.25rem; /* Reduziert von 0.5rem */
    display: inline;
    margin-right: 1rem;
}

.page-header p {
    color: #6c757d;
    margin: 0;
    display: inline;
    font-size: 0.95rem;
}

/* Responsive: Auf schmalen Bildschirmen untereinander */
@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .page-header-right {
        width: 100%;
        margin-left: 0;
        min-width: auto;
    }
    
    .page-header h2,
    .page-header p {
        display: block;
        margin-right: 0;
    }
}

/* ==========================================================================
   TABLE STYLES
   ========================================================================== */

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th {
    background: #f8f9fa;
    padding: 0.75rem;
    text-align: left;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #495057;
}

td {
    padding: 0.75rem;
    border-bottom: 1px solid #dee2e6;
}

tr:hover {
    background: #f8f9fa;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.main-footer {
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    padding: 1rem 2rem;
    margin-top: 3rem;
    text-align: center;
    color: #6c757d;
    font-size: 0.9rem;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .user-info {
        justify-content: center;
    }
    
    .main-content {
        padding: 0 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .nav-content {
        flex-wrap: wrap;
    }
    
    table {
        font-size: 0.8rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mt-2 {
    margin-top: 1rem;
}

.p-2 {
    padding: 1rem;
}

.hidden {
    display: none;
}

.visible {
    display: block;
}

/* Hellgraue Kästen/Cards */
.card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.card-header {
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
    border-radius: 6px 6px 0 0;
    margin: -1.5rem -1.5rem 1rem -1.5rem;
}

.card h3 {
    color: #495057;
    margin-bottom: 0.5rem;
}

/* Grid Layout Helpers */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   PAGE HEADER FORMULAR - Angepasst
   ========================================================================== */

.page-header-right input[type="text"] {
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem; /* Gleiche Größe wie "35 Einträge" */
    border: 2px solid #e9ecef;
    border-radius: 4px;
    width: 150px;
}

.page-header-right select {
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem; /* Gleiche Größe wie "35 Einträge" */
    border: 2px solid #e9ecef;
    border-radius: 4px;
    width: 130px; /* Etwas größer */
}

.page-header-right input::placeholder {
    font-size: 0.95rem; /* Gleiche Größe wie "35 Einträge" */
    color: #6c757d;
}

/* ==========================================================================
   TABELLE - Überarbeitet
   ========================================================================== */

table thead th {
    background: #f8f9fa;
    padding: 0.5rem 0.75rem; /* Kompakter */
    text-align: left;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #495057;
    font-size: 0.85rem; /* Kleinere Schrift */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

table tbody td {
    padding: 0.75rem;
    border-bottom: 1px solid #dee2e6;
    vertical-align: middle;
}

/* Bandname Styling */
.band-name {
    font-weight: bold;
    color: #343a40;
}

.band-country {
    font-weight: normal;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Icon Buttons */
.icon-btn {
    display: inline-block;
    width: 24px;
    height: 24px;
    margin: 0 2px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.icon-btn:hover {
    opacity: 0.7;
}

.icon-btn svg {
    width: 100%;
    height: 100%;
}

/* Zentrierte Icon-Spalten */
.text-center {
    text-align: center;
}

/* ==========================================================================
   TABELLE - Kompakt & Tooltips
   ========================================================================== */

table thead th {
    background: #f8f9fa;
    padding: 0.4rem 0.6rem; /* Noch kompakter */
    text-align: left;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #495057;
    font-size: 0.8rem; /* Kleinere Schrift */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

table tbody td {
    padding: 0.5rem 0.6rem; /* Reduziert von 0.75rem */
    border-bottom: 1px solid #dee2e6;
    vertical-align: middle;
    line-height: 1.2; /* Kompaktere Zeilenhöhe */
}

table tbody tr {
    height: auto; /* Automatische Höhe */
}

/* Bandname Styling */
.band-name {
    font-weight: bold;
    color: #343a40;
    font-size: 0.95rem;
}

.band-country {
    font-weight: normal;
    color: #6c757d;
    font-size: 0.85rem;
}

/* Icon Buttons - Kleiner */
.icon-btn {
    display: inline-block;
    width: 18px; /* Reduziert von 24px */
    height: 18px; /* Reduziert von 24px */
    margin: 0 1px;
    cursor: pointer;
    transition: opacity 0.3s;
    position: relative;
}

.icon-btn:hover {
    opacity: 0.7;
}

.icon-btn svg {
    width: 100%;
    height: 100%;
}

/* Tooltip Styling */
.tooltip {
    position: relative;
    cursor: help;
}

.tooltip .tooltip-text {
    visibility: hidden;
    background-color: white;
    color: #333;
    text-align: left;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 8px 12px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    width: 200px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    font-size: 0.9rem;
    line-height: 1.4;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: white transparent transparent transparent;
}

.tooltip .tooltip-text::before {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: #ccc transparent transparent transparent;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Zentrierte Icon-Spalten */
.text-center {
    text-align: center;
}

/* Globale Tabellen-Kompaktheit - ALLE TABELLEN BETROFFEN */
table {
    font-size: 0.9rem; /* Kleinere Schrift für alle Tabellen */
}

/* Responsive: Noch kompakter auf kleinen Bildschirmen */
@media (max-width: 768px) {
    table tbody td {
        padding: 0.4rem 0.5rem;
        font-size: 0.85rem;
    }
    
    .icon-btn {
        width: 16px;
        height: 16px;
    }
}
/* ==========================================================================
   FORMULAR STYLING - Sehr kompakt & übersichtlich
   ========================================================================== */

.form-container {
    max-width: 1000px; /* Etwas breiter für bessere Platznutzung */
}

.form-group {
    margin-bottom: 0.8rem; /* Reduziert von 1rem */
}

.form-group label {
    display: block;
    margin-bottom: 0.3rem; /* Sehr kompakt */
    font-weight: normal; /* Nicht fett */
    color: #495057; /* Dunkelgrau */
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.5rem; /* Sehr kompakt */
    border: 2px solid #e9ecef;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: border-color 0.3s;
    background: #ffffff;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem; /* Reduziert */
    margin-bottom: 0.8rem; /* Reduziert */
}

.form-row-three {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

/* Radio Button Styling */
.radio-group {
    display: flex;
    gap: 1.2rem; /* Kompakter */
    align-items: center;
    margin-top: 0.3rem; /* Reduziert */
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 0.4rem; /* Kompakter */
}

.radio-item input[type="radio"] {
    width: auto;
    margin: 0;
    transform: scale(1.1); /* Etwas kleiner */
}

.radio-item label {
    margin: 0;
    font-weight: normal;
    color: #495057;
    font-size: 0.9rem;
}

/* Checkbox Styling */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.3rem; /* Reduziert */
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    height: 16px;
    width: 16px;
    transform: scale(1.2);
    margin: 0;
}

.checkbox-group label {
    margin: 0;
    font-weight: normal;
    color: #495057;
    cursor: pointer;
    font-size: 0.9rem;
}

/* URL Felder */
.url-group {
    margin-bottom: 0.4rem; /* Kompakter */
}

.url-input {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    margin-bottom: 0.4rem; /* Kompakter */
}

.url-input input {
    flex: 1;
}

.url-remove {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.5rem 0.7rem; /* Kompakter */
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
}

.url-add {
    background: #28a745;
    color: white;
    border: none;
    padding: 0.4rem 0.8rem; /* Kompakter */
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    margin-top: 0.3rem; /* Reduziert */
}

/* Action Bar oben */
.action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem; /* Reduziert */
    padding: 0.8rem 1rem; /* Kompakter */
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.action-bar-right {
    display: flex;
    gap: 0.4rem; /* Kompakter */
}

/* Pflichtfeld-Markierung */
.required {
    color: #dc3545;
}

@media (max-width: 768px) {
    .form-row, .form-row-three {
        grid-template-columns: 1fr;
    }
    
    .radio-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }
    
    .action-bar {
        flex-direction: column;
        gap: 0.8rem;
    }
}

/* ==========================================================================
   BUTTON STYLING - Outline Buttons
   ========================================================================== */

.btn-outline-secondary {
    background: transparent;
    color: #6c757d;
    border: 2px solid #6c757d;
}

.btn-outline-secondary:hover {
    background: #6c757d;
    color: white;
}

.btn-outline-info {
    background: transparent;
    color: #17a2b8;
    border: 2px solid #17a2b8;
}

.btn-outline-info:hover {
    background: #17a2b8;
    color: white;
}
/* ==========================================================================
   NAVIGATION SUBMENU - Erweitert
   ========================================================================== */

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 6px;
    padding: 0.5rem 0;
    min-width: 220px;
    display: none;
    z-index: 100;
    border: 1px solid #e9ecef;
}

.nav-item:hover .submenu {
    display: block;
}

.submenu a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: #495057;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s;
    font-size: 0.9rem;
}

.submenu a:hover {
    background: #f8f9fa;
    color: #343a40;
}

/* Submenü Trenner */
.submenu-divider {
    padding: 0.5rem 1.5rem;
    font-size: 0.8rem;
    font-weight: bold;
    color: #6c757d;
    text-transform: uppercase;
    border-top: 1px solid #e9ecef;
    margin-top: 0.5rem;
    background: #f8f9fa;
}

/* Submenü für Einstellungen */
.has-submenu {
    position: relative;
    cursor: pointer;
}

.has-submenu::after {
    content: '▼';
    font-size: 0.7rem;
    margin-left: 0.5rem;
    opacity: 0.6;
}
/* ==========================================================================
   NAVIGATION SUBMENU - Ohne Dreieck, platzsparend
   ========================================================================== */

/* Submenü für Einstellungen */
.has-submenu {
    position: relative;
    cursor: pointer;
}

/* Dreieck komplett entfernt für maximalen Platz */
.has-submenu::after {
    display: none;
}

/* Hover-Indikator durch subtile Hintergrundfarbe */
.has-submenu:hover {
    background: #f8f9fa;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 6px;
    padding: 0.5rem 0;
    min-width: 220px;
    display: none;
    z-index: 100;
    border: 1px solid #e9ecef;
}

.nav-item:hover .submenu,
.has-submenu:hover .submenu {
    display: block;
}

.submenu a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: #495057;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s;
    font-size: 0.9rem;
}

.submenu a:hover {
    background: #f8f9fa;
    color: #343a40;
}

/* Submenü Trenner */
.submenu-divider {
    padding: 0.5rem 1.5rem;
    font-size: 0.8rem;
    font-weight: bold;
    color: #6c757d;
    text-transform: uppercase;
    border-top: 1px solid #e9ecef;
    margin-top: 0.5rem;
    background: #f8f9fa;
}
/* ==========================================================================
   SYSTEM-LOG STYLES - Anhängen an main.css
   ========================================================================== */

/* Log-Tabelle */
.log-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11pt;
    margin-bottom: 2rem;
}

.log-table th, 
.log-table td {
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    text-align: left;
    vertical-align: top;
}

.log-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.log-table tr:nth-child(even) {
    background: #f8f9fa;
}

.log-date-header {
    background: #495057 !important;
    color: white;
    font-weight: bold;
    text-align: center;
}

/* Aktions-Farben */
.log-action-insert { 
    color: #28a745; 
    font-weight: bold; 
}

.log-action-update { 
    color: #ffc107; 
    font-weight: bold; 
}

.log-action-delete { 
    color: #dc3545; 
    font-weight: bold; 
}

.log-action-login { 
    color: #17a2b8; 
    font-weight: bold; 
}

.log-action-admin_action { 
    color: #6f42c1; 
    font-weight: bold; 
}

/* Log-Filter */
.log-filters {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 6px;
    margin-bottom: 2rem;
    border: 1px solid #dee2e6;
}

.log-filter-row {
    display: flex;
    gap: 1rem;
    align-items: end;
    flex-wrap: wrap;
}

/* Admin-Bereich für Log-Löschung */
.log-admin-section {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 1.5rem;
    border-radius: 6px;
    margin-bottom: 2rem;
}

.log-admin-section h3 {
    color: #856404;
    margin-bottom: 1rem;
}

.log-delete-form {
    display: flex;
    gap: 1rem;
    align-items: end;
    flex-wrap: wrap;
}

/* Statistik-Box */
.log-stats-box {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

/* Werte-Änderung Anzeige */
.log-value-change {
    font-family: monospace;
    background: #f8f9fa;
    padding: 2px 4px;
    border-radius: 3px;
    border: 1px solid #dee2e6;
}

.log-old-value { 
    color: #dc3545; 
}

.log-new-value { 
    color: #28a745; 
}

/* Footer Log-Link */
.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left {
    text-align: left;
}

.footer-right {
    text-align: right;
}

.footer-log-link {
    color: #6c757d;
    text-decoration: underline;
    font-weight: normal;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.footer-log-link:hover {
    color: #495057;
    background: rgba(108, 117, 125, 0.1);
}

/* Responsive für Log-System */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .footer-left,
    .footer-right {
        text-align: center;
    }
    
    .log-filter-row,
    .log-delete-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .log-table {
        font-size: 10pt;
    }
    
    .log-table th,
    .log-table td {
        padding: 6px 8px;
    }
}