/*
 * Application-wide Tailwind customizations.
 *
 * This file defines a small set of base styles and reusable components:
 * - body background & typography
 * - .btn utility for primary/secondary buttons
 * - .card component for list items and panels
 * - form input styles
 *
 * Keep these small and composable — prefer Tailwind utility classes in views.
 */

/* Base styles */
html, body {
  height: 100%;
}

body {
  background-color: rgb(249 250 251);
  color: rgb(31 41 55);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.625;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

h1, h2, h3, h4 {
  font-weight: 600;
  color: rgb(17 24 39);
}

a {
  color: rgb(79 70 229);
}

a:hover {
  color: rgb(67 56 202);
}

/* Reusable button styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  background-color: rgb(79 70 229);
  color: rgb(255 255 255);
}

.btn-primary:hover {
  background-color: rgb(67 56 202);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  background-color: rgb(255 255 255);
  border-width: 1px;
  border-color: rgb(229 231 235);
  color: rgb(55 65 81);
}

.btn-secondary:hover {
  background-color: rgb(249 250 251);
}

/* Card component for lists and group/member items */
.card {
  background-color: rgb(255 255 255);
  border-radius: 0.5rem;
  border-width: 1px;
  border-color: rgb(243 244 246);
  padding: 1rem;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.card-title {
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

/* Form controls */
.form-input {
  width: 100%;
  border-radius: 0.375rem;
  border-width: 1px;
  border-color: rgb(229 231 235);
  background-color: rgb(255 255 255);
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.form-input:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px rgb(199 210 254);
}

.form-label {
  display: block;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  color: rgb(55 65 81);
  margin-bottom: 0.25rem;
}

/* Small spacing utility used across the app */
.flow-y > * + * {
  margin-top: 0.75rem;
}
