* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f8fafc; color: #1f2937; line-height: 1.5; }

/* Nav */
.nav { display: flex; align-items: center; justify-content: space-between; background: #1e293b; padding: 0 24px; height: 56px; position: sticky; top: 0; z-index: 100; }
.nav-left { display: flex; align-items: center; gap: 4px; }
.nav-brand { color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; margin-right: 24px; }
.nav-link { color: rgba(255,255,255,.7); text-decoration: none; font-size: 13px; padding: 8px 12px; border-radius: 6px; transition: .15s; }
.nav-link:hover, .nav-link.active { color: #fff; background: rgba(255,255,255,.1); }
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-user { color: rgba(255,255,255,.6); font-size: 13px; }

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 24px; }
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.page-header h1 { font-size: 24px; font-weight: 700; }

/* Metrics */
.metrics-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.metric-card { background: #fff; border-radius: 12px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.metric-label { font-size: 13px; color: #6b7280; margin-bottom: 4px; }
.metric-value { font-size: 28px; font-weight: 700; }

/* Cards */
.card { background: #fff; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.06); margin-bottom: 16px; overflow: hidden; }
.card-header { padding: 16px 20px; font-weight: 600; font-size: 15px; border-bottom: 1px solid #f1f5f9; display: flex; align-items: center; justify-content: space-between; }
.card-body { padding: 16px 20px; }

/* Tables */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; padding: 10px 12px; font-weight: 600; color: #6b7280; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; border-bottom: 2px solid #f1f5f9; }
.table td { padding: 10px 12px; border-bottom: 1px solid #f8fafc; }
.table tr:hover td { background: #f8fafc; }
.table a { color: #1a56db; text-decoration: none; }
.table a:hover { text-decoration: underline; }

/* Buttons */
.btn { display: inline-block; padding: 8px 16px; border-radius: 8px; font-size: 14px; font-weight: 500; text-decoration: none; border: 1px solid #d1d5db; color: #374151; background: #fff; cursor: pointer; transition: .15s; }
.btn:hover { border-color: #9ca3af; }
.btn-primary { background: #1a56db; color: #fff; border-color: #1a56db; }
.btn-primary:hover { background: #1648c0; }
.btn-sm { padding: 4px 10px; font-size: 12px; }

/* Alerts */
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 12px; font-size: 14px; }
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.alert-item { padding: 8px 12px; border-radius: 6px; margin-bottom: 6px; font-size: 13px; }
.alert-item-danger { background: #fef2f2; color: #991b1b; }
.alert-item-warning { background: #fffbeb; color: #92400e; }

/* Badges */
.badge { display: inline-block; padding: 2px 8px; border-radius: 12px; font-size: 12px; font-weight: 500; }
.badge-green { background: #ecfdf5; color: #065f46; }
.badge-yellow { background: #fffbeb; color: #92400e; }
.badge-red { background: #fef2f2; color: #991b1b; }
.badge-vip { background: #fef3c7; color: #92400e; font-size: 11px; }

/* Status dots */
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; }
.status-green { background: #10b981; }
.status-orange { background: #f59e0b; }
.status-red { background: #ef4444; }
.status-gray { background: #9ca3af; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; align-items: center; }
.filter-btn { padding: 6px 14px; border-radius: 20px; font-size: 13px; text-decoration: none; color: #374151; background: #fff; border: 1px solid #e5e7eb; transition: .15s; }
.filter-btn:hover { border-color: #9ca3af; }
.filter-btn.active { background: #1e293b; color: #fff; border-color: #1e293b; }

/* Forms */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; color: #374151; margin-bottom: 4px; }
.form-control { width: 100%; padding: 8px 12px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 14px; }
.form-control:focus { outline: none; border-color: #1a56db; box-shadow: 0 0 0 3px rgba(26,86,219,.1); }
textarea.form-control { resize: vertical; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }

/* Review criteria */
.criteria-grid { display: grid; gap: 12px; }
.criteria-item { background: #f9fafb; padding: 12px 16px; border-radius: 8px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.criteria-item label:first-child { font-size: 13px; font-weight: 500; flex: 1; min-width: 200px; }
.rating-group { display: flex; gap: 4px; }
.rating-label { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid #d1d5db; border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 600; transition: .15s; }
.rating-label:hover { border-color: #1a56db; background: #eff6ff; }
.rating-label input { display: none; }
.rating-label:has(input:checked) { background: #1a56db; color: #fff; border-color: #1a56db; }

/* Info grid */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 8px; margin-bottom: 16px; background: #fff; border-radius: 12px; padding: 16px 20px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.info-item { font-size: 14px; padding: 4px 0; }
.info-label { font-weight: 600; color: #6b7280; }

/* Login */
.login-body { display: flex; justify-content: center; align-items: center; min-height: 100vh; }
.login-card { width: 100%; max-width: 360px; padding: 32px; background: #fff; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.login-title { font-size: 20px; text-align: center; margin-bottom: 4px; }
.login-subtitle { text-align: center; color: #6b7280; font-size: 13px; margin-bottom: 24px; }

/* Utility */
.text-danger { color: #dc2626; }
.text-success { color: #059669; }

/* Mobile */
@media (max-width: 768px) {
  .nav { padding: 0 12px; flex-wrap: wrap; height: auto; padding: 8px 12px; }
  .nav-left { flex-wrap: wrap; gap: 2px; }
  .nav-link { padding: 6px 8px; font-size: 12px; }
  .container { padding: 16px; }
  .metrics-row { grid-template-columns: repeat(2, 1fr); }
  .metric-value { font-size: 22px; }
  .table { font-size: 12px; }
  .criteria-item { flex-direction: column; align-items: flex-start; }
}
