/* ============================================================
   UVAS Option B — Core Theme (uvas-core.css)
   ============================================================ */

/* 1. Global Reset & Base Typography */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #222222;
  background-color: #f5f7fa;
}

/* 2. Option B Palette & Tokens */
:root {
  --uvas-deep-blue: #003366;
  --uvas-olive: #6E7B6E;
  --uvas-sand: #BE8D26;
  --uvas-gold-strong: #CC9900;
  --uvas-white: #FFFFFF;
  --uvas-charcoal: #222222;

  --uvas-radius-card: 12px;
  --uvas-radius-pill: 999px;

  --uvas-spacing-xs: 4px;
  --uvas-spacing-sm: 8px;
  --uvas-spacing-md: 16px;
  --uvas-spacing-lg: 24px;
  --uvas-spacing-xl: 32px;

  --uvas-font-size-sm: 14px;
  --uvas-font-size-base: 16px;
  --uvas-font-size-lg: 18px;
  --uvas-font-size-xl: 22px;

  --uvas-shadow-soft: 0 2px 6px rgba(0, 0, 0, 0.08);
  --uvas-shadow-strong: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* ============================================================
   UVAS ICON SYSTEM — STABLE VERSION
   ============================================================ */

/* Base icon — NO COLOR HERE */
.uvas-icon {
  display: inline-flex;
  width: 1em;
  height: 1em;
  margin-right: 8px;
  vertical-align: middle;
}

.uvas-icon-group {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  flex-shrink: 0;
  line-height: 0;        /* ⭐ prevents vertical clipping */
}

.uvas-icon {
  width: 24px;
  height: 24px;
}

.uvas-button {
  display: flex;
  align-items: center;
  line-height: 1.2;
}

/* Filled icons */
.uvas-icon--filled path {
  fill: currentColor;
  stroke: none;
}

/* Outline icons */
.uvas-icon--outline path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Button icons — 24px */
.uvas-button .uvas-icon {
  font-size: 24px;
  color: var(--uvas-deep-blue);
}

/* Footer icons — 26px */
.uvas-footer-link .uvas-icon {
  font-size: 26px;
  color: #000;
}

/* Active footer link */
.uvas-footer-link--active .uvas-icon {
  color: var(--uvas-gold-strong);
}

/* Committee override */
.committee-same-black .uvas-icon {
  color: #fff;
}
/* ResidentHome — make the Committee Functions label white */
.uvas-app.uvas-app--resident #committee-section .uvas-subheading {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.35); /* optional readability boost */
}

/* 4. Header — Clean, Compact, Inline, Left-Aligned */
.uvas-header--resident {
  background: linear-gradient(135deg, var(--uvas-deep-blue), var(--uvas-sand));
  color: var(--uvas-white);
  padding: 0;
  box-shadow: var(--uvas-shadow-soft);
}

.uvas-header-inner.uvas-header-horizontal {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: var(--uvas-spacing-sm);
  padding: 8px 16px;
  text-align: left;
}

/* Logo */
#uvasLogo.uvas-logo-inline {
  height: 52px;
  width: auto;
  display: inline-block;
}
.uvas-v-highlight {
  color: var(--uvas-gold);   /* Option‑B gold */
  font-weight: 700;
}
.uvas-brand {
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Welcome line */
.uvas-header-title-inline {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--uvas-white);
  white-space: nowrap;
}

/* 5. Main Content / Card Hub */
.uvas-main {
  flex: 1;
  padding: 24px 16px;
}

.uvas-main-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 6. Cards */
.uvas-card {
  background-color: var(--uvas-white);
  border-radius: var(--uvas-radius-card);
  box-shadow: var(--uvas-shadow-soft);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.uvas-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--uvas-deep-blue);
}

/* 7. Buttons / Quick Actions */
.uvas-button-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.uvas-button {
  min-width: 120px;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: var(--uvas-radius-pill);
  border: none;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;  /* or flex-start if you prefer */
  /* gap: 12px;  ← remove this for now */
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

/* Primary (Deep Blue) */
.uvas-button--primary {
  background-color: var(--uvas-deep-blue);
  color: var(--uvas-white);
}

.uvas-button--primary:hover {
  background-color: #00264d;
  box-shadow: var(--uvas-shadow-soft);
}

/* Secondary (Olive / Sand mix) */
.uvas-button--secondary {
  background-color: var(--uvas-olive);
  color: var(--uvas-white);
}

.uvas-button--secondary:hover {
  background-color: #5b685b;
  box-shadow: var(--uvas-shadow-soft);
}

/* 8. Footer */
.uvas-footer {
  background-color: var(--uvas-white);
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.06);
}
.uvas-footer-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.uvas-footer-link {
  flex: 1 1 25%;            /* 4 items per row by default */
  min-height: 40px;
  padding: 6px 10px;
  border-radius: var(--uvas-radius-pill);
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--uvas-deep-blue);
  background-color: rgba(0, 51, 102, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.uvas-footer-link--active {
  background-color: rgba(0, 51, 102, 0.8);
  color: var(--uvas-white);
}

/* 9. Icons (final sizing for button-attached icons) */
.uvas-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;   /* ⭐ prevents shrinking */
  margin-right: 12px;
  display: inline-block;
}

/* 10. Responsive */
@media (max-width: 640px) {
  .uvas-main {
    padding: 16px 12px;
  }

  .uvas-main-inner {
    gap: 24px;
  }

  .uvas-header-inner.uvas-header-horizontal {
    padding: 8px 12px;
    gap: var(--uvas-spacing-xs);
  }

  .uvas-header-title-inline {
    font-size: 1.1rem;
  }
}
/* ============================================================
   Resident Home — 2‑Column Layout for All Groups
   ============================================================ */

/* Apply to all card groups */
.uvas-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;   /* always two columns */
  gap: 12px;
}

/* Buttons inside grids — compact for mobile */
.uvas-card-grid .uvas-button {
  padding: 12px 10px;
  font-size: 0.9rem;
  min-height: 44px;
}

/* Optional: tighter spacing on very small screens */
@media (max-width: 400px) {
  .uvas-card-grid {
    gap: 10px;
  }

  .uvas-card-grid .uvas-button {
    padding: 10px 8px;
    font-size: 0.85rem;
  }
}
/* 2‑column layout for button rows in cards */
.uvas-button-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;   /* horizontal spacing between columns */
  row-gap: 14px;      /* vertical spacing between buttons */
}

/* Do NOT force button width or centering */
.uvas-button-row .uvas-button {
  /* let core styles handle width and alignment */
}
.uvas-footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

/* On very narrow screens, allow 2 per row */
@media (max-width: 480px) {
  .uvas-footer-link {
    flex: 1 1 50%;
  }
}
.uvas-login-screen .uvas-btn-primary {
  width: 100%;
}
/* Login screen: full-width Continue button */
.uvas-login-screen .uvas-btn-primary {
  width: 100% !important;
}
/* ============================================================
   UVAS — Missing Classes for Events Overview (Option B)
   ============================================================ */

/* Section Title */
.uvas-section-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--uvas-deep-blue);
  margin-bottom: var(--uvas-spacing-md);
}

/* Hidden Utility */
.uvas-hidden {
  display: none !important;
}

/* Card States */
.uvas-card-active {
  border-left: 6px solid var(--uvas-deep-blue);
  box-shadow: var(--uvas-shadow-strong);
  cursor: pointer;
}

.uvas-card-inactive {
  opacity: 0.65;
  border-left: 6px solid var(--uvas-olive);
}

.uvas-card-active-selected {
  border-left: 6px solid var(--uvas-gold-strong);
  background-color: rgba(204, 153, 0, 0.08);
  box-shadow: var(--uvas-shadow-strong);
}

/* Card Detail Lines */
.uvas-card-date,
.uvas-card-time,
.uvas-card-location,
.uvas-card-bookable {
  font-size: var(--uvas-font-size-base);
  color: var(--uvas-charcoal);
}

.uvas-card-bookable {
  font-weight: 600;
  color: var(--uvas-deep-blue);
}
/* ------------------------------------------------------------
   Compact Card Variant (Option‑B Spacing)
   ------------------------------------------------------------ */
.uvas-card-compact {
  padding: 12px 16px;
  margin-bottom: 12px;
  border-radius: var(--uvas-radius);
  background-color: var(--uvas-white);
}

.uvas-card-compact h2,
.uvas-card-compact .uvas-subheading {
  margin-top: 0;
  margin-bottom: 8px;
}

/* FIX: Committee-only card button alignment on mobile */
@media (max-width: 640px) {
  .uvas-card-button-group-committee .uvas-button {
    width: 100%;
    min-width: unset;
    flex: 1 1 100%;
  }
}

.uvas-card-compact .uvas-card-button-group-committee {
  background-color: var(--uvas-gold);
}

.uvas-card-compact .uvas-button {
  margin-bottom: 0;
}

/* Primary Button (HTML uses uvas-button-primary) */
.uvas-button-primary {
  background-color: var(--uvas-deep-blue);
  color: var(--uvas-white);
  border-radius: var(--uvas-radius-pill);
  padding: 12px 20px;
  font-size: var(--uvas-font-size-base);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.uvas-button-primary:hover {
  background-color: #00264d;
  box-shadow: var(--uvas-shadow-soft);
}

/* Footer Items (HTML uses uvas-footer-item) */
.uvas-footer-item {
  flex: 1;
  padding: 10px;
  text-align: center;
  font-size: var(--uvas-font-size-base);
  font-weight: 600;
  color: var(--uvas-deep-blue);
  background-color: rgba(0, 51, 102, 0.06);
  border-radius: var(--uvas-radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.uvas-footer-item:hover {
  background-color: rgba(0, 51, 102, 0.12);
}
/* Secondary Button (neutral, WCAG compliant) */
.uvas-button-secondary {
  background-color: var(--uvas-sand);
  color: var(--uvas-olive-dark);
  border-radius: var(--uvas-radius-pill);
  padding: 12px 20px;
  font-size: var(--uvas-font-size-base);
  font-weight: 600;
  border: 2px solid var(--uvas-olive-dark);
  cursor: pointer;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}
.uvas-card-button-group {
  display: flex;
  gap: 12px; /* desktop */
  padding: 12px;
  border-radius: var(--uvas-radius);
  background-color: var(--uvas-sand);
}
@media (max-width: 640px) {
  .uvas-card-button-group {
    gap: 16px; /* more breathing room on mobile */
  }
}

/* ------------------------------------------------------------
   Resident Home — Compact Section Layout
   ------------------------------------------------------------ */

.resident-home-section {
  margin-bottom: 16px;              /* reduce vertical spacing */
  padding: 8px 0;                   /* tighten section padding */
}

.resident-home-section h2,
.resident-home-section .uvas-subheading {
  margin-top: 0;
  margin-bottom: 6px;               /* reduce space above buttons */
}

/* Button grouping inside each section */
.resident-home-button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;                        /* tighter spacing between buttons */
  padding: 10px;
  border-radius: var(--uvas-radius);
  background-color: var(--uvas-sand); /* Option‑B sand */
}

/* Committee-only button group */
/* FIX: Committee-only card button spacing on mobile */
.resident-home-button-group-committee {
  background-color: var(--uvas-gold);
  display: flex;
  flex-direction: column;   /* stack buttons cleanly */
  gap: 16px;                /* spacing between buttons */
}
/* Step 1 — Correct white space under card titles ONLY */
.uvas-card .uvas-card-title {
  margin-top: 0;        /* prevents the unwanted increase above the title */
  margin-bottom: 5px;  /* tightens spacing below the title */
}

/* 2. Reduce space between card title and button rows */
.uvas-card > .uvas-card-title {
  margin-bottom: 4px;   /* small margin */
}

.uvas-card > .uvas-button-row {
  margin-top: 0;        /* remove extra gap */
}

#committee-section {
  margin-top: 0;
  padding-top: 0;
}

.uvas-card:last-of-type {
  margin-bottom: 0;
}

/* 3. Committee card styling */
.uvas-card--committee {
  background-color: var(--uvas-deep-blue);
  padding: 16px;
  border-radius: var(--uvas-radius);
}

/* 4. Gold committee buttons */
.uvas-button--committee {
  background-color: var(--uvas-gold-strong);
  color: var(--uvas-charcoal);
}
.uvas-button-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 14px;
}

.uvas-button-column {
  background-color: #f5e6c5;          /* temporary strong sand */
  padding: 12px;
  border-radius: var(--uvas-radius-card);
  border: 1px solid #d0b46a;          /* gold-ish border */
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.uvas-card .uvas-button-row {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 14px;
}
.uvas-button-column .uvas-button {
  width: auto !important;
}
/* LEFT BOX — unchanged */
.uvas-button-row .uvas-button-column:first-child {
  background-color: #f0d9a0; /* your sand tone */
}

/* RIGHT BOX — black background */
.uvas-button-row .uvas-button-column:last-child {
  background-color: #000;        /* black */
  padding: 12px;
  border-radius: var(--uvas-radius-card);
}

/* Buttons inside RIGHT BOX — sand background */
.uvas-button-row .uvas-button-column:last-child .uvas-button {
  background-color: #f0d9a0;     /* sand */
  color: #0a2a4a;                /* deep blue text */
  border: none;
}

/* Icons inside RIGHT BOX — deep blue */
.uvas-button-row .uvas-button-column:last-child .uvas-icon {
  filter: brightness(0) saturate(100%) invert(14%) sepia(52%) saturate(900%) hue-rotate(180deg);
}
/* Committee card background */
.uvas-card--committee {
  background-color: var(--uvas-blue-deep);
  color: var(--uvas-sand);
}

/* Column boxes */
.uvas-card--committee .uvas-button-column {
  padding: 16px;
  border-radius: var(--uvas-radius-card);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* LEFT COLUMN — sand background */
.uvas-card--committee .committee-left {
  background-color: var(--uvas-sand);
}

/* RIGHT COLUMN — black background */
.uvas-card--committee .committee-right {
  background-color: #000;
}

/* Buttons inside LEFT COLUMN */
.uvas-button--committee {
  background-color: var(--uvas-gold-strong);
  color: var(--uvas-charcoal);
}

/* Buttons inside RIGHT COLUMN */
.uvas-card--committee .committee-right .uvas-button {
  background-color: var(--uvas-sand);
  color: var(--uvas-blue-deep);
}

/* Return card */
.uvas-card--committee-return {
  background-color: var(--uvas-blue-deep);
  padding: 16px;
  border-radius: var(--uvas-radius-card);
}

/* COMMITTEE DASHBOARD — clean version */
.screen.committee-dashboard .committee-left {
  background-color: var(--uvas-sand);
  padding: 24px;
  border-radius: var(--uvas-radius-card);
}

.screen.committee-dashboard .committee-left .uvas-button {
  background-color: var(--uvas-deep-blue);
  color: var(--uvas-white);
  border: none;
}

/* leave .committee-right as it is in your HTML/CSS */
.success-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 28px;
  margin: 40px auto;
  max-width: 480px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  text-align: center;
}

.success-title {
  font-size: 26px;
  font-weight: 600;
  color: var(--deep-blue);
  margin-bottom: 18px;
}

.success-message {
  font-size: 18px;
  line-height: 1.5;
  color: var(--olive);
  margin-bottom: 32px;
}

.btn-action {
  background: var(--deep-blue);
  color: #fff;
  padding: 14px 22px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 500;
  border: none;
  width: 100%;
}
/* Sand background for the whole success screen */
.screen {
    background: var(--sand);
}

/* Deep blue header for the success title */
.success-title {
    color: var(--deep-blue);
}
.uvas-icon {
    width: 20px;
    height: 20px;
}
.uvas-icon-home {
    width: 26px;      /* larger than 20px */
    height: 26px;
    display: block;
    margin: 0 auto;   /* centres the icon */
}

.footer-home {
    display: flex;
    justify-content: center;
    align-items: center;
}
/* Make <input type="time"> visually identical to text inputs */
.uvas-time-input {
  height: 48px;              /* WCAG touch target */
  padding: 10px 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 100%;
  box-sizing: border-box;
  background-color: #fff;
  color: #000;
}

/* Remove browser-specific tiny clock icons (optional but recommended) */
.uvas-time-input::-webkit-calendar-picker-indicator {
  opacity: 0.7;              /* WCAG contrast */
  cursor: pointer;
  width: 24px;
  height: 24px;
}
.uvas-spinner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.25);
  display: none;               /* IMPORTANT */
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.uvas-spinner {
  width: 90px;
  height: 90px;
  border: 10px solid rgba(0,51,102,0.25); /* deep UVAS blue */
  border-top-color: #003366; /* deep blue */
  border-right-color: #C9A86A; /* UVAS gold */
  border-radius: 50%;
  animation: uvas-spin 0.9s linear infinite;
}
.uvas-spinner-overlay {
  z-index: 999999 !important;
}

@keyframes uvas-spin {
  to { transform: rotate(360deg); }
}
/* Chef Specials — Phase‑1 resident fragment */

.specials-card-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 10px;
}

.special-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  border: 2px solid transparent;
  position: relative;
  cursor: pointer;
}

.special-card.selected {
  border-color: #2ecc71;
  background: #f6fff8;
}

.tick {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 26px;
  color: #2ecc71;
  display: none;
}

.special-card.selected .tick {
  display: block;
}

.btn-action.disabled {
  background: #cccccc !important;
  border-color: #cccccc !important;
  cursor: not-allowed !important;
}
.uvas-install-banner {
  background: #f8f8f8;
  border: 1px solid #ddd;
  padding: 16px;
  margin: 12px;
  border-radius: 8px;
}

.uvas-install-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999; /* ensures banner sits ABOVE login screen */
}

.uvas-install-content {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.uvas-install-actions {
  display: flex;
  gap: 12px;
}

/* ============================================================
   OPERATOR HOME 
   ============================================================ */

/* Full-screen background for Operator Home Screen */
.uvas-card.uvas-card--operator {
    background: url('../images/PoolHouse.jpg') center/cover no-repeat !important;
    position: relative;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 100vh !important;   /* ensures full screen coverage */
    overflow-x: hidden !important;
    background-attachment: scroll;  /* prevents iOS Safari zoom glitch */
}
/* Operator Dashboard — dark gold heading */
.uvas-card.uvas-card--operator .uvas-card-title {
    color: #C9A14C !important; /* UVAS gold */
    text-shadow: 0 1px 2px rgba(0,0,0,0.35);
    margin-top: 24px !important;
    margin-bottom: 16px !important;
}
.uvas-button-column.operator-left .uvas-button,
.uvas-button-column.operator-right .uvas-button {
    margin-bottom: 12px;
}

/* ============================================================
   OPERATOR HOME — TRANSLUCENT BUTTON COLUMNS
   ============================================================ */

/* Left and right columns: translucent panels */
.uvas-button-column.operator-left,
.uvas-button-column.operator-right {
    background-color: rgba(255, 255, 255, 0.15) !important; /* subtle glass effect */
    backdrop-filter: blur(4px);                             /* smooth blur */
    border: 1px solid rgba(255, 255, 255, 0.25);            /* soft edge */
    border-radius: 12px;                                    /* matches UVAS Core */
    padding: 16px;                                          /* prevents button edge clipping */
    margin-bottom: 24px;                                    /* consistent vertical rhythm */
}

/* ============================================================
   COMMITTEE HOME — CLEAN, BULLET-PROOF, NON-TINT VERSION
   ============================================================ */

/* Full-screen background for Committee Dashboard */
.uvas-card.uvas-card--committee {
    background: url('../images/Lake.jpg') center/cover no-repeat !important;
    position: relative;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 100vh !important;   /* ensures full screen coverage */
    overflow-x: hidden !important;
    background-attachment: scroll;  /* prevents iOS Safari zoom glitch */
}

/* Committee Dashboard — make the heading white */
.uvas-card.uvas-card--committee .uvas-card-title {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.35); /* improves readability over the lake image */
    margin-top: 24px !important;
    margin-bottom: 16px !important; /* unified spacing */
}
/* ============================================================
   OPERATOR HOME — TRANSLUCENT BUTTON COLUMNS
   ============================================================ */

/* Left and right columns: translucent panels */
.uvas-button-column.committee-left,
.uvas-button-column.committee-right {
    background-color: rgba(255, 255, 255, 0.15) !important; /* subtle glass effect */
    backdrop-filter: blur(4px);                             /* smooth blur */
    border: 1px solid rgba(255, 255, 255, 0.25);            /* soft edge */
    border-radius: 12px;                                    /* matches UVAS Core */
    padding: 16px;                                          /* prevents button edge clipping */
    margin-bottom: 24px;                                    /* consistent vertical rhythm */
}

/* ============================================================
   RESIDENT HOME — CLEAN, BULLET-PROOF, NON-TINT VERSION
   ============================================================ */

/* Full-screen background */
.uvas-app.uvas-app--resident {
    background: url('../images/BVH-Image.jpg') center/cover no-repeat !important;
    position: relative;
    max-width: 100% !important;
    overflow-x: hidden !important;
}

/* Remove UVAS white backgrounds */
.uvas-app.uvas-app--resident .uvas-main,
.uvas-app.uvas-app--resident .uvas-main-inner,
.uvas-app.uvas-app--resident .uvas-header,
.uvas-app.uvas-app--resident .uvas-footer {
    background: transparent !important;
    position: relative;
    z-index: 1;
}

/* IMPORTANT: REMOVE DARK OVERLAY THAT TRIGGERS UVAS BLUE TINT */
.uvas-app.uvas-app--resident::before {
    content: none !important;
}

/* ResidentHome card transparency */
.uvas-app.uvas-app--resident .uvas-card {
    background-color: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 12px rgba(0,0,0,0.35) !important;
}

/* Gold card titles */
.uvas-app.uvas-app--resident .uvas-card-title {
    font-weight: 700;
    border-bottom: 2px solid #C9A14C;
    padding-bottom: 4px;
    color: #C9A14C !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}

/* ResidentHome — unify spacing around Committee Functions heading */
.uvas-app.uvas-app--resident .uvas-subheading {
    margin-top: 24px !important;
    margin-bottom: 16px !important;
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}

/* Footer labels always visible */
.uvas-app.uvas-app--resident .uvas-footer-link {
    position: relative;
}

.uvas-app.uvas-app--resident .uvas-footer-link::before {
    content: attr(aria-label);
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.45);
    white-space: nowrap;
    pointer-events: none;
}

/* Remove UVAS tint overlays from section containers */
.uvas-app.uvas-app--resident .uvas-section--image,
.uvas-app.uvas-app--resident .uvas-section--overlay {
    background-image: none !important;
}
/* ResidentHome — white card titles */
.uvas-app.uvas-app--resident .uvas-card-title {
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.55);
}
/* MOBILE FIX — stabilise Quick Actions layout on iOS + Android */
@media (max-width: 600px) {

  /* Force both columns to behave identically */
  .uvas-button-column {
      width: 100% !important;
      flex: 1 1 auto !important;
      align-items: center !important;
  }

  /* Stabilise button width + prevent overflow */
  .uvas-button {
      width: 100% !important;
      max-width: 100% !important;
      box-sizing: border-box !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      gap: 6px !important;
  }

  /* Stabilise SVG icon behaviour on mobile */
  .uvas-button .uvas-icon-group svg {
      height: 22px !important;
      width: 22px !important;
      flex-shrink: 0 !important;
  }

  /* Prevent Android WebView from expanding the right column */
  .uvas-button-column.right,
  .uvas-button-column--secondary {
      width: 100% !important;
  }
}
/* MOBILE FIX — tighten icon/text spacing */
@media (max-width: 600px) {

  /* Reduce the flex gap between icon and text */
  .uvas-button {
      gap: 3px !important;   /* was 6–8px on desktop */
  }

  /* Remove baseline spacing under SVGs */
  .uvas-button .uvas-icon-group svg {
      display: block !important;
  }

  /* Remove padding inside the icon wrapper */
  .uvas-button .uvas-icon-group {
      padding: 0 !important;
      margin: 0 !important;
  }

  /* Prevent mobile browsers from expanding the icon wrapper */
  .uvas-button .uvas-icon-group {
      width: auto !important;
      flex-shrink: 0 !important;
  }
}
