/* Design System - Buttons */

/* Base button styles */
.ds-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  outline: none;
}

.ds-btn:focus-visible {
  outline: 2px solid #384E8F;
  outline-offset: 2px;
}

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

/* Button variants */
.ds-btn-primary {
  background-color: #384E8F;
  color: #ffffff;
}

.ds-btn-primary:hover {
  background-color: #2d3e73;
}

.ds-btn-secondary {
  background-color: #F3F4F6;
  color: #1F2937;
}

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

.ds-btn-destructive {
  background-color: #EF4444;
  color: #ffffff;
}

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

.ds-btn-success {
  background-color: #22C55E;
  color: #ffffff;
}

.ds-btn-success:hover {
  background-color: #16A34A;
}

.ds-btn-outline {
  border: 1px solid #E5E7EB;
  background-color: #ffffff;
  color: #1F2937;
}

.ds-btn-outline:hover {
  background-color: #F9FAFB;
}

.ds-btn-ghost {
  background-color: transparent;
  color: #1F2937;
}

.ds-btn-ghost:hover {
  background-color: #F3F4F6;
}

.ds-btn-link {
  background-color: transparent;
  color: #384E8F;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.ds-btn-link:hover {
  text-decoration: none;
}

/* Button sizes */
.ds-btn-sm {
  height: 2.25rem;
  padding: 0 0.75rem;
  border-radius: 0.375rem;
}

.ds-btn-default {
  height: 2.5rem;
  padding: 0.5rem 1rem;
}

.ds-btn-lg {
  height: 2.75rem;
  padding: 0.5rem 2rem;
  border-radius: 0.5rem;
}

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

/* SVG icon sizing within buttons */
.ds-btn svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  pointer-events: none;
}
