/* LCS Beacon Experience — shared base styles */
@layer base {
  html, body { margin: 0; padding: 0; }
  body { overscroll-behavior: none; }
  .pb-safe { padding-bottom: env(safe-area-inset-bottom, 0px); }
  .pt-safe { padding-top: env(safe-area-inset-top, 0px); }
  main > :first-child { margin-top: 0 !important; }
}
::-webkit-scrollbar { display: none; }

/* Desktop "2.5mm fillet" crisp-corner geometry */
.rounded-fillet { border-radius: 9.4px !important; }

/* Tactile bubble-3D card treatment used on desktop layouts */
.bubble-card {
  border: 2px solid rgba(255, 255, 255, 0.85) !important;
  box-shadow:
    0 8px 0 rgba(22, 59, 101, 0.08),
    0 16px 24px -4px rgba(22, 59, 101, 0.12),
    inset 0 2px 1px rgba(255, 255, 255, 0.9),
    inset 0 -3px 0 rgba(22, 59, 101, 0.06) !important;
  border-radius: 9.4px !important;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
.bubble-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 12px 0 rgba(22, 59, 101, 0.09),
    0 20px 28px -4px rgba(22, 59, 101, 0.14),
    inset 0 2px 1px rgba(255, 255, 255, 0.9),
    inset 0 -3px 0 rgba(22, 59, 101, 0.06) !important;
}

/* Mobile bottom tab / desktop top nav active state */
.nav-active {
  color: #002c54;
  background-color: rgba(165, 201, 253, 0.4);
  font-weight: 700;
}
.nav-active-desktop {
  background-color: #1b436f;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 14px -2px rgba(27, 67, 111, 0.18);
}

/* Role dots: a small fixed-color marker placed before a card's edit icon,
   showing which role manages that specific card -- same color for every
   viewer, not tied to who's currently logged in. Admin/developer-gated
   cards = green, staff/teacher-editable = yellow, accounting/registrar
   (finance & forms) = blue. Physical 1.5mm so it reads as a quiet label,
   not a UI control. */
.role-dot {
  display: inline-block;
  width: 1.5mm;
  height: 1.5mm;
  border-radius: 50%;
  flex-shrink: 0;
}
.role-dot-admin { background-color: #22c55e; }
.role-dot-staff { background-color: #eab308; }
.role-dot-finance { background-color: #3b82f6; }

/* Role dots live in two places depending on what they're marking:
   1. Genuine page-level cards (the .bubble-card wrapper used site-wide) get
      the dot pinned to the card's own bottom-right corner via :has(), fully
      decoupled from wherever the edit button itself sits -- no HTML/JS
      edits needed, and .bubble-card already carries `relative` almost
      everywhere (the couple that don't get it added below as a no-op,
      since bare `position:relative` with no offsets changes nothing
      visually).
   2. Buttons that live INSIDE a modal/popup (picker dialogs, detail
      lightboxes, per-row list actions) aren't sitting in a "card" at all --
      for those the dot stays inline, immediately before the icon, as
      originally built.
   Grouped by the exact role gate confirmed per file -- green = admin-or-
   developer only, yellow = staff/teacher included, blue = accounting_clerk/
   school_registrar gated. */
.bubble-card, .bubble-card-sm { position: relative; }

.bubble-card:has(.daily-glance-manage-btn)::after,
.bubble-card:has(.beacon-edit-btn)::after,
.bubble-card:has(.calendar-edit-btn)::after,
.bubble-card:has(.hero-edit-btn)::after,
.bubble-card:has(#home-announce-hero-edit-btn)::after,
.bubble-card:has(#home-announce-edit-btn)::after,
.bubble-card:has(.campus-event-edit-btn)::after,
.bubble-card:has(.helpdesk-edit-btn)::after,
.bubble-card:has(.fz-hero-edit-btn)::after,
.bubble-card:has(.fz-quests-edit-btn)::after,
.bubble-card:has(.fz-pod-edit-btn)::after,
.bubble-card:has(.fz-mascot-edit-btn)::after,
.bubble-card:has(.fz-praise-edit-btn)::after,
.bubble-card:has(.fz-showcase-edit-btn)::after,
.bubble-card:has(.fz-moments-edit-btn)::after,
.bubble-card:has(.faculty-edit-btn)::after,
.bubble-card:has(#facility-spotlight-edit)::after,
.bubble-card:has(.slideshow-add-btn)::after,
.bubble-card:has(.slideshow-manage-btn)::after {
  content: '';
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 1.5mm;
  height: 1.5mm;
  border-radius: 50%;
  background-color: #22c55e;
}

.bubble-card:has(.advisers-corner-edit-btn)::after,
.bubble-card:has(.bell-schedule-edit-btn)::after,
.bubble-card:has(#assignments-manage-btn)::after,
.bubble-card:has(#assignments-hero-edit-btn)::after,
.bubble-card:has(.permission-slip-manage-btn)::after,
.bubble-card:has(.conference-manage-btn)::after,
.bubble-card:has(.excuse-manage-btn)::after,
.bubble-card:has(.checkin-details-btn)::after {
  content: '';
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 1.5mm;
  height: 1.5mm;
  border-radius: 50%;
  background-color: #eab308;
}

.bubble-card:has(#deposit-edit-btn)::after,
.bubble-card-sm:has(#tuition-edit-btn)::after {
  content: '';
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 1.5mm;
  height: 1.5mm;
  border-radius: 50%;
  background-color: #3b82f6;
}

/* Modal/popup-internal buttons -- no enclosing page card, dot stays
   inline before the icon. */
#stream-edit-btn::before,
#stream-new-btn::before,
#glance-edit-btn::before,
#sp-add-music::before,
#sp-generate-video::before,
#sp-save-default::before,
#sp-delete::before,
#all-albums-title-edit::before,
#open-deleted-bin::before,
#album-viewer-edit::before,
#assign-edit-btn::before {
  content: '';
  display: inline-block;
  width: 1.5mm;
  height: 1.5mm;
  border-radius: 50%;
  background-color: #22c55e;
  flex-shrink: 0;
  margin-right: 4px;
}

#us-edit-catalog-btn::before,
#forms-add-new-btn::before,
.forms-edit::before {
  content: '';
  display: inline-block;
  width: 1.5mm;
  height: 1.5mm;
  border-radius: 50%;
  background-color: #3b82f6;
  flex-shrink: 0;
  margin-right: 4px;
}
