* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; background: #f8fafc; color: #334155; }
.side-nav { position: fixed; left: 0; top: 0; width: 220px; height: 100vh; background: #1e293b; color: #fff; padding: 0; overflow-y: auto; z-index: 100; }
.nav-brand { padding: 22px 20px 18px; border-bottom: 1px solid #334155; font-size: 17px; font-weight: bold; display: flex; align-items: center; gap: 10px; }
.nav-user { padding: 16px 20px; border-bottom: 1px solid #334155; }
.nav-user-name { font-size: 14px; font-weight: 600; color: #e2e8f0; }
.nav-user-role { font-size: 12px; color: #64748b; margin-top: 2px; }
.side-nav a { display: block; padding: 12px 20px; color: #cbd5e1; text-decoration: none; font-size: 14px; transition: all .2s; }
.side-nav a:hover { background: #334155; color: #fff; padding-left: 26px; }
.side-nav a.active { background: #2563eb; color: #fff; }
.nav-logout { margin-top: 20px; border-top: 1px solid #334155; padding-top: 16px !important; color: #f87171 !important; }
.app-main { margin-left: 220px; padding: 28px 32px; min-height: 100vh; }
.page-title { font-size: 22px; font-weight: bold; color: #1e293b; margin-bottom: 22px; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 26px; }
.stat-card { background: #fff; border-radius: 10px; padding: 22px 20px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); border-left: 4px solid #2563eb; }
.stat-card.blue { border-left-color: #3b82f6; }
.stat-card.green { border-left-color: #22c55e; }
.stat-card.orange { border-left-color: #f59e0b; }
.stat-card.purple { border-left-color: #8b5cf6; }
.stat-num { font-size: 28px; font-weight: bold; color: #1e293b; margin-bottom: 4px; }
.stat-label { font-size: 13px; color: #64748b; }
.dash-actions { margin-bottom: 24px; display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 10px 20px; border-radius: 8px; text-decoration: none; font-size: 14px; font-weight: 500; border: 1px solid #e2e8f0; background: #fff; color: #334155; cursor: pointer; transition: all .2s; }
.btn:hover { background: #f1f5f9; border-color: #cbd5e1; }
.btn-primary { background: #2563eb; color: #fff; border-color: #2563eb; }
.btn-primary:hover { background: #1d4ed8; border-color: #1d4ed8; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.panel { background: #fff; border-radius: 10px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); overflow: hidden; margin-bottom: 20px; }
.panel-head { padding: 16px 20px; font-size: 15px; font-weight: 600; color: #1e293b; border-bottom: 1px solid #f1f5f9; background: #fafbfc; }
.table { width: 100%; border-collapse: collapse; }
.table th { background: #f8fafc; padding: 11px 16px; text-align: left; font-size: 13px; color: #64748b; font-weight: 600; border-bottom: 1px solid #e2e8f0; }
.table td { padding: 11px 16px; font-size: 14px; border-bottom: 1px solid #f1f5f9; color: #334155; }
.table tr:hover td { background: #f8fafc; }
.table .empty { text-align: center; color: #94a3b8; padding: 30px !important; }
.table .mono { font-family: 'Courier New', monospace; font-size: 13px; color: #1e293b; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 500; }
.badge-success { background: #dcfce7; color: #15803d; }
.badge-warning { background: #fef9c3; color: #a16207; }
.badge-danger { background: #fee2e2; color: #b91c1c; }
.badge-info { background: #dbeafe; color: #1d4ed8; }
.badge-secondary { background: #f1f5f9; color: #64748b; }
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.alert-success { background: #dcfce7; color: #15803d; }
.alert-error { background: #fee2e2; color: #b91c1c; }
.alert-info { background: #dbeafe; color: #1d4ed8; }
.alert-warning { background: #fef9c3; color: #a16207; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.panel { background: #fff; border-radius: 10px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); overflow: hidden; margin-bottom: 20px; }
.panel-head { padding: 16px 20px; font-size: 15px; font-weight: 600; color: #1e293b; border-bottom: 1px solid #f1f5f9; background: #fafbfc; }
.table { width: 100%; border-collapse: collapse; }
.table th { background: #f8fafc; padding: 11px 16px; text-align: left; font-size: 13px; color: #64748b; font-weight: 600; border-bottom: 1px solid #e2e8f0; }
.table td { padding: 11px 16px; font-size: 14px; border-bottom: 1px solid #f1f5f9; color: #334155; }
.table tr:hover td { background: #f8fafc; }
.table .empty { text-align: center; color: #94a3b8; padding: 30px !important; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 500; }
.badge-success { background: #dcfce7; color: #15803d; }
.badge-warning { background: #fef9c3; color: #a16207; }
.badge-danger { background: #fee2e2; color: #b91c1c; }
.badge-info { background: #dbeafe; color: #1d4ed8; }
