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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--background, #ffffff);
  color: var(--foreground, #000000);
  line-height: 1.5;
}

.app-container {
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border, #e0e0e0);
}

.header h1 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
}

.header p {
  color: var(--muted-foreground, #666);
  font-size: 14px;
}

.card {
  background: var(--card, #f9f9f9);
  border: 1px solid var(--border, #e0e0e0);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

.card-header {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.btn {
  padding: 8px 16px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: opacity 0.2s;
}

.btn:hover {
  opacity: 0.8;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--primary, #0066cc);
  color: white;
}

.btn-secondary {
  background: var(--secondary, #6c757d);
  color: white;
}

.btn-danger {
  background: var(--destructive, #dc3545);
  color: white;
}

.input {
  padding: 8px 12px;
  border: 1px solid var(--border, #e0e0e0);
  border-radius: 6px;
  font-size: 14px;
  width: 100%;
  background: var(--background, #ffffff);
  color: var(--foreground, #000000);
}

.label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--foreground, #000000);
}

.error {
  color: var(--destructive, #dc3545);
  font-size: 14px;
  margin-top: 8px;
}

.loading {
  text-align: center;
  padding: 40px;
  color: var(--muted-foreground, #666);
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.badge-success {
  background: #d4edda;
  color: #155724;
}

.badge-warning {
  background: #fff3cd;
  color: #856404;
}

.badge-danger {
  background: #f8d7da;
  color: #721c24;
}

.badge-info {
  background: #d1ecf1;
  color: #0c5460;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--border, #e0e0e0);
}

.table th {
  font-weight: 600;
  background: var(--muted, #f5f5f5);
}

.table tr:hover {
  background: var(--accent, #f0f0f0);
}

.stat {
  text-align: center;
  padding: 16px;
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary, #0066cc);
}

.stat-label {
  font-size: 14px;
  color: var(--muted-foreground, #666);
  margin-top: 4px;
}
