/* assets/style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    display: flex;
    min-height: 100vh;
}

/* Login Styles */
.login-box, .setup-box {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 400px;
    margin: auto;
}

.login-box h1, .setup-box h1 {
    color: #667eea;
    text-align: center;
    margin-bottom: 0.5rem;
}

.login-box h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #333;
}

.login-box form div, .setup-box form div {
    margin-bottom: 1rem;
}

.login-box label {
    display: block;
    margin-bottom: 0.5rem;
    color: #555;
}

.login-box input, .setup-box input, .setup-box select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.login-box button, .setup-box button {
    width: 100%;
    padding: 0.75rem;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.login-box button:hover, .setup-box button:hover {
    background: #5a67d8;
}

.error {
    background: #fed7d7;
    color: #c53030;
    padding: 0.75rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.success {
    background: #c6f6d5;
    color: #276749;
    padding: 0.75rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

/* Navbar */
.navbar {
    background: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
}

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

/* Sidebar */
.sidebar {
    width: 250px;
    background: #2d3748;
    color: white;
    position: fixed;
    top: 60px;
    left: 0;
    bottom: 0;
    overflow-y: auto;
}

.nav-menu {
    list-style: none;
    padding: 1rem 0;
}

.nav-menu li a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: white;
    text-decoration: none;
    transition: background 0.3s;
}

.nav-menu li a:hover {
    background: #4a5568;
}

/* Main Content */
.main-content {
    margin-left: 250px;
    margin-top: 60px;
    padding: 2rem;
    flex: 1;
}

/* Cards */
.card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #667eea;
}

.stat-label {
    color: #666;
    margin-top: 0.5rem;
}

/* Tables */
table {
    width: 100%;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background: #f7fafc;
    font-weight: 600;
    color: #4a5568;
}

tr:hover {
    background: #f7fafc;
}

/* Buttons */
.btn-small {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #edf2f7;
    color: #4a5568;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.875rem;
    transition: background 0.3s;
}

.btn-small:hover {
    background: #e2e8f0;
}

/* Forms */
.form-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.form-row input, .form-row select {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* QR Code Box */
.qr-box {
    text-align: center;
    padding: 1rem;
    background: #f7fafc;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.qr-box code {
    display: block;
    background: white;
    padding: 0.5rem;
    border-radius: 5px;
    font-family: monospace;
    word-break: break-all;
}

/* Warning */
.warning {
    background: #feebc8;
    color: #c05621;
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem 0;
}

/* Info */
.info {
    background: #bee3f8;
    color: #2c5282;
    padding: 1rem;
    border-radius: 5px;
    margin-top: 1rem;
}

/* Checklist */
.checklist {
    background: #e6fffa;
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem 0;
}

.checklist ul {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        position: relative;
        top: 0;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .navbar {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        flex-direction: column;
    }
}
/* Zusätzliche Styles für Reports und Trainer */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.full-width {
    grid-column: 1 / -1;
}

.form-actions {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
}

.btn-cancel {
    padding: 0.5rem 1rem;
    background: #e2e8f0;
    color: #4a5568;
    text-decoration: none;
    border-radius: 5px;
}

.btn-cancel:hover {
    background: #cbd5e0;
}

.filter-bar {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.filter-form {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-form input, .filter-form select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.btn-reset {
    padding: 0.5rem 1rem;
    background: #e2e8f0;
    color: #4a5568;
    text-decoration: none;
    border-radius: 5px;
}

.actions {
    white-space: nowrap;
}

.btn-icon {
    text-decoration: none;
    margin: 0 0.25rem;
    font-size: 1.1rem;
}

.btn-icon.delete {
    color: #e53e3e;
}

.text-warning {
    color: #ecc94b;
    font-weight: bold;
}

.text-danger {
    color: #e53e3e;
    font-weight: bold;
}

.warning-row {
    background-color: #feebc8;
}

.badge.active, .badge.valid {
    background: #c6f6d5;
    color: #22543d;
}

.badge.inactive, .badge.expired {
    background: #fed7d7;
    color: #742a2a;
}

.badge.warning {
    background: #feebc8;
    color: #7b341e;
}

.nav-menu li a.active {
    background: #4a5568;
}
.btn-primary {
    display: inline-block;
    background-color: #4f46e5;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
}
.btn-primary:hover {
    background-color: #4338ca;
}