* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #E8878C;
  --primary-dark: #D4737A;
  --text: #2D2D2D;
  --text-secondary: #757575;
  --border: #E8E8E8;
  --bg: #F5F5F5;
  --white: #FFFFFF;
  --error: #E53935;
  --success: #43A047;
}

body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.logo-circle {
  width: 56px; height: 56px;
  background: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 24px; font-weight: 800;
  margin: 0 auto 16px;
}
.logo-circle.small { width: 36px; height: 36px; font-size: 16px; margin: 0; }

.login-screen {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #F5B5B9 0%, #E8878C 50%, #D4737A 100%);
}
.login-card {
  background: var(--white);
  border-radius: 20px;
  padding: 40px;
  width: 100%; max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.login-header { text-align: center; margin-bottom: 32px; }
.login-header h1 { font-size: 24px; font-weight: 800; margin-bottom: 4px; }
.login-header p { color: var(--text-secondary); font-size: 14px; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text-secondary); }
.form-group input {
  width: 100%; padding: 12px 16px;
  border: 1px solid var(--border); border-radius: 12px;
  font-family: inherit; font-size: 14px;
}
.form-group input:focus { outline: none; border-color: var(--primary); }

.btn-primary {
  width: 100%; padding: 14px;
  background: var(--primary); color: white;
  border: none; border-radius: 12px;
  font-family: inherit; font-size: 16px; font-weight: 700;
  cursor: pointer; margin-top: 8px;
}
.btn-primary:hover { background: var(--primary-dark); }

.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: 14px; font-weight: 600; }
.alert-error { background: #FFEBEE; color: var(--error); }
.alert-success { background: #E8F5E9; color: var(--success); }

.layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 240px; background: var(--white);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  padding: 24px 16px; min-height: 100vh;
}
.sidebar-brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 800;
  padding: 0 8px 24px; border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 10px;
  text-decoration: none; color: var(--text-secondary);
  font-weight: 600; font-size: 14px; margin-bottom: 4px;
}
.nav-item:hover, .nav-item.active { background: #FEF0F1; color: var(--primary); }
.logout-btn {
  margin-top: auto; padding: 12px;
  background: none; border: 1px solid var(--border); border-radius: 10px;
  font-family: inherit; font-size: 14px; font-weight: 600;
  color: var(--text-secondary); cursor: pointer; text-align: center; text-decoration: none;
}
.logout-btn:hover { background: #FFF5F5; color: var(--error); border-color: var(--error); }

.main-content { flex: 1; padding: 32px; }
.top-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.top-bar h2 { font-size: 28px; font-weight: 800; }
.admin-name { color: var(--text-secondary); font-size: 14px; font-weight: 600; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.stat-card { background: var(--white); border-radius: 16px; padding: 24px; border: 1px solid var(--border); }
.stat-value { font-size: 36px; font-weight: 800; color: var(--primary); margin-bottom: 4px; }
.stat-label { font-size: 13px; color: var(--text-secondary); font-weight: 600; }

.table-container { background: var(--white); border-radius: 16px; border: 1px solid var(--border); overflow: hidden; }
table { width: 100%; border-collapse: collapse; }
thead { background: #FAFAFA; }
th { padding: 14px 16px; text-align: left; font-size: 12px; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; }
td { padding: 14px 16px; font-size: 14px; border-top: 1px solid var(--border); }
.empty-row { text-align: center; color: var(--text-secondary); padding: 32px !important; }

.badge { display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge-active { background: #E8F5E9; color: var(--success); }
.badge-inactive { background: #FFEBEE; color: var(--error); }
.badge-provider { background: #F3E5F5; color: #7B1FA2; }

.actions { white-space: nowrap; }
.action-btn {
  padding: 6px 12px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--white); font-family: inherit; font-size: 12px;
  font-weight: 600; cursor: pointer; margin-right: 4px;
}
.action-btn:hover { background: #F5F5F5; }
.action-btn.danger:hover { background: #FFEBEE; color: var(--error); border-color: var(--error); }

@media (max-width: 768px) {
  .layout { flex-direction: column; }
  .sidebar { width: 100%; min-height: auto; }
}
