@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --primary: #10b981;
  --primary-dark: #059669;
  --bg-color: #f3f4f6;
  --card-bg: #ffffff;
  --text-main: #1f2937;
  --text-muted: #6b7280;
  --border-color: #e5e7eb;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
  --shadow-hover: 0 10px 15px -3px rgba(0,0,0,0.1);
}

* { box-sizing: border-box; }
body { 
  margin: 0; 
  font-family: 'Inter', system-ui, sans-serif; 
  background: var(--bg-color); 
  color: var(--text-main); 
  line-height: 1.5;
}

main { 
  max-width: 800px; 
  margin: auto; 
  padding: 20px; 
  min-height: 100vh;
}

/* Header */
header {
  text-align: center;
  padding: 40px 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  box-shadow: var(--shadow-md);
}
header h1 { margin: 0 0 8px; font-size: 2.2rem; font-weight: 700; letter-spacing: -0.5px; }
header p { margin: 0; font-size: 1.1rem; opacity: 0.9; }

/* Cards & Panels */
.card, .panel { 
  background: var(--card-bg); 
  border: 1px solid var(--border-color); 
  border-radius: var(--radius-md); 
  padding: 20px; 
  margin: 16px 0;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.card h2 { margin: 0 0 8px; font-size: 1.25rem; font-weight: 600; }
.card h3 { margin: 0 0 8px; font-size: 1.1rem; font-weight: 600; color: var(--primary-dark); }
.card p { margin: 0 0 12px; color: var(--text-muted); }

/* Forms & Inputs */
input, select, textarea, button { 
  font: inherit; 
  padding: 12px 16px; 
  border-radius: var(--radius-sm); 
  border: 1px solid var(--border-color); 
  width: 100%;
  margin-bottom: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}
.form-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}
.form-row input, .form-row select {
  margin-bottom: 0;
}

/* Buttons */
button { 
  background: var(--primary); 
  color: white; 
  border: none; 
  cursor: pointer; 
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
}
button:hover { background: var(--primary-dark); }
button.secondary {
  background: #e5e7eb;
  color: var(--text-main);
}
button.secondary:hover { background: #d1d5db; }
button.danger {
  background: #ef4444;
}
button.danger:hover { background: #dc2626; }
button.small {
  padding: 6px 12px;
  font-size: 0.9rem;
}

/* Links */
a { 
  display: inline-block; 
  color: var(--primary-dark); 
  font-weight: 600; 
  text-decoration: none;
}
a:hover { text-decoration: underline; }
a.btn-link {
  background: var(--primary);
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  text-align: center;
  display: block;
}
a.btn-link:hover { background: var(--primary-dark); text-decoration: none; }

/* Layouts */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

/* Profile Photo */
.profile-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  background: #e5e7eb;
  border: 2px solid var(--primary);
}
.provider-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

/* Tags / Badges */
.badge {
  display: inline-block;
  padding: 4px 8px;
  background: #e0f2fe;
  color: #0369a1;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  margin: 0 4px 4px 0;
}
.badge.rating { background: #fef08a; color: #854d0e; }
.badge.status-approved { background: #dcfce7; color: #166534; }
.badge.status-pending { background: #fef9c3; color: #854d0e; }
.badge.status-rejected { background: #fee2e2; color: #991b1b; }

/* Admin Tabs */
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.tab {
  padding: 10px 16px;
  background: #e5e7eb;
  color: var(--text-main);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 500;
  white-space: nowrap;
}
.tab.active {
  background: var(--primary);
  color: white;
}

/* Utils */
.loading { padding: 40px; text-align: center; font-weight: 500; color: var(--text-muted); }
.hidden { display: none !important; }
.text-center { text-align: center; }
small { color: var(--text-muted); font-size: 0.85rem; }
hr { border: 0; border-top: 1px solid var(--border-color); margin: 24px 0; }