* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: system-ui, sans-serif; background: #f5f5f5; color: #222; }

nav { background: #1a3a5c; color: white; padding: 0.75rem 1.5rem; display: flex; align-items: center; gap: 2rem; }
nav a { color: #cde; text-decoration: none; font-size: 0.9rem; }
nav a:hover { color: white; }
nav .brand { font-weight: 700; font-size: 1.1rem; color: white; }

.container { max-width: 1400px; margin: 0 auto; padding: 1.5rem; }

/* Status badges */
.badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; }
.badge-active     { background: #d1fae5; color: #065f46; }
.badge-vetting    { background: #dbeafe; color: #1e40af; }
.badge-applied    { background: #fef9c3; color: #854d0e; }
.badge-pre_vetting{ background: #f3e8ff; color: #6b21a8; }
.badge-lead       { background: #f1f5f9; color: #475569; }

/* Table */
table { width: 100%; border-collapse: collapse; background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
th { background: #f8fafc; text-align: left; padding: 10px 14px; font-size: 0.8rem; text-transform: uppercase; color: #64748b; border-bottom: 1px solid #e2e8f0; }
td { padding: 10px 14px; font-size: 0.875rem; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #f8fafc; }
a { color: #1a3a5c; }

/* Search bar */
.search-bar { display: flex; gap: 0.75rem; margin-bottom: 1rem; flex-wrap: wrap; align-items: center; }
.search-bar input, .search-bar select {
  padding: 8px 12px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 0.875rem; background: white;
}
.search-bar input { flex: 1; min-width: 200px; }
.btn { padding: 8px 16px; border-radius: 6px; border: none; cursor: pointer; font-size: 0.875rem; font-weight: 500; }
.btn-primary { background: #1a3a5c; color: white; }
.btn-primary:hover { background: #15304e; }

/* Provider detail */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.card { background: white; border-radius: 8px; padding: 1.25rem; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.card h3 { font-size: 0.85rem; text-transform: uppercase; color: #64748b; margin-bottom: 1rem; border-bottom: 1px solid #f1f5f9; padding-bottom: 0.5rem; }
.field-row { display: flex; gap: 0.5rem; margin-bottom: 0.5rem; font-size: 0.875rem; }
.field-label { color: #64748b; min-width: 160px; flex-shrink: 0; }
.field-value { color: #1e293b; }

/* Steps */
.step-list { list-style: none; }
.step-list li { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0; border-bottom: 1px solid #f1f5f9; font-size: 0.875rem; }
.step-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.step-dot.approved { background: #10b981; }
.step-dot.pending  { background: #cbd5e1; }
.step-dot.rework   { background: #f59e0b; }

/* Photos */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.5rem; }
.photo-grid img { width: 100%; height: 120px; object-fit: cover; object-position: top; border-radius: 6px; cursor: pointer; }
.photo-caption { font-size: 0.7rem; color: #64748b; text-align: center; margin-top: 2px; }

/* Profile page */
.profile-hero { background: white; border-radius: 8px; padding: 2rem; box-shadow: 0 1px 3px rgba(0,0,0,0.1); margin-bottom: 1.5rem; display: flex; gap: 2rem; }
.profile-photo img { width: 140px; height: 140px; object-fit: cover; object-position: top; border-radius: 50%; }
.profile-info h1 { font-size: 1.5rem; margin-bottom: 0.25rem; }
.profile-info .location { color: #64748b; margin-bottom: 1rem; }
.profile-bio { font-size: 0.9rem; line-height: 1.6; color: #334155; }
.profile-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.75rem; }
.profile-photos img { width: 100%; height: 160px; object-fit: cover; object-position: top; border-radius: 8px; }

/* Pagination */
.pagination { display: flex; gap: 0.5rem; align-items: center; margin-top: 1rem; font-size: 0.875rem; }
.pagination a, .pagination span { padding: 6px 12px; border-radius: 6px; border: 1px solid #e2e8f0; background: white; color: #1a3a5c; text-decoration: none; }
.pagination .active { background: #1a3a5c; color: white; border-color: #1a3a5c; }

/* Heading row */
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.page-header h2 { font-size: 1.25rem; }
.count-label { font-size: 0.875rem; color: #64748b; }

/* Tags */
.tag-chip { display:inline-block; background:#e0f2fe; color:#0369a1; font-size:0.75rem; padding:2px 8px; border-radius:12px; border:none; cursor:default; }
.tag-chip-remove { cursor:pointer; background:#fee2e2; color:#b91c1c; }
.tag-chip-remove:hover { background:#fecaca; }
.tag-chip-suggest { cursor:pointer; background:#f0fdf4; color:#166534; }
.tag-chip-suggest:hover { background:#dcfce7; }
