
:root { --primary: #667eea; --dark: #1e293b; --light: #f8fafc; --white: #fff; --border: #e2e8f0; --text: #334155; --text-light: #64748b; --error: #ef4444; --success: #10b981; --warning: #f59e0b; --shadow: 0 1px 3px rgba(0,0,0,0.1); }
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body { font-family: 'Poppins', sans-serif; color: var(--text); background: var(--light); line-height: 1.6; }
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); padding: 20px; }
.login-container { width: 100%; max-width: 420px; }
.login-card { background: var(--white); border-radius: 16px; padding: 45px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.login-header { text-align: center; margin-bottom: 35px; }
.logo-circle { width: 70px; height: 70px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; color: var(--white); font-size: 28px; }
.login-header h1 { font-size: 26px; font-weight: 700; margin-bottom: 8px; }
.login-header p { color: var(--text-light); font-size: 14px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; }
.form-group input, .form-group select { width: 100%; padding: 11px 14px; border: 2px solid var(--border); border-radius: 8px; font-size: 14px; font-family: inherit; }
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1); }
.navbar { background: var(--white); border-bottom: 1px solid var(--border); padding: 15px 30px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 100; }
.navbar-brand { font-size: 18px; font-weight: 700; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.navbar-menu { display: flex; list-style: none; gap: 8px; margin: 0; }
.navbar-menu a { padding: 8px 14px; border-radius: 6px; text-decoration: none; color: var(--text); font-weight: 500; font-size: 13px; }
.navbar-menu a:hover, .navbar-menu a.active { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: var(--white); }
.navbar-user { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.user-name { font-weight: 600; }
.btn-logout { background: var(--light); border: none; padding: 8px 12px; border-radius: 6px; cursor: pointer; text-decoration: none; color: var(--text); }
.main-content { padding: 30px; min-height: calc(100vh - 80px); }
.container { max-width: 1200px; margin: 0 auto; }
.page-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 30px; }
.page-header h1 { font-size: 28px; font-weight: 700; margin-bottom: 6px; }
.page-header p { color: var(--text-light); }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border: none; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn-primary { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: var(--white); }
.btn-outline { background: transparent; border: 2px solid var(--border); color: var(--text); }
.btn-block { width: 100%; }
.btn-icon { width: 32px; height: 32px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border: none; border-radius: 6px; cursor: pointer; font-size: 14px; }
.btn-delete { background: var(--error); color: var(--white); }
.card { background: var(--white); border-radius: 12px; box-shadow: var(--shadow); margin-bottom: 25px; }
.card.alert-card { border-top: 4px solid #dc2626; }
.card-header { padding: 20px 25px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.card-header h2 { font-size: 18px; font-weight: 700; }
.card-body { padding: 25px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-bottom: 30px; }
.stat-card { background: var(--white); border-radius: 12px; padding: 20px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 16px; }
.stat-icon { width: 56px; height: 56px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 24px; }
.stat-content h3 { font-size: 28px; font-weight: 700; }
.stat-content p { font-size: 13px; color: var(--text-light); margin-top: 4px; }
.badge { display: inline-block; padding: 4px 12px; border-radius: 12px; font-size: 11px; font-weight: 600; background: var(--light); }
.badge-ok { background: #d1fae5; color: #065f46; }
.badge-warning { background: #fed7aa; color: #92400e; }
.badge-error { background: #fee2e2; color: #991b1b; }
.alert { padding: 14px 16px; border-radius: 8px; margin-bottom: 20px; font-size: 13px; border-left: 4px solid; }
.alert-success { background: #d1fae5; color: #065f46; border-left-color: var(--success); }
.alert-error { background: #fee2e2; color: #991b1b; border-left-color: var(--error); }
.table-responsive { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; padding: 12px; background: var(--light); font-weight: 700; font-size: 12px; }
.table td { padding: 13px 12px; border-bottom: 1px solid var(--border); font-size: 13px; }
.table tbody tr:hover { background: #f9fafb; }
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1000; align-items: center; justify-content: center; }
.modal.active { display: flex; }
.modal-content { background: var(--white); border-radius: 12px; width: 90%; max-width: 550px; max-height: 90vh; overflow-y: auto; }
.modal-header { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.modal-header h2 { font-size: 18px; font-weight: 700; }
.modal-close { background: none; border: none; font-size: 24px; cursor: pointer; }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.footer { background: var(--white); border-top: 1px solid var(--border); padding: 18px; text-align: center; color: var(--text-light); font-size: 12px; }
.login-footer { text-align: center; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--border); }
.login-footer p { font-size: 13px; }
.login-footer a { color: var(--primary); text-decoration: none; font-weight: 600; }
@media (max-width: 768px) { .navbar { flex-direction: column; gap: 12px; } .stats-grid { grid-template-columns: 1fr 1fr; } .form-row { grid-template-columns: 1fr; } }
