/* Global component styles — Tailwind-free */

/* Layout */
.page-centered {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
}

.card {
  width: 100%;
  background: white;
}

.card-narrow {
  max-width: 28rem;
}

/* Logo */
.logo-centered {
  display: block;
  margin: 0 auto;
  height: 3rem;
  width: auto;
}

/* Headings */
.heading-centered {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 1.875rem;
  font-weight: 800;
  color: #111827;
}

/* Forms */
.form {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.input-group {
  border-radius: 0.375rem;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.input {
  appearance: none;
  position: relative;
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  color: #111827;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.input::placeholder {
  color: #6b7280;
}

.input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 1px #6366f1;
  z-index: 10;
}

.input-top {
  border-radius: 0.375rem 0.375rem 0 0;
}

.input-bottom {
  border-radius: 0 0 0.375rem 0.375rem;
  margin-top: -1px;
}

/* Form rows */
.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Checkboxes */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #111827;
}

.checkbox {
  width: 1rem;
  height: 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.25rem;
  color: #4f46e5;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.375rem;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background-color: #4f46e5;
  color: white;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.btn-primary:hover {
  background-color: #4338ca;
}

.btn-full {
  width: 100%;
}

/* Site header */
.site-header {
  background: white;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
}

.site-header-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 3.5rem;
}

.site-logo img {
  height: 2rem;
  width: auto;
  display: block;
}

.site-header-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.header-icon {
  padding: 0.25rem;
  border-radius: 9999px;
  color: #9ca3af;
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  text-decoration: none;
}

.header-icon:hover {
  color: #6b7280;
}

.header-icon--active {
  color: #4f46e5;
}

.header-icon .icon {
  width: 1.5rem;
  height: 1.5rem;
}

.header-icon-badge {
  position: relative;
  display: inline-flex;
}

.badge-count {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  height: 1rem;
  width: 1rem;
  border-radius: 9999px;
  background-color: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 500;
  color: white;
}

.header-action {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: #374151;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  margin-left: 0.5rem;
}

.header-action:hover {
  color: #111827;
}

.header-action .icon {
  width: 1rem;
  height: 1rem;
}

/* Avatar */
.avatar-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* Header dropdown */
.header-dropdown {
  position: relative;
  margin-left: 0.5rem;
}

.header-avatar {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.header-dropdown-menu {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 0.5rem;
  min-width: 10rem;
  background: white;
  border-radius: 0.375rem;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  border: 1px solid #e5e7eb;
  padding: 0.25rem 0;
  z-index: 50;
}

.header-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: #374151;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.header-dropdown-item:hover {
  background-color: #f3f4f6;
}

.header-dropdown-item .icon {
  width: 1rem;
  height: 1rem;
}

.header-dropdown-divider {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 0.25rem 0;
}

.hidden {
  display: none;
}
