/* Label styling */
.label {
  display: block;
  font-size: 0.875rem; /* 14px */
  font-weight: 600;
  color: #374151; /* Tailwind gray-700 */
  margin-bottom: 0.25rem; /* 4px */
}

/* Input, select, textarea styling */
.input {
  width: 100%;
  padding: 0.5rem 0.75rem; /* 8px 12px */
  font-size: 0.875rem;
  color: #374151; /* gray-700 */
  border: 1px solid #d1d5db; /* gray-300 */
  border-radius: 0.375rem; /* 6px */
  outline: none;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  box-sizing: border-box;
  font-family: inherit;
}

.input::placeholder {
  color: #9ca3af; /* gray-400 */
}

/* Focus effect */
.input:focus {
  border-color: #3b82f6; /* blue-500 */
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5); /* blue ring */
}

/* Card container */
.card {
  background-color: #ffffff;
  border: 1px solid #e5e7eb; /* gray-200 */
  border-radius: 0.5rem; /* 8px */
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  padding: 1.5rem; /* 24px */
  margin-bottom: 1.5rem;
}

/* Primary button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem; /* 8px 16px */
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  background-color: #2563eb; /* blue-600 */
  border: none;
  border-radius: 0.375rem; /* 6px */
  cursor: pointer;
  transition: background-color 0.15s ease-in-out;
  text-align: center;
  user-select: none;
}

.btn-primary:hover {
  background-color: #1d4ed8; /* blue-700 */
}

/* Danger button */
.btn-danger {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #dc2626; /* red-600 */
  background-color: #fee2e2; /* red-100 */
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background-color 0.15s ease-in-out;
  text-align: center;
  user-select: none;
  text-decoration: none; /* for anchors */
}

.btn-danger:hover {
  background-color: #fecaca; /* red-200 */
}

/* Checkbox styling (optional) */
input[type="checkbox"] {
  border-radius: 0.25rem;
  width: 1rem;
  height: 1rem;
  cursor: pointer;
}

/* Utility: spacing between form groups */
.space-y-4 > * + * {
  margin-top: 1rem;
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.gap-2 {
  gap: 0.5rem;
}
