* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f0f4f8;
  color: #1a202c;
  min-height: 100vh;
}

/* Status Banner */
.status-banner {
  padding: 8px 16px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  transition: background-color 0.3s;
}

.status-banner.online {
  background: #c6f6d5;
  color: #22543d;
}

.status-banner.offline {
  background: #fed7d7;
  color: #9b2c2c;
}

/* Container */
.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 24px 16px;
}

h1 {
  font-size: 24px;
  margin-bottom: 4px;
}

.subtitle {
  color: #718096;
  margin-bottom: 24px;
  font-size: 14px;
}

/* Form */
.form-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  margin-bottom: 24px;
}

.form-card h2 {
  font-size: 16px;
  margin-bottom: 16px;
}

.form-group {
  margin-bottom: 12px;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 4px;
}

input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}

input:focus {
  border-color: #2563eb;
}

button {
  width: 100%;
  padding: 12px;
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s;
}

button:hover {
  background: #1d4ed8;
}

button:disabled {
  background: #a0aec0;
  cursor: not-allowed;
}

/* Sync button */
.sync-btn {
  background: #38a169;
  margin-top: 0;
  margin-bottom: 24px;
}

.sync-btn:hover {
  background: #2f855a;
}

/* User List */
.user-list-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.user-list-card h2 {
  font-size: 16px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.count-badge {
  background: #edf2f7;
  color: #4a5568;
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 12px;
}

.empty-state {
  text-align: center;
  color: #a0aec0;
  padding: 32px 0;
  font-size: 14px;
}

.user-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f0f4f8;
}

.user-item:last-child {
  border-bottom: none;
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-weight: 600;
  font-size: 15px;
}

.user-age {
  color: #718096;
  font-size: 13px;
}

/* Badges */
.badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge.synced {
  background: #c6f6d5;
  color: #22543d;
}

.badge.pending {
  background: #fefcbf;
  color: #975a16;
}

/* Sync stats */
.sync-stats {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.stat-card {
  flex: 1;
  background: white;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.stat-number {
  font-size: 28px;
  font-weight: 700;
  color: #2563eb;
}

.stat-label {
  font-size: 11px;
  color: #718096;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.stat-card.pending-stat .stat-number {
  color: #d69e2e;
}

.stat-card.synced-stat .stat-number {
  color: #38a169;
}
