/* Berichtsheft CSS - Durchgängiges Dark/Light Mode Schema */

:root {
    /* Light Mode Farben */
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f3f4;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --text-muted: #868e96;
    --border-primary: #dee2e6;
    --shadow-primary: rgba(0, 0, 0, 0.1);
    
    /* Dark Mode Farben - Optimierte Lesbarkeit */
    --dark-bg-primary: #0f1419;
    --dark-bg-secondary: #1c2128;
    --dark-bg-tertiary: #262c36;
    --dark-bg-hover: #2f3441;
    --dark-text-primary: #f0f6fc;
    --dark-text-secondary: #c9d1d9;
    --dark-text-muted: #8b949e;
    --dark-border-primary: #30363d;
    --dark-shadow-primary: rgba(1, 4, 9, 0.8);
    
    /* Akzentfarben */
    --accent-blue: #0969da;
    --accent-green: #1a7f37;
    --accent-red: #cf222e;
    --accent-yellow: #bf8700;
}

body.dark-mode .admin-table {
    background: var(--dark-bg-secondary) !important;
    border: 1px solid var(--dark-border-primary) !important;
}

body.dark-mode .admin-table th {
    background: var(--dark-bg-tertiary) !important;
    color: var(--dark-text-primary) !important;
    border-color: var(--dark-border-primary) !important;
}

body.dark-mode .admin-table td {
    background: var(--dark-bg-secondary) !important;
    color: var(--dark-text-primary) !important;
    border-color: var(--dark-border-primary) !important;
}

/* Alle Links */
body.dark-mode a {
    color: var(--accent-blue) !important;
}

body.dark-mode a:hover {
    color: var(--dark-text-primary) !important;
}

/* E-Mail Test Sektion */
.email-test-section {
    background: var(--bg-tertiary);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    border: 1px solid var(--border-primary);
    transition: all 0.3s ease;
}

body.dark-mode .email-test-section {
    background: var(--dark-bg-tertiary);
    border-color: var(--dark-border-primary);
}

.email-test-desc {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

body.dark-mode .email-test-desc {
    color: var(--dark-text-secondary);
}

.email-test-form {
    margin-bottom: 15px;
}

.email-test-inputs {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.email-test-input {
    flex: 1;
    min-width: 250px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    color: var(--text-primary);
}

body.dark-mode .email-test-input {
    background: var(--dark-bg-secondary);
    border-color: var(--dark-border-primary);
    color: var(--dark-text-primary);
}

body.dark-mode .email-test-input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 2px rgba(9, 105, 218, 0.3);
}

.email-test-hint {
    display: block;
    margin-top: 5px;
    opacity: 0.8;
    font-size: 0.875rem;
}

.email-config-info {
    margin-top: 15px;
    font-size: 14px;
}

.email-config-details {
    color: var(--text-secondary);
}

body.dark-mode .email-config-details {
    color: var(--dark-text-secondary);
}

.status-active {
    color: var(--accent-green);
}

.status-inactive {
    color: var(--accent-red);
}

body.dark-mode .status-active {
    color: #3fb950;
}

body.dark-mode .status-inactive {
    color: #f85149;
}

/* Datenbank-Konfiguration Styles */
.db-config-form {
    margin-bottom: 20px;
}

.form-section {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    background: var(--bg-secondary);
}

body.dark-mode .form-section {
    border-color: var(--dark-border-primary);
    background: var(--dark-bg-secondary);
}

.form-section h4 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-primary);
    padding-bottom: 10px;
}

body.dark-mode .form-section h4 {
    color: var(--dark-text-primary);
    border-color: var(--dark-border-primary);
}

/* Bessere Abstände für form-group-admin */
.form-section .form-group-admin {
    margin-bottom: 25px;
}

.form-section .form-group-admin:last-child {
    margin-bottom: 0;
}

.form-hint {
    display: block;
    margin-top: 6px;
    margin-bottom: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

body.dark-mode .form-hint {
    color: var(--dark-text-muted);
}

.db-config-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border-primary);
}

body.dark-mode .db-config-actions {
    border-color: var(--dark-border-primary);
}

.db-test-result {
    margin-top: 15px;
}

/* System-Info Karte Styling */
.system-info-card {
    margin-top: 30px;
    border-left: 4px solid var(--accent-blue);
}

body.dark-mode .system-info-card {
    border-left-color: var(--accent-blue);
}

.system-info-card h3 {
    color: var(--accent-blue);
}

body.dark-mode .system-info-card h3 {
    color: var(--accent-blue);
}

/* Readonly Inputs in System-Info */
.system-info-card input[readonly] {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
    font-weight: 500;
}

body.dark-mode .system-info-card input[readonly] {
    background: var(--dark-bg-tertiary);
    color: var(--dark-text-secondary);
}

/* Zusätzliche CSS-Variablen in :root integriert */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #34495e, #2c3e50);
    color: white;
    padding: 30px;
    text-align: center;
    position: relative;
}

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

.dark-mode-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.dark-mode-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.form-container {
    padding: 40px;
}

.success-message {
    background: #2ecc71;
    color: white;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}


.form-section h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Original Tabellen-Design wie berichtsheft.c-59.maxcluster.net */
.table-wrapper {
    margin: 20px 0;
    overflow-x: auto;
}

.berichtsheft-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ddd;
    font-family: inherit;
    font-size: 14px;
}

.berichtsheft-table th {
    background: #f8f9fa;
    color: #333;
    padding: 8px 12px;
    text-align: left;
    font-weight: 600;
    border: 1px solid #ddd;
}

.berichtsheft-table td {
    padding: 4px 8px;
    border: 1px solid #ddd;
    vertical-align: middle;
    background: white;
}

.weekday-cell {
    background: #e9ecef !important;
    color: #2c3e50 !important;
    text-align: center;
    vertical-align: middle;
    padding: 15px 8px !important;
    font-weight: 600;
    width: 120px;
}

.weekday-label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
}

.day-column { width: 120px; }
.date-column { width: 150px; }
.hours-column { width: 100px; }
.activity-column { width: auto; min-width: 400px; }

.date-cell {
    text-align: center;
    vertical-align: middle;
}

.date-input {
    width: 100%;
    max-width: 140px;
    padding: 6px 8px;
    border: 1px solid #ced4da;
    background: white;
    font-size: 13px;
    border-radius: 3px;
    text-align: center;
}

.hours-input {
    width: 60px;
    padding: 6px 8px;
    border: 1px solid #ced4da;
    background: white;
    font-size: 13px;
    text-align: center;
    border-radius: 3px;
}

.activity-input {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #ced4da;
    background: white;
    font-size: 13px;
    border-radius: 3px;
    min-height: 32px;
}

.hours-cell {
    text-align: center;
    vertical-align: middle;
}

.berichtsheft-table input:focus {
    outline: 1px solid #007bff;
    background: #f8f9ff;
    border-radius: 2px;
}

.total-hours-display {
    text-align: right;
    margin-top: 10px;
    font-weight: 600;
    color: #495057;
}

/* Table Controls */
.table-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.info-text {
    color: #6c757d;
    font-size: 14px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Form Actions */
.form-actions,
.button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 30px 0;
    flex-wrap: wrap;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-top: 3px solid #007bff;
}

@media (max-width: 768px) {
    .table-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .info-text {
        justify-content: center;
        text-align: center;
    }
}

.button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 20px !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    color: #ffffff !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2) !important;
}

.btn-sm {
    padding: 10px 16px !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    gap: 6px !important;
    min-width: 85px !important;
}

.btn i {
    font-size: 0.9em;
    margin-right: 6px;
}

.btn-sm i {
    font-size: 0.8em;
    margin-right: 4px;
}

.btn-primary {
    background: #0066cc !important;
    color: #ffffff !important;
    border: 2px solid #0066cc !important;
    font-weight: 700 !important;
}

.btn-primary:hover {
    background: #004499 !important;
    border-color: #004499 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(0,102,204,0.3) !important;
}

.btn-success {
    background: #28a745 !important;
    color: #ffffff !important;
    border: 2px solid #28a745 !important;
    font-weight: 700 !important;
}

.btn-success:hover {
    background: #1e7e34 !important;
    border-color: #1e7e34 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(40,167,69,0.3) !important;
}

.btn-danger {
    background: #dc3545 !important;
    color: #ffffff !important;
    border: 2px solid #dc3545 !important;
    font-weight: 700 !important;
}

.btn-danger:hover {
    background: #c82333 !important;
    border-color: #c82333 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-secondary {
    background: #6c757d !important;
    color: #ffffff !important;
    border: 2px solid #6c757d !important;
    font-weight: 700 !important;
}

.btn-secondary:hover {
    background: #545b62 !important;
    border-color: #545b62 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(108,117,125,0.3) !important;
}

.weekday-label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 15px !important;
}

.auto-fill {
    background: #17a2b8;
    color: white;
    padding: 8px 16px;
    border: 1px solid #17a2b8;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 15px;
    font-size: 14px;
}

.auto-fill:hover {
    background: #138496;
    border-color: #138496;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header h1 {
        font-size: 1.8rem;
    }
    
    .form-container {
        padding: 20px;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .days-table {
        font-size: 0.9rem;
    }
    
    .days-table th,
    .days-table td {
        padding: 8px;
    }
}

/* DARK MODE - DURCHGÄNGIGES KONSISTENTES SCHEMA ====*/
body.dark-mode {
    background: var(--dark-bg-primary);
    color: var(--dark-text-primary);
}

/* Basis Container */
body.dark-mode .container,
body.dark-mode .dashboard-container,
body.dark-mode .admin-container {
    background: var(--dark-bg-secondary);
    box-shadow: 0 16px 32px var(--dark-shadow-primary);
    border: 1px solid var(--dark-border-primary);
}

/* Alle Sektionen */
body.dark-mode .form-section {
    background: var(--dark-bg-secondary);
    border: 1px solid var(--dark-border-primary);
    border-left: 3px solid var(--accent-blue);
}

/* Alle Überschriften */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
    color: var(--dark-text-primary) !important;
}

/* Alle Labels und Text */
body.dark-mode label,
body.dark-mode p,
body.dark-mode span,
body.dark-mode div,
body.dark-mode td,
body.dark-mode th {
    color: var(--dark-text-primary) !important;
}

/* Alle Eingabefelder */
body.dark-mode input, 
body.dark-mode select, 
body.dark-mode textarea {
    background: var(--dark-bg-tertiary) !important;
    border: 1px solid var(--dark-border-primary) !important;
    color: var(--dark-text-primary) !important;
}

body.dark-mode input:focus, 
body.dark-mode select:focus, 
body.dark-mode textarea:focus {
    background: var(--dark-bg-hover) !important;
    border-color: var(--accent-blue) !important;
    box-shadow: 0 0 0 2px rgba(9, 105, 218, 0.3) !important;
    color: var(--dark-text-primary) !important;
}

body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder {
    color: var(--dark-text-muted) !important;
}

/* Alle Tabellen */
body.dark-mode .berichtsheft-table,
body.dark-mode table {
    background: var(--dark-bg-secondary) !important;
    border: 1px solid var(--dark-border-primary) !important;
}

body.dark-mode .berichtsheft-table th,
body.dark-mode th {
    background: var(--dark-bg-tertiary) !important;
    color: var(--dark-text-primary) !important;
    border: 1px solid var(--dark-border-primary) !important;
}

body.dark-mode .berichtsheft-table td,
body.dark-mode td {
    background: var(--dark-bg-secondary) !important;
    color: var(--dark-text-primary) !important;
    border: 1px solid var(--dark-border-primary) !important;
}

body.dark-mode .weekday-cell {
    background: var(--dark-bg-tertiary) !important;
    color: var(--dark-text-primary) !important;
    vertical-align: top;
    font-weight: 600;
}

body.dark-mode .weekday-label {
    color: var(--dark-text-primary) !important;
    font-weight: 600;
}

body.dark-mode .berichtsheft-table input {
    background: var(--dark-bg-tertiary) !important;
    color: var(--dark-text-primary) !important;
    border: 1px solid var(--dark-border-primary) !important;
}

body.dark-mode .berichtsheft-table input:focus {
    background: var(--dark-bg-hover) !important;
    border-color: var(--accent-blue) !important;
    box-shadow: 0 0 0 2px rgba(9, 105, 218, 0.3) !important;
}

/* Alle UI-Elemente */
body.dark-mode .total-hours-display {
    background: var(--dark-bg-tertiary) !important;
    color: var(--dark-text-primary) !important;
    border: 1px solid var(--dark-border-primary) !important;
}

body.dark-mode .info-text {
    color: var(--dark-text-secondary) !important;
}

body.dark-mode .button-group,
body.dark-mode .form-actions {
    background: var(--dark-bg-secondary) !important;
    border: 1px solid var(--dark-border-primary) !important;
}

body.dark-mode .success-message {
    background: var(--dark-bg-tertiary) !important;
    color: var(--accent-green) !important;
    border: 1px solid var(--accent-green) !important;
}

/* Header */
body.dark-mode .header,
body.dark-mode .dashboard-header,
body.dark-mode .admin-header,
body.dark-mode .report-header {
    background: var(--dark-bg-tertiary) !important;
    color: var(--dark-text-primary) !important;
    border: 1px solid var(--dark-border-primary) !important;
}

/* Login Styles */
.login-container {
    max-width: 400px;
    margin: 50px auto;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.login-header {
    background: linear-gradient(135deg, #34495e, #2c3e50);
    color: white;
    padding: 30px;
    text-align: center;
    position: relative;
}

.login-form {
    padding: 30px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    margin-bottom: 16px;
}

.form-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.login-button {
    width: 100%;
    padding: 12px;
    background: #007bff;
    color: white;
    border: 1px solid #007bff;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-button:hover {
    background: #0056b3;
    border-color: #0056b3;
}

/* Alle Buttons - Verbesserte Lesbarkeit */
body.dark-mode .btn,
body.dark-mode button,
body.dark-mode .login-button {
    background: var(--dark-bg-tertiary) !important;
    color: var(--dark-text-primary) !important;
    border: 1px solid var(--dark-border-primary) !important;
    font-weight: 500 !important;
}

body.dark-mode .btn:hover,
body.dark-mode button:hover,
body.dark-mode .login-button:hover {
    background: var(--dark-bg-hover) !important;
    border-color: var(--dark-border-primary) !important;
    color: var(--dark-text-primary) !important;
}

body.dark-mode .btn-primary {
    background: #4a90e2 !important;
    color: #ffffff !important;
    border: 2px solid #4a90e2 !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3) !important;
}

body.dark-mode .btn-primary:hover {
    background: #357abd !important;
    border-color: #357abd !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(74,144,226,0.4) !important;
}

body.dark-mode .btn-success {
    background: #28a745 !important;
    color: #ffffff !important;
    border: 2px solid #28a745 !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3) !important;
}

body.dark-mode .btn-success:hover {
    background: #1e7e34 !important;
    border-color: #1e7e34 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(40,167,69,0.4) !important;
}

body.dark-mode .btn-danger {
    background: #dc3545 !important;
    color: #ffffff !important;
    border: 2px solid #dc3545 !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3) !important;
}

body.dark-mode .btn-danger:hover {
    background: #c82333 !important;
    border-color: #c82333 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(220,53,69,0.4) !important;
}

body.dark-mode .btn-secondary {
    background: #6c757d !important;
    color: #ffffff !important;
    border: 2px solid #6c757d !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3) !important;
}

body.dark-mode .btn-secondary:hover {
    background: #545b62 !important;
    border-color: #545b62 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(108,117,125,0.4) !important;
}

/* Universelle Button-Textfarben im Dark Mode */
body.dark-mode button,
body.dark-mode .btn,
body.dark-mode .login-btn,
body.dark-mode .action-btn,
body.dark-mode a.btn {
    color: #ffffff !important;
}

body.dark-mode button:hover,
body.dark-mode .btn:hover,
body.dark-mode .login-btn:hover,
body.dark-mode .action-btn:hover,
body.dark-mode a.btn:hover {
    color: #ffffff !important;
}

/* Dark Mode Login */
body.dark-mode .login-container {
    background: var(--dark-bg-secondary) !important;
    border: 1px solid var(--dark-border-primary) !important;
    box-shadow: 0 16px 32px var(--dark-shadow-primary) !important;
}

body.dark-mode .login-form h2 {
    color: var(--dark-text-primary) !important;
}

/* Game Link Styles */
.game-link {
    text-align: center;
    margin: 20px 0 15px;
    padding: 15px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.game-button {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(40, 167, 69, 0.3);
}

.game-button:hover {
    background: linear-gradient(135deg, #218838, #1ea080);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
    color: white;
    text-decoration: none;
}

.game-button i {
    margin-right: 8px;
}

/* Dark Mode Game Button */
body.dark-mode .game-link {
    border-top: 1px solid var(--dark-border-primary);
    border-bottom: 1px solid var(--dark-border-primary);
}

body.dark-mode .game-button {
    background: linear-gradient(135deg, #4a90e2, #357abd);
    box-shadow: 0 3px 10px rgba(74, 144, 226, 0.3);
}

body.dark-mode .game-button:hover {
    background: linear-gradient(135deg, #357abd, #2e6da4);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.5);
    color: white;
}

/* Dashboard & Admin Styles */
.dashboard-container,
.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.dashboard-header,
.admin-header,
.report-header {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.stats-card,
.user-form-card,
.users-table {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

/* Alle Cards und Bereiche */
body.dark-mode .stats-card,
body.dark-mode .user-form-card,
body.dark-mode .users-table,
body.dark-mode .current-week-card,
body.dark-mode .reports-table,
body.dark-mode .empty-state {
    background: var(--dark-bg-secondary) !important;
    color: var(--dark-text-primary) !important;
    border: 1px solid var(--dark-border-primary) !important;
    box-shadow: 0 8px 16px var(--dark-shadow-primary) !important;
}

/* Alerts */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #f44336;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #4caf50;
}

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

/* Alle Alerts */
body.dark-mode .alert {
    background: var(--dark-bg-tertiary) !important;
    border: 1px solid var(--dark-border-primary) !important;
}

body.dark-mode .alert-error {
    color: var(--accent-red) !important;
    border-left-color: var(--accent-red) !important;
}

body.dark-mode .alert-success {
    color: var(--accent-green) !important;
    border-left-color: var(--accent-green) !important;
}

body.dark-mode .alert-warning {
    color: var(--accent-yellow) !important;
    border-left-color: var(--accent-yellow) !important;
}

body.dark-mode .alert-info {
    color: var(--accent-blue) !important;
    border-left-color: var(--accent-blue) !important;
}

/* Message Cards - Verbesserte Nachrichten-Darstellung */
.message-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    animation: messageSlideIn 0.3s ease-out;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-top: 2px;
}

.message-content {
    flex: 1;
    min-width: 0;
}

.message-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.message-text {
    font-size: 14px;
    line-height: 1.5;
    color: #6b7280;
    margin: 0;
}

.message-text a {
    color: inherit;
    text-decoration: underline;
    word-break: break-all;
}

/* Message Card Variants */
.message-success {
    border-left: 4px solid #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.message-success .message-icon {
    background: #10b981;
    color: white;
}

.message-success .message-title {
    color: #065f46;
}

.message-error {
    border-left: 4px solid #ef4444;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}

.message-error .message-icon {
    background: #ef4444;
    color: white;
}

.message-error .message-title {
    color: #991b1b;
}

.message-info {
    border-left: 4px solid #3b82f6;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.message-info .message-icon {
    background: #3b82f6;
    color: white;
}

.message-info .message-title {
    color: #1e40af;
}

/* Dark Mode Message Cards */
body.dark-mode .message-card {
    background: var(--dark-bg-secondary);
    border: 1px solid var(--dark-border-primary);
    box-shadow: 0 4px 6px rgba(1, 4, 9, 0.3), 0 1px 3px rgba(1, 4, 9, 0.2);
}

body.dark-mode .message-success {
    background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
}

body.dark-mode .message-success .message-title {
    color: #6ee7b7;
}

body.dark-mode .message-success .message-text {
    color: #a7f3d0;
}

body.dark-mode .message-error {
    background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 100%);
}

body.dark-mode .message-error .message-title {
    color: #fca5a5;
}

body.dark-mode .message-error .message-text {
    color: #fecaca;
}

body.dark-mode .message-info {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
}

body.dark-mode .message-info .message-title {
    color: #93c5fd;
}

body.dark-mode .message-info .message-text {
    color: #bfdbfe;
}

/* Tables */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.admin-table th {
    background: #34495e;
    color: white;
    padding: 15px;
    text-align: left;
}

.admin-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

/* Dashboard Spezifische Styles */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
}

.stat-label {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.current-week-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.current-week-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.current-week-header > div:last-child {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.table-actions {
    display: flex !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    min-width: 260px !important;
    white-space: nowrap !important;
}

/* Aktionsspalte breiter machen */
td:last-child {
    width: 280px !important;
    min-width: 280px !important;
}

/* Button-Container in Tabellen */
.berichtsheft-table .table-actions {
    margin: 0 !important;
    padding: 0 !important;
}

/* Zusätzliche Sicherheit für Button-Anordnung */
table .table-actions {
    display: flex !important;
    flex-direction: row !important;
}

table .table-actions .btn {
    flex-shrink: 0 !important;
    margin: 0 2px !important;
}

/* Responsive Anpassungen für große Bildschirme */
@media (min-width: 1200px) {
    .table-actions {
        gap: 12px !important;
    }
    
    .table-actions .btn-sm {
        min-width: 90px !important;
        padding: 10px 18px !important;
    }
}

.week-info h3 {
    color: #2c3e50;
    margin-bottom: 5px;
}

.week-info p {
    color: #7f8c8d;
    margin: 0;
}

.reports-table {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.table-content {
    padding: 0;
}

.table-content table {
    width: 100%;
    border-collapse: collapse;
}

.table-content th,
.table-content td {
    padding: 15px 25px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

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

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #dee2e6;
}

/* Dark Mode Dashboard */
body.dark-mode .stats-grid .stat-card,
body.dark-mode .current-week-card,
body.dark-mode .reports-table {
    background: var(--dark-bg-secondary) !important;
    border: 1px solid var(--dark-border-primary) !important;
    box-shadow: 0 8px 16px var(--dark-shadow-primary) !important;
}

body.dark-mode .stat-number,
body.dark-mode .week-info h3 {
    color: var(--dark-text-primary) !important;
}

body.dark-mode .stat-label,
body.dark-mode .week-info p {
    color: var(--dark-text-secondary) !important;
}

body.dark-mode .table-header {
    background: var(--dark-bg-tertiary) !important;
    border-bottom: 1px solid var(--dark-border-primary) !important;
}

body.dark-mode .table-content th {
    background: var(--dark-bg-tertiary) !important;
    color: var(--dark-text-primary) !important;
}

body.dark-mode .table-content td {
    color: var(--dark-text-primary) !important;
    border-bottom: 1px solid var(--dark-border-primary) !important;
}

body.dark-mode .empty-state {
    color: var(--dark-text-secondary) !important;
}

body.dark-mode .empty-state i {
    color: var(--dark-bg-tertiary) !important;
}

/* Responsive Button-Anordnung */
@media (max-width: 768px) {
    .current-week-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .current-week-header > div:last-child {
        width: 100%;
        justify-content: flex-start;
        flex-direction: column;
        gap: 12px;
    }
    
    .table-actions {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .btn-sm {
        width: auto;
        min-width: 80px;
    }
}

@media (min-width: 769px) {
    .current-week-header > div:last-child .btn {
        min-width: 160px;
    }
}

/* Zusätzliche Form-Elemente */
body.dark-mode .form-control,
body.dark-mode .form-select {
    background: var(--dark-bg-tertiary) !important;
    color: var(--dark-text-primary) !important;
    border: 1px solid var(--dark-border-primary) !important;
}

/* Utility */
.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .dark-mode-btn {
        position: absolute;
        top: 15px;
        right: 15px;
    }
}

/* ADMIN PANEL STYLES ====*/

/* Admin Container */
.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
    padding: 40px 30px;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 40px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

body.dark-mode .admin-header {
    border-bottom-color: var(--dark-border-primary);
    background: var(--dark-bg-secondary);
    box-shadow: 0 2px 8px var(--dark-shadow-primary);
}

.admin-header h1 {
    margin: 0 0 8px 0;
    font-size: 36px;
    color: #2c3e50;
    font-weight: 700;
}

body.dark-mode .admin-header h1 {
    color: var(--dark-text-primary);
}

.admin-header p {
    margin: 0;
    color: #6c757d;
    font-size: 18px;
    font-weight: 400;
}

body.dark-mode .admin-header p {
    color: var(--dark-text-secondary);
}

/* Admin Tabs */
.admin-tabs {
    display: flex;
    background: #ffffff;
    border-radius: 12px;
    padding: 5px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow-x: auto;
    border: 1px solid #e9ecef;
}

body.dark-mode .admin-tabs {
    background: var(--dark-bg-secondary);
    border-color: var(--dark-border-primary);
    box-shadow: 0 2px 10px var(--dark-shadow-primary);
}

.tab-button {
    flex: 1;
    padding: 15px 20px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
    color: #6c757d;
}

body.dark-mode .tab-button {
    color: var(--dark-text-secondary);
}

.tab-button.active {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Stats Grid */
.stats-admin-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-admin-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: center;
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
    min-width: 200px;
}

body.dark-mode .stat-admin-card {
    background: var(--dark-bg-secondary);
    border-color: var(--dark-border-primary);
    box-shadow: 0 5px 15px var(--dark-shadow-primary);
}

.stat-admin-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.stat-admin-card h3 {
    margin: 0 0 10px 0;
    font-size: 36px;
    color: #2c3e50;
}

body.dark-mode .stat-admin-card h3 {
    color: var(--dark-text-primary);
}

.stat-admin-card p {
    margin: 0;
    color: #6c757d;
    font-size: 16px;
}

body.dark-mode .stat-admin-card p {
    color: var(--dark-text-secondary);
}

/* Form Card */
.user-form-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

body.dark-mode .user-form-card {
    background: var(--dark-bg-secondary);
    border-color: var(--dark-border-primary);
    box-shadow: 0 5px 15px var(--dark-shadow-primary);
}

.user-form-card h3 {
    margin: 0 0 20px 0;
    color: #2c3e50;
}

body.dark-mode .user-form-card h3 {
    color: var(--dark-text-primary);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

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

.form-group-admin label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

body.dark-mode .form-group-admin label {
    color: var(--dark-text-primary);
}

.form-group-admin input,
.form-group-admin select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    background: #ffffff;
    color: #2c3e50;
}

body.dark-mode .form-group-admin input,
body.dark-mode .form-group-admin select {
    background: var(--dark-bg-tertiary);
    color: var(--dark-text-primary);
    border-color: var(--dark-border-primary);
}

.form-group-admin input:focus,
.form-group-admin select:focus {
    outline: none;
    border-color: #3498db;
}

/* Users Table */
.users-table {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
}

body.dark-mode .users-table {
    background: var(--dark-bg-secondary);
    border-color: var(--dark-border-primary);
    box-shadow: 0 5px 15px var(--dark-shadow-primary);
}

.table-header {
    padding: 20px 25px;
    border-bottom: 1px solid #e9ecef;
}

body.dark-mode .table-header {
    border-bottom-color: var(--dark-border-primary);
}

.table-header h3 {
    margin: 0;
    color: #2c3e50;
}

body.dark-mode .table-header h3 {
    color: var(--dark-text-primary);
}

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

/* Badge Styles */
.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

body.dark-mode .status-active {
    background: #1e4620;
    color: #4ade80;
}

.status-inactive {
    background: #f8d7da;
    color: #721c24;
}

body.dark-mode .status-inactive {
    background: #4a1e20;
    color: #f87171;
}

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

.role-admin {
    background: #e7e3ff;
    color: #5a4fcf;
}

body.dark-mode .role-admin {
    background: #2d1b69;
    color: #a78bfa;
}

.role-supervisor {
    background: #fff3e0;
    color: #f57c00;
}

body.dark-mode .role-supervisor {
    background: #e65100;
    color: #ffcc80;
}

.role-user {
    background: #e3f2fd;
    color: #1976d2;
}

body.dark-mode .role-user {
    background: #1e3a8a;
    color: #60a5fa;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.btn-xs {
    padding: 4px 8px !important;
    font-size: 11px !important;
    min-width: auto !important;
}

/* Login Status */
.login-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-success {
    color: #27ae60;
}

body.dark-mode .login-success {
    color: #4ade80;
}

.login-failed {
    color: #e74c3c;
}

body.dark-mode .login-failed {
    color: #f87171;
}

/* Report Overview Styles */
.badge-number {
    background: #007bff;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    min-width: 25px;
    text-align: center;
}

body.dark-mode .badge-number {
    background: #4a90e2;
}

.text-muted {
    color: #6c757d !important;
    font-style: italic;
}

body.dark-mode .text-muted {
    color: var(--dark-text-secondary) !important;
}

.stat-icon {
    font-size: 24px;
    margin-bottom: 10px;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    margin: 10px 0 5px 0;
}

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

body.dark-mode .stat-label {
    color: var(--dark-text-secondary);
}

/* Tab switching improvements */
.tab-button:hover {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

body.dark-mode .tab-button:hover {
    background: rgba(74, 144, 226, 0.1);
    color: #4a90e2;
}

/* Admin Responsive Overrides */
@media (max-width: 1024px) {
    .stats-admin-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .admin-container {
        padding: 15px;
    }
    
    .admin-header {
        flex-direction: column;
        text-align: center;
        gap: 25px;
        padding: 30px 20px;
    }
    
    .admin-header h1 {
        font-size: 28px;
        margin-bottom: 5px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-admin-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-tabs {
        flex-direction: column;
    }
    
    .tab-button {
        justify-content: flex-start;
    }
}

/* MODAL STYLES ====*/
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 30px;
    border: none;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: slideIn 0.3s;
}

body.dark-mode .modal-content {
    background-color: var(--dark-bg-secondary);
    color: var(--dark-text-primary);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
}

body.dark-mode .close {
    color: var(--dark-text-secondary);
}

body.dark-mode .close:hover {
    color: var(--dark-text-primary);
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* PASSWORD STRENGTH INDICATOR ====*/
.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

body.dark-mode .progress-bar {
    background-color: var(--dark-border-primary);
}

#strength-bar {
    height: 100%;
    width: 0%;
    transition: width 0.3s ease, background-color 0.3s ease;
    border-radius: 4px;
}

#strength-text {
    font-size: 14px;
    font-weight: 600;
}

/* Improved spacing for forms */
.form-group + .form-group {
    margin-top: 20px;
}

.login-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.login-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.login-links a:hover {
    background-color: rgba(52, 152, 219, 0.1);
}

body.dark-mode .login-links a:hover {
    background-color: rgba(52, 152, 219, 0.2);
}

/* E-MAIL CONFIGURATION STYLES ====*/
.config-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

body.dark-mode .config-card {
    background: var(--dark-bg-secondary);
    border-color: var(--dark-border-primary);
    color: var(--dark-text-primary);
}

.config-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.config-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #f1f3f4;
    vertical-align: top;
}

.config-table td:first-child {
    width: 40%;
    font-weight: 500;
}

body.dark-mode .config-table td {
    border-bottom-color: var(--dark-border-primary);
}

.config-info {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #3498db;
}

body.dark-mode .config-info {
    background: var(--dark-bg-tertiary);
    color: var(--dark-text-primary);
}

.config-example {
    margin: 20px 0;
}

.config-example h5, .config-example h6 {
    margin: 15px 0 8px 0;
    color: #2c3e50;
}

body.dark-mode .config-example h5,
body.dark-mode .config-example h6 {
    color: var(--dark-text-primary);
}

.config-example pre {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 15px;
    border-radius: 6px;
    overflow-x: auto;
    font-size: 13px;
    margin: 10px 0;
}

.config-example code {
    font-family: 'Courier New', monospace;
}

/* Login Info & Security Hints */
.login-info {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
}

.security-info {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.security-info h3 {
    color: var(--text-primary);
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.security-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.security-info li {
    color: var(--text-secondary);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.security-info li i {
    color: var(--accent-green);
    font-size: 12px;
}

.version-info {
    color: var(--text-muted);
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 15px;
}

.version-info i {
    font-size: 10px;
}

/* Dark Mode für Login Info */
body.dark-mode .security-info {
    background: rgba(28, 33, 40, 0.8);
    border: 1px solid var(--dark-border-primary);
    backdrop-filter: blur(10px);
}

body.dark-mode .security-info h3 {
    color: var(--dark-text-primary);
}

body.dark-mode .security-info li {
    color: var(--dark-text-secondary);
}

body.dark-mode .version-info {
    color: var(--dark-text-muted);
}


.form-section h3 {
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-primary);
    color: var(--text-primary);
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.form-row .form-group {
    flex: 1;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
    display: block;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-primary);
    border-radius: 6px;
    font-size: 14px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 2px rgba(9, 105, 218, 0.1);
}

/* Responsive Layout für mobile Geräte */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-section {
        padding: 15px;
    }
}

/* Dark Mode Anpassungen für Formulare */
body.dark-mode .form-section {
    background: var(--dark-bg-secondary);
    border-color: var(--dark-border-primary);
}

body.dark-mode .form-section h3 {
    color: var(--dark-text-primary);
    border-bottom-color: var(--dark-border-primary);
}

body.dark-mode .form-group label {
    color: var(--dark-text-primary);
}

body.dark-mode .form-group input,
body.dark-mode .form-group select,
body.dark-mode .form-group textarea {
    background: var(--dark-bg-tertiary);
    border-color: var(--dark-border-primary);
    color: var(--dark-text-primary);
}

body.dark-mode .form-group input:focus,
body.dark-mode .form-group select:focus,
body.dark-mode .form-group textarea:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.1);
}

/* Universelle Icon-Farben im Dark Mode */
body.dark-mode i,
body.dark-mode .fas,
body.dark-mode .far,
body.dark-mode .fab,
body.dark-mode .fal,
body.dark-mode .fad,
body.dark-mode .fa {
    color: #ffffff !important;
}

/* Ausnahmen für Icons mit spezifischen Farben */
body.dark-mode .message-icon i,
body.dark-mode .status-badge i,
body.dark-mode .btn i,
body.dark-mode button i {
    color: inherit !important;
}

/* Icon-Container im Dark Mode */
body.dark-mode .icon-container,
body.dark-mode .stat-icon,
body.dark-mode .form-group i,
body.dark-mode label i {
    color: #ffffff !important;
}

/* ====================================
   REPORT-SPECIFIC STYLES 
   ==================================== */


.dashboard-header {
    background: linear-gradient(135deg, #34495e, #2c3e50);
    color: white;
    padding: 20px 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.dashboard-header h1 {
    margin: 0;
    font-size: 28px;
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.back-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    text-decoration: none;
}

.main-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Wöchentliche Ansicht Styling */
.weekly-input-group {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.week-period {
    color: #6c757d;
    font-style: italic;
    margin-bottom: 15px;
}

#weekly_activities {
    min-height: 120px;
    resize: vertical;
}

.textarea-hint {
    font-size: 0.875em;
    color: #6c757d;
    margin-top: 5px;
    font-style: italic;
}

.info-text {
    font-size: 0.875em;
    color: #6c757d;
    margin-top: 5px;
}

/* Dark Mode für Report */
body.dark-mode .main-content {
    background: #1a202c;
    color: #e2e8f0;
}

body.dark-mode .dashboard-header {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
}

body.dark-mode .weekly-input-group {
    background: #2d3748;
    border-color: #4a5568;
}

body.dark-mode .week-period,
body.dark-mode .textarea-hint,
body.dark-mode .info-text {
    color: #a0aec0;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .header-actions {
        width: 100%;
        justify-content: center;
    }
}

/* ====================================
   DASHBOARD-SPECIFIC STYLES 
   ==================================== */


.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: center;
    border: 1px solid #e9ecef;
}

.stat-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
}

.stat-label {
    color: #7f8c8d;
    font-size: 14px;
}

.current-week-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.current-week-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.week-info {
    color: #2c3e50;
}

.week-info h3 {
    margin: 0 0 5px 0;
    font-size: 24px;
}

.week-info p {
    margin: 0;
    color: #7f8c8d;
}

.reports-table {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
}

.table-header {
    background: #f8f9fa;
    padding: 20px 30px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.table-header h3 {
    margin: 0;
    color: #2c3e50;
}

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

.table-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #7f8c8d;
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 20px;
    color: #bdc3c7;
}

.empty-state h4 {
    margin: 0 0 10px 0;
    font-size: 20px;
}

.empty-state p {
    margin: 0 0 20px 0;
}

/* ====================================
   DASHBOARD-SPECIFIC RESPONSIVE STYLES 
   ==================================== */

/* Responsive Design */
@media (max-width: 1200px) {
    .dashboard-container {
        padding: 15px;
    }
    
    .dashboard-header {
        padding: 15px 20px;
    }
    
    .dashboard-header h1 {
        font-size: 24px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        padding: 10px;
    }
    
    .dashboard-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .header-actions {
        width: 100%;
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .stats-card {
        text-align: center;
    }
    
    .quick-actions {
        text-align: center;
    }
    
    .action-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .dashboard-header h1 {
        font-size: 20px;
    }
    
    .stats-number {
        font-size: 28px;
    }
    
    .action-btn {
        padding: 12px;
        font-size: 14px;
    }
}

/* Print-Modus Dashboard */
@media print {
    .no-print,
    .header-actions,
    .quick-actions {
        display: none !important;
    }
    
    .dashboard-header {
        background: #333 !important;
        color: white !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    
    .dashboard-container {
        max-width: none;
        padding: 0;
    }
    
    .main-content {
        box-shadow: none;
    }
}

/* ====================================
   PRINT-SPECIFIC STYLES 
   ==================================== */

/* Browser-Reset für Print */
* {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
}

@media screen {
    .print-body {
        font-family: Arial, sans-serif;
        margin: 0;
        padding: 30px 20px;
        background: #e8e8e8;
        color: #333;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
    }
    
    /* Dark Mode für die Seite aktivieren */
    .print-body.dark-mode {
        background: linear-gradient(135deg, #1a1a1a 0%, #2d3748 100%);
        color: #e2e8f0;
    }
}
