/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps.
 */

/* Base styles - loaded first */
@import url("/assets/base/variables-eaf2bb9d.css");
@import url("/assets/base/reset-dec77456.css");
@import url("/assets/base/typography-093cbb70.css");

/* Layout styles */
@import url("/assets/layout/header-367008b9.css");
@import url("/assets/layout/navigation-528a4999.css");

/* Component styles */
@import url("/assets/components/buttons-700a3ff4.css");
@import url("/assets/components/forms-de830e6e.css");
@import url("/assets/components/tables-9b6552a4.css");
@import url("/assets/components/alerts-107490f2.css");

/* Global resets */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

/* Layout states */
body.layout-authenticated {
  background-color: var(--color-background);
  overflow-x: hidden;
}

body.layout-unauthenticated {
  background-color: var(--color-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Auth page wrapper — vertically and horizontally centers the card */
.auth-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

/* Logo block above the card */
.auth-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1.5rem;
  text-decoration: none;
}

.auth-logo__icon {
  flex-shrink: 0;
}

.auth-logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.auth-logo__name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: white;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.auth-logo__sub {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* White card that holds the form */
.auth-card {
  background: white;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  padding: 2rem;
  width: 100%;
  max-width: 360px;
}

.auth-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 1.25rem;
}

/* Full-width primary submit inside auth card */
.auth-card .btn-primary {
  width: 100%;
  justify-content: center;
  padding: 0.625rem 1rem;
  font-size: 0.9375rem;
}

/* Secondary link row below the submit */
.auth-links {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.875rem;
}

.auth-links a {
  color: var(--color-primary);
  text-decoration: none;
}

.auth-links a:hover {
  text-decoration: underline;
}

/* Utility classes */
.mt-0 {
  margin-top: 0;
}

.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

.mt-4 {
  margin-top: 2rem;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-1 {
  margin-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

.me-1 {
  margin-right: 0.5rem;
}

.me-2 {
  margin-right: 1rem;
}

.d-flex {
  display: flex;
}

.flex-column {
  flex-direction: column;
}

.justify-between {
  justify-content: space-between;
}

.justify-end {
  justify-content: flex-end;
}

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

.gap-1 {
  gap: 0.5rem;
}

.gap-2 {
  gap: 1rem;
}

.gap-3 {
  gap: 1.5rem;
}

.flex-wrap {
  flex-wrap: wrap;
}

.w-full {
  width: 100%;
}

.hidden {
  display: none;
}

/* Divider */
.divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 1.5rem 0;
}

/* Detail page label/value pairs */
.detail-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: 0.25rem;
}

.detail-value {
  font-size: 0.9375rem;
  color: var(--color-text-dark);
  margin-bottom: 0;
}

/* Section header within a page */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.section-header__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 0;
}

/* Page title row */
.page-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-border);
  gap: 1rem;
}

.page-title-row h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 0;
  line-height: 1.2;
}

.page-title-row__actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
  align-items: center;
}

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8125rem;
  color: var(--color-text-light);
  text-decoration: none;
  margin-bottom: 0.5rem;
}

.back-link:hover {
  color: var(--color-text);
  text-decoration: none;
}

/* Legacy container (kept for compat) */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.5rem;
}