* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: #f5f6fa; color: #2c3e50; }

.navbar {
    background: #2c3e50; color: #fff; padding: 12px 30px;
    display: flex; justify-content: space-between; align-items: center;
}
.nav-brand { font-size: 20px; font-weight: 600; }
.nav-links { display: flex; gap: 8px; align-items: center; }
.nav-links a { color: #ecf0f1; text-decoration: none; padding: 6px 14px; border-radius: 4px; font-size: 14px; }
.nav-links a:hover { background: rgba(255,255,255,0.15); }
.btn-logout { background: #e74c3c !important; }
.btn-logout:hover { background: #c0392b !important; }

.container { max-width: 1100px; margin: 30px auto; padding: 0 20px; }

/* Cards */
.card { background: #fff; border-radius: 8px; padding: 24px; margin-bottom: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.card h2 { margin-bottom: 16px; color: #2c3e50; font-size: 22px; }
.card h3 { margin-bottom: 12px; color: #34495e; }

/* Buttons */
.btn { display: inline-block; padding: 8px 18px; border: none; border-radius: 5px; cursor: pointer; text-decoration: none; font-size: 14px; font-weight: 500; transition: 0.2s; }
.btn-primary { background: #3498db; color: #fff; }
.btn-primary:hover { background: #2980b9; }
.btn-success { background: #27ae60; color: #fff; }
.btn-success:hover { background: #219a52; }
.btn-danger { background: #e74c3c; color: #fff; }
.btn-danger:hover { background: #c0392b; }
.btn-warning { background: #f39c12; color: #fff; }
.btn-warning:hover { background: #d68910; }
.btn-sm { padding: 5px 12px; font-size: 13px; }
.btn-print { background: #8e44ad; color: #fff; }
.btn-print:hover { background: #7d3c98; }

/* Tables */
.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 14px; text-align: left; border-bottom: 1px solid #ecf0f1; }
th { background: #f8f9fa; font-weight: 600; color: #2c3e50; }
tr:hover { background: #f8f9fa; }

/* Forms */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 500; color: #34495e; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 9px 12px; border: 1px solid #ddd; border-radius: 5px; font-size: 14px;
}
.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.15);
}
.form-row { display: flex; gap: 16px; }
.form-row .form-group { flex: 1; }

/* Login */
.login-box {
    max-width: 400px; margin: 80px auto; background: #fff; padding: 40px;
    border-radius: 10px; box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.login-box h1 { text-align: center; margin-bottom: 30px; color: #2c3e50; }
.login-box .form-group { margin-bottom: 20px; }
.login-box button { width: 100%; padding: 12px; font-size: 16px; }
.login-error { background: #fdecea; color: #c0392b; padding: 10px; border-radius: 5px; margin-bottom: 16px; text-align: center; }

/* Alerts */
.alert { padding: 12px 16px; border-radius: 5px; margin-bottom: 16px; }
.alert-success { background: #d4edda; color: #155724; }
.alert-error { background: #fdecea; color: #c0392b; }

/* Actions */
.actions { display: flex; gap: 6px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); text-align: center; }
.stat-card .stat-num { font-size: 32px; font-weight: 700; color: #3498db; }
.stat-card .stat-label { color: #7f8c8d; font-size: 14px; margin-top: 4px; }

/* Badge */
.badge { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; }
.badge-blue { background: #d6eaf8; color: #2471a3; }
.badge-green { background: #d5f5e3; color: #1e8449; }
.badge-orange { background: #fdebd0; color: #ca6f1e; }
