/* Neusternberg Intranet - Stil */
:root {
    --primary: #C0392B;
    --primary-dark: #a93226;
    --secondary: #2C3E50;
    --secondary-light: #34495e;
    --bg-light: #F8F9FA;
    --white: #FFFFFF;
    --text-dark: #333333;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-light);
}

a { color: var(--primary); text-decoration: none; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 24px; border: none; border-radius: 30px;
    font-weight: 700; font-size: 0.9rem; cursor: pointer;
    transition: all 0.3s; text-decoration: none;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); color: white; transform: translateY(-2px); box-shadow: 0 4px 15px rgba(192,57,43,0.4); }
.btn-secondary { background: var(--secondary); color: white; }
.btn-secondary:hover { background: var(--secondary-light); color: white; }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-danger { background: var(--danger); color: white; }
.btn-sm { padding: 8px 16px; font-size: 0.8rem; }
.btn-lg { padding: 15px 35px; font-size: 1rem; }

/* Admin Layout */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 260px; background: var(--secondary); color: white;
    padding: 20px 0; position: fixed; height: 100vh; overflow-y: auto;
}
.admin-sidebar-header { padding: 0 20px 30px; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 20px; }
.admin-sidebar-header h2 { font-size: 1.2rem; font-weight: 700; }
.admin-sidebar-header p { font-size: 0.8rem; opacity: 0.7; margin-top: 5px; }
.admin-nav { list-style: none; }
.admin-nav li a {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 20px; color: #bdc3c7; text-decoration: none;
    font-size: 0.9rem; transition: all 0.3s;
}
.admin-nav li a:hover, .admin-nav li a.active {
    background: rgba(255,255,255,0.1); color: white; border-left: 3px solid var(--primary);
}
.admin-nav li a i { width: 20px; text-align: center; }
.admin-main { flex: 1; margin-left: 260px; padding: 30px; background: var(--bg-light); }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.admin-header h1 { font-size: 1.8rem; color: var(--secondary); }

/* Table */
.admin-table { width: 100%; background: white; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.admin-table table { width: 100%; border-collapse: collapse; }
.admin-table th { background: var(--secondary); color: white; padding: 15px 20px; text-align: left; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; }
.admin-table td { padding: 15px 20px; border-bottom: 1px solid var(--border-color); font-size: 0.9rem; }
.admin-table tr:hover { background: #f8f9fa; }

/* Form */
.admin-form { background: white; padding: 30px; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); max-width: 800px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--secondary); font-size: 0.9rem; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 12px 15px; border: 1px solid var(--border-color);
    border-radius: 8px; font-size: 0.9rem; transition: border-color 0.3s, box-shadow 0.3s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(192,57,43,0.1);
}
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.form-actions { display: flex; gap: 15px; margin-top: 30px; }

/* Stats */
.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: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); display: flex; align-items: center; gap: 20px; }
.stat-card-icon { width: 60px; height: 60px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: white; }
.stat-card-icon.red { background: var(--primary); }
.stat-card-icon.green { background: var(--success); }
.stat-card-info h3 { font-size: 1.8rem; font-weight: 800; color: var(--secondary); }
.stat-card-info p { color: var(--text-muted); font-size: 0.85rem; }

.section-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 30px; }
.section-header h2 { font-size: 2rem; color: var(--secondary); }

/* Alerts */
.alert { padding: 15px 20px; border-radius: 8px; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-danger { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* Empty State */
.empty-state { text-align: center; padding: 60px 20px; background: white; border-radius: 10px; }
.empty-state i { font-size: 4rem; color: var(--border-color); margin-bottom: 20px; }
.empty-state h3 { color: var(--secondary); margin-bottom: 10px; }
.empty-state p { color: var(--text-muted); margin-bottom: 20px; }

/* Login */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%); }
.login-box { background: white; padding: 40px; border-radius: 15px; box-shadow: 0 10px 40px rgba(0,0,0,0.2); width: 100%; max-width: 400px; }
.login-box h1 { text-align: center; color: var(--secondary); margin-bottom: 10px; font-size: 1.5rem; }
.login-box .subtitle { text-align: center; color: var(--text-muted); margin-bottom: 30px; }
.login-box .logo { color: var(--primary); font-weight: 800; letter-spacing: -1px; }

/* Responsive */
@media (max-width: 768px) {
    .admin-sidebar { display: none; }
    .admin-main { margin-left: 0; }
    .form-row { grid-template-columns: 1fr; }
}
