* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; background: #f5f5f5; color: #333; line-height: 1.5; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

.navbar { background: #1a237e; color: #fff; padding: 0 0; }
.navbar .container { display: flex; align-items: center; height: 48px; }
.navbar-brand { font-weight: 700; font-size: 16px; color: #fff; text-decoration: none; margin-right: 30px; }
.navbar-nav { display: flex; list-style: none; gap: 5px; flex: 1; }
.navbar-nav li a { color: #c5cae9; text-decoration: none; padding: 4px 10px; border-radius: 4px; font-size: 14px; }
.navbar-nav li a:hover { color: #fff; background: rgba(255,255,255,0.1); }
.navbar-nav li a.logout { color: #ef9a9a; margin-left: auto; }
.navbar-user { color: #c5cae9; font-size: 13px; margin-left: 15px; }

main { padding: 20px 0; min-height: calc(100vh - 48px); }

h1 { font-size: 22px; margin-bottom: 20px; color: #1a237e; }
h2 { font-size: 18px; margin: 20px 0 10px; color: #333; }

.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.section-header h1 { margin-bottom: 0; }

.btn { display: inline-block; padding: 6px 14px; background: #e0e0e0; color: #333; border: none; border-radius: 4px; cursor: pointer; text-decoration: none; font-size: 14px; }
.btn:hover { opacity: 0.85; }
.btn-primary { background: #1a237e; color: #fff; }
.btn-success { background: #2e7d32; color: #fff; }
.btn-danger { background: #c62828; color: #fff; }

.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.table th, .table td { padding: 8px 12px; text-align: left; border-bottom: 1px solid #e0e0e0; font-size: 14px; }
.table th { background: #f5f5f5; font-weight: 600; }
.table tr:hover { background: #fafafa; }

.form-group { margin-bottom: 12px; }
.form-group label { display: block; margin-bottom: 4px; font-weight: 600; font-size: 13px; color: #555; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 8px 10px; border: 1px solid #ccc; border-radius: 4px; font-size: 14px; }
.form-group textarea { min-height: 80px; resize: vertical; }
.form-row { display: flex; gap: 15px; }
.form-row .form-group { flex: 1; }
.form-check { margin-bottom: 12px; }
.form-check label { font-size: 14px; }
.form-inline { display: flex; gap: 10px; align-items: end; }
.form-inline select { padding: 6px 10px; border: 1px solid #ccc; border-radius: 4px; }

.filter-form { background: #fff; padding: 15px; border-radius: 6px; margin-bottom: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }

.card { background: #fff; padding: 20px; border-radius: 6px; margin-bottom: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }

.info-table { width: 100%; }
.info-table td { padding: 8px 12px; border-bottom: 1px solid #e0e0e0; font-size: 14px; }
.info-table td:first-child { font-weight: 600; color: #555; width: 200px; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 15px; margin-bottom: 25px; }
.stat-card { background: #fff; padding: 20px; border-radius: 8px; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.stat-card-link { text-decoration: none; color: #333; display: block; }
.stat-card-link:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.stat-number { font-size: 32px; font-weight: 700; color: #1a237e; }
.stat-label { font-size: 14px; color: #666; margin-top: 5px; }

.status { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; font-weight: 600; }
.status-1 { background: #e3f2fd; color: #1565c0; }
.status-2 { background: #fff3e0; color: #e65100; }
.status-3 { background: #fce4ec; color: #c62828; }
.status-4 { background: #e8f5e9; color: #2e7d32; }
.status-5 { background: #e8f5e9; color: #1b5e20; }
.status-6 { background: #f5f5f5; color: #616161; }

.alert { padding: 10px 15px; border-radius: 4px; margin-bottom: 15px; font-size: 14px; }
.alert-error { background: #ffebee; color: #c62828; border: 1px solid #ffcdd2; }

.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: linear-gradient(135deg, #1a237e, #283593); }
.login-container { background: #fff; padding: 40px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.3); width: 400px; }
.login-container h1 { font-size: 18px; text-align: center; margin-bottom: 25px; color: #1a237e; }
.login-container .btn-primary { width: 100%; padding: 10px; font-size: 16px; }

a { color: #1565c0; }
hr { border: none; border-top: 1px solid #e0e0e0; margin: 20px 0; }
ul { padding-left: 20px; margin: 10px 0; }
