/* ================================================================
   Festival Management System - Haupt-Stylesheet
   Dixieland Festival Dresden 2026
   ================================================================ */

/* Reset und Basis */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background-color: #ffffff;
    color: #333;
    line-height: 1.4;
    min-height: 100vh;
}

/* ================================================================
   HEADER - WEIßER HINTERGRUND, HELLGRAUE LINIEN
   ================================================================ */

.header-content {
    background: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
}

.logo a:hover {
    color: #007bff;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-name {
    font-weight: 500;
    color: #666;
}

.admin-btn, .logout-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.admin-btn {
    background: #666;
    color: white;
}

.admin-btn:hover {
    background: #555;
}

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

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

/* ================================================================
   NAVIGATION - SEHR HELLGRAUER HINTERGRUND
   ================================================================ */

.main-nav {
    background: #f8f8f8;
    border-bottom: 1px solid #e0e0e0;
    padding: 0 30px;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 0;
    margin: 0;
}

.nav-item a {
    display: block;
    padding: 15px 25px;
    text-decoration: none;
    color: #666;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    position: relative;
}

.nav-item a:hover {
    color: #333;
    background: #f0f0f0;
}

.nav-item.active a {
    color: #333;
    background: #ffffff;
    border-bottom-color: #007bff;
}

/* Dropdown Navigation */
.nav-item.dropdown {
    position: relative;
}

.dropdown-arrow {
    font-size: 12px;
    margin-left: 5px;
    transition: transform 0.2s;
}

.nav-item.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-top: none;
    min-width: 250px;
    display: none;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.dropdown-menu.show {
    display: block;
}

.dropdown-menu a {
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    border-radius: 0;
}

.dropdown-menu a:hover {
    background: #f8f8f8;
}

.dropdown-menu .submenu-item {
    padding-left: 35px;
    color: #777;
    font-size: 13px;
}

.dropdown-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 5px 0;
}

/* ================================================================
   MAIN CONTENT - MODERNES KOMPAKTES DESIGN
   ================================================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
    min-height: calc(100vh - 200px);
}

.page-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.page-title {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.page-subtitle {
    color: #666;
    font-size: 16px;
}

/* ================================================================
   DASHBOARD KOMPONENTEN
   ================================================================ */

.dashboard-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

/* Schnellzugriff Cards */
.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.quick-card {
    background: #f8f8f8;
    padding: 25px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-card:hover {
    background: #f0f0f0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.quick-card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.quick-card-desc {
    color: #666;
    font-size: 14px;
}

/* Statistiken Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    background: #f8f8f8;
    padding: 25px;
    border-radius: 6px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.stat-label {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

/* ================================================================
   FORMULARE UND TABELLEN
   ================================================================ */

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: #007bff;
}

.form-control:disabled {
    background-color: #f5f5f5;
    color: #666;
}

select.form-control {
    height: 40px;
}

textarea.form-control {
    min-height: 80px;
    resize: vertical;
}

/* Form Layout */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-col {
    flex: 1;
}

.form-col-auto {
    flex: 0 0 auto;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}

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

.btn-primary:hover {
    background: #0056b3;
}

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

.btn-success:hover {
    background: #1e7e34;
}

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

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

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

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

.btn-light {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #e0e0e0;
}

.btn-light:hover {
    background: #e2e6ea;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-lg {
    padding: 15px 30px;
    font-size: 16px;
}

/* Button Groups */
.btn-group {
    display: flex;
    gap: 10px;
}

.btn-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* ================================================================
   TABELLEN
   ================================================================ */

.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.table th,
.table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.table th {
    background: #f8f8f8;
    font-weight: 600;
    color: #333;
}

.table tbody tr:hover {
    background: #f9f9f9;
}

.table-striped tbody tr:nth-child(even) {
    background: #f9f9f9;
}

.table-bordered {
    border: 1px solid #e0e0e0;
}

.table-bordered th,
.table-bordered td {
    border: 1px solid #e0e0e0;
}

/* Tabellen-Aktionen */
.table-actions {
    white-space: nowrap;
}

.table-actions .btn {
    margin-right: 5px;
    padding: 4px 8px;
    font-size: 12px;
}

/* ================================================================
   ALERT-MELDUNGEN
   ================================================================ */

.alert {
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    border-left: 4px solid transparent;
}

.alert-success {
    background: #d4edda;
    border-left-color: #28a745;
    color: #155724;
}

.alert-danger {
    background: #f8d7da;
    border-left-color: #dc3545;
    color: #721c24;
}

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

.alert-info {
    background: #d1ecf1;
    border-left-color: #17a2b8;
    color: #0c5460;
}

.alert-dismissible {
    position: relative;
    padding-right: 40px;
}

.alert .close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
}

.alert .close:hover {
    opacity: 1;
}

/* ================================================================
   CARDS UND PANELS
   ================================================================ */

.card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 20px;
}

.card-header {
    padding: 15px 20px;
    background: #f8f8f8;
    border-bottom: 1px solid #e0e0e0;
    font-weight: 600;
}

.card-body {
    padding: 20px;
}

.card-footer {
    padding: 15px 20px;
    background: #f8f8f8;
    border-top: 1px solid #e0e0e0;
}

/* ================================================================
   FOOTER - WEIßER HINTERGRUND, HELLGRAU
   ================================================================ */

.footer-content {
    background: #f8f8f8;
    border-top: 1px solid #e0e0e0;
    padding: 20px 30px;
    margin-top: 60px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

.footer-content a {
    color: #007bff;
    text-decoration: none;
    margin-left: 15px;
}

.footer-content a:hover {
    text-decoration: underline;
}

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

@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
        text-align: center;
    }
    
    .nav-list {
        flex-wrap: wrap;
    }
    
    .nav-item a {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .quick-access-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .btn-toolbar {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .table-responsive {
        font-size: 14px;
    }
    
    .dropdown-menu {
        position: static;
        width: 100%;
        border: none;
        box-shadow: none;
        background: #f0f0f0;
        margin-top: 5px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .page-title {
        font-size: 24px;
    }
    
    .stat-number {
        font-size: 24px;
    }
}

/* ================================================================
   UTILITY KLASSEN
   ================================================================ */

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

.text-muted { color: #666; }
.text-primary { color: #007bff; }
.text-success { color: #28a745; }
.text-danger { color: #dc3545; }
.text-warning { color: #ffc107; }

.font-weight-bold { font-weight: 600; }
.font-weight-normal { font-weight: 400; }

.d-none { display: none; }
.d-block { display: block; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }
.d-flex { display: flex; }

.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }
.align-items-center { align-items: center; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }

.p-0 { padding: 0; }
.p-1 { padding: 10px; }
.p-2 { padding: 20px; }

.border { border: 1px solid #e0e0e0; }
.border-top { border-top: 1px solid #e0e0e0; }
.border-bottom { border-bottom: 1px solid #e0e0e0; }

.rounded { border-radius: 4px; }
.rounded-lg { border-radius: 6px; }