/* ============================================================
   LAKE SUCCESS POOL — GLOBAL STYLES
   Design system: Neumorphic / Soft UI × Digital Blue × SN Pro
   ============================================================ */

/* ----------------------------------------------------------
   1. FONT FACE — SN Pro (self-hosted)
   ---------------------------------------------------------- */

@font-face {
  font-family: 'SN Pro';
  src: url('../fonts/SNPro-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'SN Pro';
  src: url('../fonts/SNPro-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'SN Pro';
  src: url('../fonts/SNPro-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'SN Pro';
  src: url('../fonts/SNPro-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'SN Pro';
  src: url('../fonts/SNPro-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'SN Pro';
  src: url('../fonts/SNPro-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}


/* ----------------------------------------------------------
   2. DESIGN TOKENS
   ---------------------------------------------------------- */

:root {
  --surface:          #D0D5DB;
  --card-surface:     #dfe4eb;

  --blue-50:          #e5f0ff;
  --blue-100:         #cce0ff;
  --blue-200:         #99c2ff;
  --blue-300:         #66a3ff;
  --blue-400:         #3385ff;
  --blue-500:         #0066ff;
  --blue-600:         #0052cc;
  --blue-700:         #003d99;
  --blue-800:         #002966;
  --blue-900:         #001433;

  --text-primary:     #3D4852;
  --text-secondary:   #6B7280;
  --text-placeholder: #A0AEC0;

  --accent:           #0052cc;
  --accent-light:     #3385ff;
  --accent-success:   #38B2AC;

  --font-base:        'SN Pro', system-ui, -apple-system, sans-serif;

  --radius-sm:        10px;
  --radius-md:        14px;
  --radius-lg:        22px;
  --radius-xl:        32px;
  --radius-full:      9999px;

  --shadow-xs:        3px 3px 6px rgb(163 177 198 / 0.6),
                      -3px -3px 6px rgba(255 255 255 / 0.5);
  --shadow-sm:        5px 5px 10px rgb(163 177 198 / 0.6),
                      -5px -5px 10px rgba(255 255 255 / 0.5);
  --shadow-md:        9px 9px 16px rgb(163 177 198 / 0.6),
                      -9px -9px 16px rgba(255 255 255 / 0.5);
  --shadow-lg:        12px 12px 20px rgb(163 177 198 / 0.7),
                      -12px -12px 20px rgba(255 255 255 / 0.6);

  --shadow-inset-sm:  inset 3px 3px 6px rgb(163 177 198 / 0.6),
                      inset -3px -3px 6px rgba(255 255 255 / 0.5);
  --shadow-inset-md:  inset 6px 6px 10px rgb(163 177 198 / 0.6),
                      inset -6px -6px 10px rgba(255 255 255 / 0.5);
  --shadow-inset-lg:  inset 10px 10px 20px rgb(163 177 198 / 0.7),
                      inset -10px -10px 20px rgba(255 255 255 / 0.6);

  --transition-ui:    all 0.3s ease-out;
}


/* ----------------------------------------------------------
   3. RESET & BASE
   ---------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-base);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: var(--transition-ui); }
a:hover { color: var(--accent-light); }
button { cursor: pointer; font-family: var(--font-base); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}


/* ----------------------------------------------------------
   4. TYPOGRAPHY
   ---------------------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-base);
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 4vw, 2rem);    font-weight: 800; }
h3 { font-size: 1.125rem;                     font-weight: 700; }
h4 { font-size: 1rem;                         font-weight: 700; }

p { color: var(--text-secondary); line-height: 1.65; }
small { font-size: 0.75rem; color: var(--text-secondary); }


/* ----------------------------------------------------------
   5. LAYOUT
   ---------------------------------------------------------- */

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

main {
  flex: 1;
  padding: 2rem 1rem;
}


/* ----------------------------------------------------------
   6. HEADER / NAVBAR
   ---------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(224, 229, 236, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.875rem 1.5rem;
  box-shadow: 0 2px 12px rgb(163 177 198 / 0.4);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
}

/* Logo image styled as an icon well */
.header-brand img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.header-brand-text { line-height: 1.2; }

.header-brand-text .site-name {
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.025em;
}

.header-brand-text .page-title {
  font-size: 0.6875rem;
  color: var(--text-secondary);
  margin-top: 1px;
  font-weight: 500;
}

.header-auth {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
}

.auth-status {
  color: var(--text-secondary);
  font-size: 0.75rem;
}

/* Tab buttons (used on dwt, application, incidents, guestpasses) */
.header-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.tab-btn {
  background: var(--surface);
  color: var(--text-secondary);
  border: none;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: var(--font-base);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-ui);
}

.tab-btn:hover {
  box-shadow: var(--shadow-md);
  color: var(--text-primary);
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--blue-400), var(--blue-600));
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}


/* ----------------------------------------------------------
   7. BUTTONS
   ---------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  border: none;
  cursor: pointer;
  font-family: var(--font-base);
  font-weight: 700;
  transition: var(--transition-ui);
  white-space: nowrap;
  min-height: 44px;
  text-decoration: none;
}

.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* Primary — blue gradient */
.btn-primary, .btn--primary {
  background: linear-gradient(135deg, var(--blue-400), var(--blue-600));
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 0.5625rem 1.25rem;
  font-size: 0.8125rem;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255 255 255 / 0.2);
}
.btn-primary:hover, .btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: #ffffff;
}
.btn-primary:active, .btn--primary:active {
  transform: translateY(0.5px);
  box-shadow: inset 4px 4px 8px rgba(0 30 80 / 0.3),
              inset -2px -2px 6px rgba(255 255 255 / 0.1);
}

/* Secondary — neumorphic surface */
.btn-secondary, .btn--secondary {
  background: var(--surface);
  color: var(--accent);
  border-radius: var(--radius-sm);
  padding: 0.4375rem 0.875rem;
  font-size: 0.6875rem;
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover, .btn--secondary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: var(--accent-light);
}
.btn-secondary:active, .btn--secondary:active {
  transform: translateY(0.5px);
  box-shadow: var(--shadow-inset-sm);
}

/* Ghost — neumorphic with accent outline feel */
.btn-ghost {
  background: var(--surface);
  color: var(--accent);
  border-radius: var(--radius-sm);
  padding: 0.4375rem 0.875rem;
  font-size: 0.6875rem;
  box-shadow: var(--shadow-xs);
  border: 1px solid rgba(0 82 204 / 0.25);
}
.btn-ghost:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  color: var(--accent-light);
  border-color: var(--accent-light);
}

/* Functional variants — kept for admin/staff UI */
.btn-success  { background: #2f855a; color: white; border-radius: var(--radius-md); padding: 0.5625rem 1.25rem; font-size: 0.8125rem; box-shadow: var(--shadow-sm); }
.btn-danger   { background: #c53030; color: white; border-radius: var(--radius-md); padding: 0.5625rem 1.25rem; font-size: 0.8125rem; box-shadow: var(--shadow-sm); }
.btn-warning  { background: #c05621; color: white; border-radius: var(--radius-md); padding: 0.5625rem 1.25rem; font-size: 0.8125rem; box-shadow: var(--shadow-sm); }
.btn-success:hover, .btn-danger:hover, .btn-warning:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }

/* Size modifiers */
.btn-sm { padding: 0.3rem 0.75rem; font-size: 0.75rem; min-height: 36px; }
.btn-lg { padding: 0.75rem 1.75rem; font-size: 1rem; }


/* ----------------------------------------------------------
   8. CARDS
   ---------------------------------------------------------- */

.card {
  background: var(--card-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
  transition: var(--transition-ui);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Suppress hover lift on cards that are data containers, not navigation */
.card.no-hover:hover { transform: none; box-shadow: var(--shadow-md); }

.card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* Icon well — inset container inside a card */
.card__icon-well {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-inset-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  flex-shrink: 0;
  font-size: 1.125rem;
  line-height: 1;
}

.card__title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
  letter-spacing: -0.015em;
}

.card__body {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 0.875rem;
}


/* ----------------------------------------------------------
   9. SECTION LABEL
   ---------------------------------------------------------- */

.section-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.875rem;
  padding-left: 0.25rem;
}

.page-home .section-label { margin-top: 1.5rem; }


/* ----------------------------------------------------------
   10. HERO SECTION (homepage)
   ---------------------------------------------------------- */

.hero {
  position: relative;
  height: clamp(240px, 35vw, 340px);
  overflow: hidden;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 20, 51, 0.15) 0%,
    rgba(0, 41, 102, 0.38) 50%,
    var(--surface) 100%
  );
}

.hero__content {
  position: absolute;
  bottom: 2.25rem;
  left: 1.75rem;
  right: 1.75rem;
}

.hero__title {
  font-size: clamp(1.625rem, 4vw, 2.25rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.04em;
  line-height: 1.15;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.3);
}

.hero__title span { color: var(--blue-200); }


/* ----------------------------------------------------------
   11. BADGE / PILL (hero area)
   ---------------------------------------------------------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
  background: var(--surface);
  border-radius: var(--radius-full);
  padding: 0.375rem 1rem;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.075em;
  text-transform: uppercase;
  box-shadow: var(--shadow-inset-sm);
  margin-bottom: 0.75rem;
}

.badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-400), var(--blue-600));
  flex-shrink: 0;
}


/* ----------------------------------------------------------
   12. FORMS
   ---------------------------------------------------------- */

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="number"],
input[type="password"],
select,
textarea {
  width: 100%;
  padding: 0.65rem 0.875rem;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-family: var(--font-base);
  color: var(--text-primary);
  background: var(--surface);
  box-shadow: var(--shadow-inset-md);
  transition: var(--transition-ui);
  min-height: 44px;
}

input::placeholder,
textarea::placeholder { color: var(--text-placeholder); }

input:focus,
select:focus,
textarea:focus {
  outline: none;
  box-shadow: var(--shadow-inset-lg), 0 0 0 2px var(--accent);
}

input[type="file"] {
  box-shadow: var(--shadow-inset-sm);
  padding: 0.5rem 0.875rem;
  min-height: unset;
  font-size: 0.875rem;
}

input[type="checkbox"],
input[type="radio"] {
  width: auto;
  min-height: unset;
  box-shadow: none;
  accent-color: var(--accent);
}

textarea { resize: vertical; min-height: 80px; }

.field-error {
  font-size: 0.8rem;
  color: #c53030;
  margin-top: 0.2rem;
}

/* Form grid layouts */
.form-grid, .row-grid, .row-grid-2, .row-grid-3 {
  display: grid;
  gap: 0.75rem;
}
.row-grid-2 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.row-grid-3 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }


/* ----------------------------------------------------------
   13. MESSAGES
   ---------------------------------------------------------- */

.msg {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  margin: 0.75rem 0;
  display: none;
}

.msg.show { display: block; }
.msg-success { background: #c6f6d5; color: #276749; border-left: 4px solid #38a169; }
.msg-error   { background: #fed7d7; color: #822727; border-left: 4px solid #c53030; }
.msg-info    { background: #bee3f8; color: #2a4a6b; border-left: 4px solid #3182ce; }
.msg-warning { background: #fefcbf; color: #744210; border-left: 4px solid #d69e2e; }


/* ----------------------------------------------------------
   14. BANNERS
   ---------------------------------------------------------- */

.banner {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.banner-red    { background: #fed7d7; color: #822727; border-left: 4px solid #c53030; }
.banner-yellow { background: #fefcbf; color: #744210; border-left: 4px solid #d69e2e; }
.banner-blue   { background: #bee3f8; color: #2a4a6b; border-left: 4px solid #3182ce; }
.banner-green  { background: #c6f6d5; color: #276749; border-left: 4px solid #38a169; }


/* ----------------------------------------------------------
   15. STATUS PILLS
   ---------------------------------------------------------- */

.pill {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pill-green  { background: #c6f6d5; color: #276749; }
.pill-yellow { background: #fefcbf; color: #744210; }
.pill-red    { background: #fed7d7; color: #822727; }
.pill-gray   { background: rgba(163 177 198 / 0.3); color: var(--text-secondary); }
.pill-blue   { background: #bee3f8; color: #2a4a6b; }


/* ----------------------------------------------------------
   16. TABLES
   ---------------------------------------------------------- */

.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th {
  background: rgba(163 177 198 / 0.15);
  padding: 0.6rem 0.75rem;
  text-align: left;
  font-weight: 700;
  color: var(--text-primary);
  border-bottom: 2px solid rgba(163 177 198 / 0.4);
  white-space: nowrap;
}

td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid rgba(163 177 198 / 0.3);
  vertical-align: top;
  color: var(--text-secondary);
}

tr:hover td { background: rgba(163 177 198 / 0.1); }


/* ----------------------------------------------------------
   17. MODAL
   ---------------------------------------------------------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
  backdrop-filter: blur(4px);
}

.modal-overlay.hidden { display: none; }

.modal-box {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 2rem;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.modal-close {
  background: var(--surface);
  border: none;
  font-size: 1.5rem;
  color: var(--text-secondary);
  line-height: 1;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-ui);
}

.modal-close:hover {
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
}


/* ----------------------------------------------------------
   18. TOOLBAR & STATS
   ---------------------------------------------------------- */

.toolbar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1.25rem;
}

.toolbar input[type="text"] { flex: 1; min-width: 180px; }

.stats-bar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.stat-pill {
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
}


/* ----------------------------------------------------------
   19. SIGNATURE PAD
   ---------------------------------------------------------- */

.sigpad-wrap {
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-inset-md);
  position: relative;
  overflow: hidden;
}

.sigpad-wrap canvas {
  display: block;
  width: 100%;
  height: 80px;
  touch-action: none;
}

.sigpad-clear {
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 0.7rem;
  background: var(--surface);
  border: none;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xs);
  padding: 2px 8px;
  color: var(--text-secondary);
  min-height: unset;
}


/* ----------------------------------------------------------
   20. FIELDSET
   ---------------------------------------------------------- */

fieldset {
  border: none;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-md);
  background: var(--surface);
}

legend {
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0 0.5rem;
}


/* ----------------------------------------------------------
   21. FOOTER
   ---------------------------------------------------------- */

.site-footer {
  background: var(--surface);
  color: var(--text-secondary);
  text-align: center;
  padding: 1rem 1.5rem;
  font-size: 0.6875rem;
  margin-top: auto;
  box-shadow: 0 -4px 12px rgb(163 177 198 / 0.3);
}


/* ----------------------------------------------------------
   22. PAGE-SPECIFIC: GUEST PASS CARDS
   ---------------------------------------------------------- */

.pass-card {
  background: var(--card-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1rem;
  cursor: pointer;
  transition: var(--transition-ui);
}
.pass-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.pass-card.fully-used { opacity: 0.6; }

.punch-bar-wrap {
  background: rgba(163 177 198 / 0.4);
  border-radius: var(--radius-full);
  height: 10px;
  margin: 0.5rem 0;
  overflow: hidden;
  box-shadow: var(--shadow-inset-sm);
}
.punch-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: #48bb78;
  transition: width 0.3s;
}
.punch-bar-fill.warn  { background: #ed8936; }
.punch-bar-fill.empty { background: #fc8181; }

.status-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}
.status-active { background: #c6f6d5; color: #276749; }
.status-used   { background: #fed7d7; color: #822727; }

/* Application status badges */
.status-awaiting_payment { background: #fefcbf; color: #744210; }
.status-paid             { background: #c6f6d5; color: #276749; }

/* Member search dropdown */
.search-results {
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  max-height: 200px;
  overflow-y: auto;
  margin-top: 0.25rem;
}
.search-result-item {
  padding: 0.6rem 0.875rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(163 177 198 / 0.3);
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: background 0.15s;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: rgba(0 82 204 / 0.06); color: var(--text-primary); }


/* ----------------------------------------------------------
   23. PAGE-SPECIFIC: INCIDENT / APPLICATION CARDS
   ---------------------------------------------------------- */

.report-card, .application-card {
  background: var(--card-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1rem;
  cursor: pointer;
  transition: var(--transition-ui);
}
.report-card:hover, .application-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.severity-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}
.severity-minor    { background: rgba(163 177 198 / 0.3); color: var(--text-primary); }
.severity-moderate { background: #fefcbf; color: #744210; }
.severity-serious  { background: #fed7d7; color: #822727; }


/* ----------------------------------------------------------
   24. PAGE-SPECIFIC: APPLICATION MEMBER / WAIVER ROWS
   ---------------------------------------------------------- */

.member-row, .waiver-row, .guest-row {
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.row-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.photo-preview {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xs);
  margin-top: 0.35rem;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  cursor: zoom-out;
  backdrop-filter: blur(4px);
}
.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  object-fit: contain;
  box-shadow: var(--shadow-lg);
}

.required-star { color: #c53030; margin-left: 2px; }
.over25-warning { display: none; }
.over25-warning.show { display: block; }

/* Sig canvas inline */
.sig-canvas {
  width: 100%;
  height: 80px;
  touch-action: none;
  display: block;
  background: transparent;
}


/* ----------------------------------------------------------
   25. UTILITY
   ---------------------------------------------------------- */

.hidden     { display: none !important; }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-sm    { font-size: 0.85rem; }
.text-muted { color: var(--text-secondary); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.flex { display: flex; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }


/* ----------------------------------------------------------
   26. RESPONSIVE
   ---------------------------------------------------------- */

@media (max-width: 640px) {
  h1 { font-size: 1.4rem; }
  .header-inner { flex-direction: column; align-items: flex-start; }
  .header-auth { width: 100%; justify-content: space-between; }
  .modal-box { padding: 1.25rem; }
  .card { padding: 1rem; }
  fieldset { padding: 1rem; }
}


/* ----------------------------------------------------------
   27. PRINT
   ---------------------------------------------------------- */

@media print {
  .site-header,
  .site-footer,
  .modal-overlay,
  .no-print { display: none !important; }
  body { background: white; }
  .card { box-shadow: none; border: 1px solid #e2e8f0; }
  fieldset { box-shadow: none; border: 1px solid #e2e8f0; }
  main { padding: 0; }
}
