:root {
  --background: 240 10% 3.9%;
  --foreground: 0 0% 98%;
  --card: 240 10% 3.9%;
  --card-foreground: 0 0% 98%;
  --popover: 240 10% 3.9%;
  --popover-foreground: 0 0% 98%;
  --primary: 0 0% 98%;
  --primary-foreground: 240 5.9% 10%;
  --secondary: 240 3.7% 15.9%;
  --secondary-foreground: 0 0% 98%;
  --muted: 240 3.7% 15.9%;
  --muted-foreground: 240 5% 64.9%;
  --accent: 240 3.7% 15.9%;
  --accent-foreground: 0 0% 98%;
  --destructive: 0 62.8% 30.6%;
  --destructive-foreground: 0 0% 98%;
  --border: 240 3.7% 15.9%;
  --input: 240 3.7% 15.9%;
  --ring: 240 4.9% 83.9%;
  --radius: 0.75rem;
}

/* HSL to Variable Conversion */
:root {
  --bg: hsl(var(--background));
  --fg: hsl(var(--foreground));
  --bc: hsl(var(--border));
}

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

body {
  background-color: var(--bg);
  color: var(--fg);
  font-family: "Inter", "Manrope", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Components */

/* Buttons */
.s-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  height: 2.5rem;
  padding: 0 1rem;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
  gap: 0.5rem;
  user-select: none;
  text-decoration: none;
}

.s-btn:active {
  transform: scale(0.98);
}

.s-btn-primary {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}
.s-btn-primary:hover {
  background-color: hsl(var(--primary) / 0.9);
}

.s-btn-secondary {
  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}
.s-btn-secondary:hover {
  background-color: hsl(var(--secondary) / 0.8);
}

.s-btn-outline {
  background-color: transparent;
  border-color: hsl(var(--border));
  color: hsl(var(--foreground));
}
.s-btn-outline:hover {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.s-btn-ghost {
  background-color: transparent;
  color: hsl(var(--foreground));
}
.s-btn-ghost:hover {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.s-btn-sm { height: 2.25rem; padding: 0 0.75rem; font-size: 0.8rem; }
.s-btn-lg { height: 3rem; padding: 0 2rem; font-size: 1rem; }
.s-btn-icon { width: 2.5rem; padding: 0; }

/* Cards */
.s-card {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  color: hsl(var(--card-foreground));
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  overflow: hidden;
}

.s-card-header { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.375rem; }
.s-card-title { font-size: 1.5rem; font-weight: 600; line-height: 1; letter-spacing: -0.025em; }
.s-card-description { font-size: 0.875rem; color: hsl(var(--muted-foreground)); }
.s-card-content { padding: 0 1.5rem 1.5rem 1.5rem; }
.s-card-footer { padding: 1.5rem; display: flex; align-items: center; border-top: 1px solid hsl(var(--border)); }

/* Inputs */
.s-input, .s-select {
  width: 100%;
  height: 2.5rem;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--input));
  background-color: hsl(var(--background));
  padding: 0 0.75rem;
  font-size: 0.875rem;
  color: hsl(var(--foreground));
  outline: none;
  transition: border-color 0.2s, ring 0.2s;
}

.s-input:focus, .s-select:focus {
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2);
}

.s-input::placeholder {
  color: hsl(var(--muted-foreground));
}

/* Badges */
.s-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  border: 1px solid transparent;
  padding: 0.125rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  transition: colors 0.2s;
}

.s-badge-default {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.s-badge-secondary {
  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}

.s-badge-outline {
  border-color: hsl(var(--border));
  color: hsl(var(--foreground));
}

/* Utilities */
.text-muted { color: hsl(var(--muted-foreground)); }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.p-4 { padding: 1rem; }
.m-b-4 { margin-bottom: 1rem; }
