/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Auth pages (Devise) */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(31, 111, 235, 0.10), transparent 60%),
    radial-gradient(1000px 500px at 10% 110%, rgba(110, 64, 201, 0.08), transparent 60%),
    #f5f6fa;
}

.auth-card {
  width: 100%;
  max-width: 400px;
}

.auth-card .card {
  border: 1px solid #e9ecef;
  border-radius: 1rem;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.auth-brand {
  letter-spacing: -0.02em;
}

.auth-brand-mark {
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, #1f6feb, #6e40c9);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
}

.auth-brand-mark-sm {
  width: 2rem;
  height: 2rem;
  border-radius: 0.6rem;
  font-size: 0.9rem;
}

/* Compact variant of auth pages shown below the navbar */
.auth-page-compact {
  min-height: calc(100vh - 3.75rem);
}

/* App navbar */
.app-navbar {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e9ecef;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.app-navbar-title {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.app-nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: #334155;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.app-nav-link:hover,
.app-nav-link:focus,
.app-nav-link.show {
  color: #1f6feb;
}

.app-dropdown-menu {
  border-radius: 0.75rem;
  font-size: 0.9rem;
  margin-top: 0.4rem;
}

/* Flash messages */
.app-flash {
  margin-bottom: 1rem;
}

/* Slim app data tables */
.app-table {
  font-size: 0.875rem;
}

.app-table thead th {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
  white-space: nowrap;
}

.app-table tbody td {
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
  border-color: #f1f5f9;
}

.app-table tbody tr:last-child td {
  border-bottom: 0;
}

/* Slim key/value detail card */
.app-detail {
  font-size: 0.875rem;
}

.app-detail dt {
  font-weight: 600;
  color: #64748b;
  background-color: #fafbfc;
}

.app-detail dd {
  margin: 0;
}

.app-detail dt,
.app-detail dd {
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid #f1f5f9;
}

.app-detail dt:last-of-type,
.app-detail dd:last-of-type {
  border-bottom: 0;
}

/* Slim pagination (pagy bootstrap nav) */
.app-pagination .pagination {
  margin-bottom: 0;
  --bs-pagination-font-size: 0.8125rem;
}

.app-pagination .page-link {
  padding: 0.25rem 0.6rem;
}
