:root {
  --background: #F7F8FA;
  --foreground: #111827;
  --card: #ffffff;
  --card-foreground: #111827;
  --primary: #C41F8A;
  --primary-foreground: #ffffff;
  --secondary: #F3F4F6;
  --secondary-foreground: #111827;
  --muted: #F3F4F6;
  --muted-foreground: #6B7280;
  --accent: #FDF4FF;
  --accent-foreground: #C41F8A;
  --destructive: #EF4444;
  --destructive-foreground: #ffffff;
  --border: #E5E7EB;
  --input: #E5E7EB;
  --ring: rgba(196, 31, 138, 0.25);
  --radius: 0.5rem;
}

/* Base resets for standardized components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
  height: 2.25rem;
  padding: 0 1rem;
  outline: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn:focus-visible {
  box-shadow: 0 0 0 2px var(--background), 0 0 0 4px var(--ring);
}

.btn:disabled {
  pointer-events: none;
  opacity: 0.5;
}

/* Button Variants */
.btn-primary {
  background: linear-gradient(135deg, #3E1070, #C41F8A);
  color: var(--primary-foreground);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
}

.btn-secondary:hover {
  background-color: #E5E7EB;
}

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

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

.btn-ghost {
  background-color: transparent;
  color: var(--foreground);
}

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

.btn-destructive {
  background-color: var(--destructive);
  color: var(--destructive-foreground);
}

.btn-destructive:hover {
  background-color: #DC2626;
}

.btn-destructive-outline {
  border-color: var(--border);
  background-color: transparent;
  color: var(--destructive);
}

.btn-destructive-outline:hover {
  background-color: #FEF2F2;
  border-color: var(--destructive);
}

/* Button Sizes */
.btn-sm {
  height: 2rem;
  padding: 0 0.75rem;
  font-size: 0.8rem;
}

.btn-lg {
  height: 2.75rem;
  padding: 0 2rem;
  font-size: 1rem;
}

.btn-icon {
  height: 2.25rem;
  width: 2.25rem;
  padding: 0;
}

.btn-icon-sm {
  height: 2rem;
  width: 2rem;
  padding: 0;
}

/* Inputs */
.input,
.select,
.textarea {
  display: flex;
  height: 2.25rem;
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--input);
  background-color: #ffffff;
  padding: 0 0.75rem;
  font-size: 0.875rem;
  font-family: 'Inter', sans-serif;
  color: var(--foreground);
  transition-property: border-color, box-shadow;
  transition-duration: 150ms;
  outline: none;
}

.textarea {
  min-height: 5rem;
  height: auto;
  padding: 0.5rem 0.75rem;
  resize: vertical;
}

.input::placeholder,
.textarea::placeholder {
  color: var(--muted-foreground);
}

.input:focus-visible,
.select:focus-visible,
.textarea:focus-visible {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--ring);
}

.input:disabled,
.select:disabled,
.textarea:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

/* Cards */
.card {
  margin-top: 10px;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background-color: var(--card);
  color: var(--card-foreground);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.025);
  overflow: hidden;
}

.card-header {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 1.5rem;
}

.card-title {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.025em;
}

.card-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.card-content {
  padding: 1.5rem;
  padding-top: 0;
}

.card-footer {
  display: flex;
  align-items: center;
  padding: 1.5rem;
  padding-top: 0;
}

/* Badges */
.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-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-duration: 150ms;
}

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

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

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

.badge-primary {
  background-color: var(--accent);
  color: var(--accent-foreground);
  border-color: var(--primary);
}