* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --bg: #f8fafc;
    --surface: #ffffff;
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
}
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.login-container { background: white; padding: 3rem; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); width: 100%; max-width: 400px; }
.login-header { text-align: center; margin-bottom: 2rem; }
.login-header h1 { color: var(--primary); margin-bottom: 0.5rem; }
.login-form .form-group { margin-bottom: 1.5rem; }
label { display: block; margin-bottom: 0.5rem; font-weight: 500; }
input, select, textarea { width: 100%; padding: 0.75rem; border: 1px solid var(--border); border-radius: 6px; font-size: 1rem; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.btn { padding: 0.75rem 1.5rem; border: none; border-radius: 6px; font-weight: 500; cursor: pointer; display: inline-block; text-decoration: none; transition: all 0.2s; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: var(--text-muted); color: white; }
.btn-success { background: var(--success); color: white; }
.btn-danger { background: var(--danger); color: white; }
.btn-info { background: #0ea5e9; color: white; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.9rem; }
.btn-block { width: 100%; }
.btn-logout { background: transparent; color: white; border: 1px solid rgba(255,255,255,0.3); }
.navbar { background: var(--primary); color: white; padding: 1rem 2rem; display: flex; align-items: center; justify-content: space-between; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.navbar-menu { display: flex; gap: 0.5rem; }
.nav-link { color: white; text-decoration: none; padding: 0.75rem 1.5rem; border-radius: 6px; transition: background 0.2s; }
.nav-link:hover, .nav-link.active { background: rgba(255,255,255,0.2); }
.main-content { padding: 2rem; max-width: 1400px; margin: 0 auto; }
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.page-header h1 { font-size: 2rem; }
.card { background: white; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); margin-bottom: 2rem; }
.card-header { padding: 1.5rem; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.card-body { padding: 1.5rem; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }
.stat-card { background: white; padding: 1.5rem; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); display: flex; align-items: center; gap: 1rem; }
.stat-card-primary { border-left: 4px solid var(--primary); }
.stat-icon { font-size: 2.5rem; }
.stat-number { font-size: 2rem; font-weight: 700; }
.table { width: 100%; border-collapse: collapse; }
.table th { background: var(--bg); padding: 0.75rem; text-align: left; font-weight: 600; border-bottom: 2px solid var(--border); }
.table td { padding: 0.75rem; border-bottom: 1px solid var(--border); }
.table tr:hover { background: var(--bg); }
.badge { padding: 0.25rem 0.75rem; border-radius: 12px; font-size: 0.85rem; font-weight: 500; }
.badge-success { background: #d1fae5; color: #065f46; }
.badge-warning { background: #fef3c7; color: #92400e; }
.alert { padding: 1rem; border-radius: 6px; margin-bottom: 1rem; }
.alert-success { background: #d1fae5; color: #065f46; }
.alert-error { background: #fee2e2; color: #991b1b; }
.form-row { display: flex; gap: 1rem; }
.form-group { flex: 1; margin-bottom: 1.5rem; }
.form-actions { display: flex; gap: 1rem; justify-content: flex-end; margin-top: 2rem; }
.search-form { display: flex; gap: 0.5rem; }
.search-input { flex: 1; max-width: 400px; }
.text-muted { color: var(--text-muted); }
.quick-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.actions { white-space: nowrap; }
code { background: var(--bg); padding: 0.25rem 0.5rem; border-radius: 4px; font-family: monospace; }
.article-line { display: flex; gap: 1rem; margin-bottom: 1rem; align-items: center; }
.article-line select { flex: 2; }
.article-line input[type="number"] { width: 100px; }
.line-total { font-weight: bold; min-width: 100px; text-align: right; }
@media (max-width: 768px) {
    .navbar { flex-direction: column; gap: 1rem; }
    .page-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .form-row { flex-direction: column; }
    .stats-grid { grid-template-columns: 1fr; }
}
