/* ==========================================================================
   Redwood Family Care Network (RFCN) - Intranet Design System
   Apple-Style Glassmorphism, Gabarito Typography, Official Brand Tokens
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Gabarito:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Official Redwood FCN Brand Tokens */
  --rfcn-navy: #2A497D;
  --rfcn-navy-dark: #1A3159;
  --rfcn-green: #2BB273;
  --rfcn-green-light: #37D088;
  --rfcn-mint: #D7F6E7;
  --rfcn-mint-dark: #00A65A;
  
  /* Apple Light Mode Surfaces */
  --bg-canvas: #F4F6F9;
  --bg-canvas-gradient: radial-gradient(at 0% 0%, rgba(215, 246, 231, 0.45) 0px, transparent 50%),
                        radial-gradient(at 100% 0%, rgba(42, 73, 125, 0.08) 0px, transparent 50%),
                        #F4F6F9;
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-bg-hover: rgba(255, 255, 255, 0.9);
  --glass-card: rgba(255, 255, 255, 0.82);
  --glass-card-subtle: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.85);
  --glass-border-subtle: rgba(226, 232, 240, 0.8);
  --glass-shadow: 0 10px 30px -10px rgba(42, 73, 125, 0.07), 0 4px 12px -2px rgba(0, 0, 0, 0.03);
  --glass-shadow-hover: 0 20px 35px -10px rgba(42, 73, 125, 0.14), 0 8px 16px -4px rgba(43, 178, 115, 0.08);

  /* Typography Colors */
  --text-primary: #1E293B;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --divider: rgba(226, 232, 240, 0.8);
  
  --font-brand: 'Gabarito', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
}

/* Apple Dark Mode Surfaces */
.dark {
  --bg-canvas: #0B1120;
  --bg-canvas-gradient: radial-gradient(at 0% 0%, rgba(43, 178, 115, 0.12) 0px, transparent 50%),
                        radial-gradient(at 100% 0%, rgba(42, 73, 125, 0.3) 0px, transparent 50%),
                        #0B1120;
  --glass-bg: rgba(17, 24, 39, 0.75);
  --glass-bg-hover: rgba(24, 33, 53, 0.9);
  --glass-card: rgba(15, 23, 42, 0.78);
  --glass-card-subtle: rgba(15, 23, 42, 0.5);
  --glass-border: rgba(255, 255, 255, 0.09);
  --glass-border-subtle: rgba(255, 255, 255, 0.05);
  --glass-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.5);
  --glass-shadow-hover: 0 20px 40px -10px rgba(0, 0, 0, 0.7), 0 0 20px 2px rgba(43, 178, 115, 0.15);

  --text-primary: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --divider: rgba(255, 255, 255, 0.08);
}

/* Base Reset & Core Setup */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-canvas-gradient);
  background-attachment: fixed;
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .brand-font {
  font-family: var(--font-brand);
  letter-spacing: -0.015em;
}

/* Apple Squircle & Glassmorphism Utility Classes */
.glass-panel {
  background: var(--glass-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 1.25rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel:hover {
  box-shadow: var(--glass-shadow-hover);
}

.glass-header {
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--glass-border);
}

.glass-pill {
  background: var(--glass-card-subtle);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border-subtle);
  border-radius: 9999px;
  transition: all 0.2s ease;
}

.glass-pill:hover, .glass-pill.active {
  background: var(--glass-bg-hover);
  border-color: var(--rfcn-green);
}

/* Apple-style Interactive Hover & Lifts */
.card-hover-lift {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}

.card-hover-lift:hover {
  transform: translateY(-3px);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.3);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.5);
}

/* Apple Status Indicators */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  display: inline-block;
  position: relative;
}

.status-dot.available {
  background-color: #10B981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.status-dot.meeting {
  background-color: #F59E0B;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

.status-dot.field {
  background-color: #3B82F6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.status-dot.offline {
  background-color: #94A3B8;
}

/* Apple Segmented Control / Switcher */
.segmented-control {
  background: rgba(148, 163, 184, 0.12);
  padding: 4px;
  border-radius: 12px;
  display: inline-flex;
  gap: 4px;
}

.segmented-item {
  padding: 6px 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-secondary);
}

.segmented-item.active {
  background: white;
  color: var(--text-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.dark .segmented-item.active {
  background: rgba(30, 41, 59, 0.95);
  color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Modal Overlay Animation */
.modal-overlay {
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fadeIn 0.2s ease-out;
}

.modal-content {
  animation: scaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: var(--glass-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
  border-radius: 14px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes toastSlideIn {
  from { opacity: 0; transform: translateY(12px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* RFCN Map Container */
.map-frame-container {
  position: relative;
  width: 100%;
  border-radius: 1.25rem;
  overflow: hidden;
  background: var(--glass-card);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  transition: all 0.3s ease;
}

.map-frame-container iframe {
  width: 100%;
  height: 480px;
  border: none;
  display: block;
  transition: height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.map-frame-container.is-expanded iframe {
  height: 720px;
}

/* ==========================================================================
   Zero-Flash Authentication Gate Shield
   Guarantees no portal content is visible to unauthenticated visitors
   ========================================================================== */
html:not(.auth-verified) header,
html:not(.auth-verified) main,
html:not(.auth-verified) footer,
html:not(.auth-verified) #portal-content,
body:not(.auth-verified) header,
body:not(.auth-verified) main,
body:not(.auth-verified) footer,
body:not(.auth-verified) #portal-content {
  display: none !important;
  visibility: hidden !important;
}

html:not(.auth-verified) #auth-gate,
body:not(.auth-verified) #auth-gate {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  background-color: #020617 !important;
  z-index: 999999 !important;
}

html.auth-verified #auth-gate,
body.auth-verified #auth-gate {
  display: none !important;
  visibility: hidden !important;
}

/* ==========================================================================
   Gemini AI "Try Now" Animation System
   ========================================================================== */
@keyframes geminiBorderFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes geminiPulseGlow {
  0%, 100% {
    box-shadow: 0 0 12px -2px rgba(168, 85, 247, 0.45), 0 0 6px 0px rgba(56, 189, 248, 0.35);
  }
  50% {
    box-shadow: 0 0 24px 2px rgba(236, 72, 153, 0.55), 0 0 14px 2px rgba(52, 211, 153, 0.45);
  }
}

@keyframes geminiStarShine {
  0%, 100% {
    transform: scale(1) rotate(0deg);
    filter: drop-shadow(0 0 2px rgba(168, 85, 247, 0.7));
  }
  25% {
    transform: scale(1.15) rotate(6deg);
    filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.9));
  }
  50% {
    transform: scale(1.05) rotate(-4deg);
    filter: drop-shadow(0 0 5px rgba(236, 72, 153, 0.9));
  }
  75% {
    transform: scale(1.2) rotate(8deg);
    filter: drop-shadow(0 0 7px rgba(52, 211, 153, 0.95));
  }
}

@keyframes tryNowBadgePulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}

@keyframes beaconPing {
  75%, 100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* ==========================================
   Full Search Bar Gemini Rainbow Halo & Glow
   ========================================== */
.gemini-omnibox-wrapper {
  position: relative;
  width: 100%;
  border-radius: 1.15rem;
  padding: 2px;
  background: linear-gradient(90deg, #4285F4, #9B72CF, #EC4899, #10B981, #4285F4);
  background-size: 300% 300%;
  animation: geminiBorderFlow 4.5s linear infinite, geminiBarHaloPulse 3.5s ease-in-out infinite;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
  z-index: 20;
}

@keyframes geminiBarHaloPulse {
  0%, 100% {
    box-shadow: 
      0 0 16px -1px rgba(168, 85, 247, 0.45),
      0 0 8px 0px rgba(66, 133, 244, 0.35),
      0 2px 8px rgba(0, 0, 0, 0.04);
  }
  50% {
    box-shadow: 
      0 0 30px 2px rgba(236, 72, 153, 0.55),
      0 0 16px 2px rgba(16, 185, 129, 0.45),
      0 4px 14px rgba(0, 0, 0, 0.08);
  }
}

.gemini-omnibox-wrapper:hover,
.gemini-omnibox-wrapper:focus-within {
  animation: geminiBorderFlow 2.8s linear infinite, geminiBarHaloActive 2.5s ease-in-out infinite;
  transform: translateY(-0.5px);
}

@keyframes geminiBarHaloActive {
  0%, 100% {
    box-shadow: 
      0 0 26px 2px rgba(168, 85, 247, 0.70),
      0 0 14px 2px rgba(66, 133, 244, 0.55),
      0 4px 16px rgba(0, 0, 0, 0.08);
  }
  50% {
    box-shadow: 
      0 0 42px 6px rgba(236, 72, 153, 0.75),
      0 0 22px 3px rgba(16, 185, 129, 0.60),
      0 6px 20px rgba(0, 0, 0, 0.12);
  }
}

.gemini-omnibox-inner {
  position: relative;
  width: 100%;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 0.5rem 0.35rem 0.75rem;
  transition: background-color 0.2s ease;
}

.dark .gemini-omnibox-inner {
  background: rgba(15, 23, 42, 0.96);
}

.gemini-pill-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 1px;
  text-decoration: none;
  border: 1px solid rgba(168, 85, 247, 0.35);
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.95), rgba(243, 232, 255, 0.85));
  font-family: inherit;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.dark .gemini-pill-btn {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(59, 7, 100, 0.6));
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.gemini-pill-btn:hover {
  transform: translateY(-1px) scale(1.03);
  border-color: rgba(236, 72, 153, 0.7);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.35);
}

.gemini-pill-btn:active {
  transform: scale(0.97);
}

.gemini-animated-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 1.5px;
  text-decoration: none;
  border: none;
  background: transparent;
  font-family: inherit;
  animation: geminiPulseGlow 3.5s ease-in-out infinite;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
  cursor: pointer;
  z-index: 10;
}

.gemini-animated-btn::before {
  content: '';
  position: absolute;
  inset: -1.5px;
  border-radius: 9999px;
  background: linear-gradient(90deg, #4285F4, #9B72CF, #EC4899, #10B981, #4285F4);
  background-size: 300% 300%;
  animation: geminiBorderFlow 4s linear infinite;
  z-index: 0;
  opacity: 0.95;
}

.gemini-animated-btn:hover {
  transform: translateY(-1px) scale(1.04);
}

.gemini-animated-btn:active {
  transform: scale(0.96);
}

.gemini-animated-btn:hover::before {
  opacity: 1;
  filter: blur(2px);
}

.gemini-btn-content {
  position: relative;
  z-index: 1;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.65rem 0.35rem 0.55rem;
  transition: all 0.2s ease;
}

.gemini-star-icon {
  animation: geminiStarShine 3.2s ease-in-out infinite;
}

.gemini-try-now-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: linear-gradient(135deg, #10B981 0%, #06B6D4 100%);
  color: #022c22;
  font-weight: 800;
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  box-shadow: 0 1px 4px rgba(16, 185, 129, 0.4);
  animation: tryNowBadgePulse 2s ease-in-out infinite;
  line-height: 1;
}

.gemini-beacon-dot {
  position: relative;
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #047857;
}

.gemini-beacon-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-color: #047857;
  animation: beaconPing 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* ==========================================================================
   Mobile & Responsive Layout Optimizations
   ========================================================================== */
html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  -webkit-tap-highlight-color: transparent;
}

/* Mobile smooth touch scrolling & scrollbar suppression */
.touch-scroll {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.touch-scroll::-webkit-scrollbar {
  display: none;
}

/* Mobile Map Responsive Heights */
@media (max-width: 640px) {
  .map-frame-container iframe {
    height: 320px;
  }
  .map-frame-container.is-expanded iframe {
    height: 520px;
  }
}

/* Touch Device Lift Optimizations */
@media (hover: none) and (pointer: coarse) {
  .card-hover-lift:hover {
    transform: none;
  }
  .card-hover-lift:active {
    transform: scale(0.98);
  }
}

/* ==========================================================================
   Google Workspace License Selector & Frontline Mode
   ========================================================================== */
.license-toggle-btn {
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.license-toggle-btn:active {
  transform: scale(0.97);
}

/* Frontline mode subtle ambient header accent */
html[data-license="frontline"] .glass-header {
  border-bottom-color: rgba(59, 130, 246, 0.25);
}



/* ==========================================================================
   Redwood Social & Community Hub - Complete Redesign Styles
   Brand Colors from redwoodfcn.com: Deep Purple #2c1d44, Green #37d088,
   Navy #2a497d, Seafoam #cef1e1, Gold #f6c11a
   ========================================================================== */

:root {
  --rfcn-deep-purple: #2C1D44;
  --rfcn-purple-body: #3C3A50;
  --rfcn-seafoam: #CEF1E1;
  --rfcn-gold: #F6C11A;
}

/* Hero Banner & Community Header */
.rfcn-hero-banner {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  background: linear-gradient(125deg, #1E1533 0%, #2C1D44 38%, #1A3159 75%, #134E4A 100%);
  box-shadow: 0 20px 45px -15px rgba(44, 29, 68, 0.35), 0 8px 20px -6px rgba(42, 73, 125, 0.25);
}

.rfcn-hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(55, 208, 136, 0.28) 0%, transparent 50%),
              radial-gradient(circle at 15% 85%, rgba(246, 193, 26, 0.16) 0%, transparent 45%);
  pointer-events: none;
  z-index: 1;
}

/* Affiliate Agency Logo Pill */
.agency-logo-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 0.9rem;
  padding: 0.45rem 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.65rem;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.dark .agency-logo-card {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.2);
}

.agency-logo-card:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 18px rgba(43, 178, 115, 0.18);
  border-color: #37D088;
}

.agency-logo-card img {
  max-height: 1.65rem;
  width: auto;
  max-width: 6.75rem;
  object-fit: contain;
}

/* Community Story Cards */
.story-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.15rem;
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.story-card img.story-bg {
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.story-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px -6px rgba(44, 29, 68, 0.28);
}

.story-card:hover img.story-bg {
  transform: scale(1.08);
}

/* HR Official Post Card Accent */
.post-card-hr-official {
  position: relative;
  border: 1.5px solid rgba(43, 178, 115, 0.45) !important;
  background: linear-gradient(180deg, rgba(215, 246, 231, 0.22) 0%, rgba(255, 255, 255, 0.92) 140px) !important;
}

.dark .post-card-hr-official {
  border: 1.5px solid rgba(55, 208, 136, 0.4) !important;
  background: linear-gradient(180deg, rgba(6, 78, 59, 0.32) 0%, rgba(15, 23, 42, 0.9) 150px) !important;
}

/* Reaction Button Pop Animation */
@keyframes reactionPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.24) rotate(-4deg); }
  75% { transform: scale(0.95) rotate(2deg); }
  100% { transform: scale(1); }
}

.reaction-btn {
  user-select: none;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.reaction-btn:hover {
  transform: translateY(-1.5px);
}

.reaction-btn.is-active {
  animation: reactionPop 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Poll Progress Bar Transition */
.poll-bar-fill {
  transition: width 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Photo Grid in Social Posts */
.post-photo-grid-1 {
  display: grid;
  grid-template-columns: 1fr;
}

.post-photo-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.375rem;
}

.post-photo-grid-3 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.375rem;
}

.post-photo-grid-3 > div:first-child {
  grid-column: span 2;
}

.post-photo-grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.375rem;
}

/* Creative Floating Command Dock Navigation Tabs */
.nav-dock-track {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.3rem;
  border-radius: 1rem;
  background: rgba(241, 245, 249, 0.85);
  border: 1px solid rgba(203, 213, 225, 0.75);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.06);
}

.dark .nav-dock-track {
  background: rgba(15, 23, 42, 0.75);
  border-color: rgba(51, 65, 85, 0.8);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35);
}

.nav-view-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.75rem 0.4rem 0.45rem;
  border-radius: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #475569;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  border: 1px solid transparent;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.dark .nav-view-tab {
  color: #CBD5E1;
}

.nav-view-tab:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #0F172A;
  border-color: rgba(203, 213, 225, 0.8);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.08);
}

.dark .nav-view-tab:hover {
  background: rgba(30, 41, 59, 0.9);
  color: #FFFFFF;
  border-color: rgba(71, 85, 105, 0.8);
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.4);
}

.nav-view-tab .nav-tab-icon {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.22s ease;
}

.nav-view-tab:hover .nav-tab-icon {
  transform: scale(1.08) rotate(-3deg);
}

.nav-view-tab.active {
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
  color: #ffffff !important;
  border-color: rgba(43, 178, 115, 0.55);
  box-shadow: 0 6px 16px -3px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(43, 178, 115, 0.25);
}

.dark .nav-view-tab.active {
  background: linear-gradient(135deg, #065F46 0%, #1E293B 100%);
  border-color: rgba(52, 211, 153, 0.55);
  box-shadow: 0 6px 16px -3px rgba(0, 0, 0, 0.5), 0 0 12px rgba(43, 178, 115, 0.25);
}

.nav-view-tab.active .nav-tab-sub {
  color: rgba(167, 243, 208, 0.9) !important;
}

@keyframes sectionTargetFlash {
  0% { box-shadow: 0 0 0 0 rgba(43, 178, 115, 0.65); }
  50% { box-shadow: 0 0 0 6px rgba(43, 178, 115, 0.25); }
  100% { box-shadow: 0 0 0 0 rgba(43, 178, 115, 0); }
}

.section-nav-highlight {
  animation: sectionTargetFlash 1.2s ease-out;
}

/* Sticky Sidebar Columns on Desktop */
@media (min-width: 1024px) {
  .sticky-sidebar {
    position: sticky;
    top: 5.25rem;
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
    scrollbar-width: thin;
  }
}

/* ==========================================================================
   13. Bento Grid Quick Links, Dayforce Connector & 6 Rich Feed Templates
   ========================================================================== */

/* Image-Rounded Bento Card */
.bento-image-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(226, 232, 240, 0.85);
}

.dark .bento-image-card {
  border-color: rgba(51, 65, 85, 0.85);
}

.bento-image-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 35px -12px rgba(44, 29, 68, 0.28);
}

.bento-image-card img.bento-bg {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-image-card:hover img.bento-bg {
  transform: scale(1.07);
}

/* Template 1: Peer Kudos / Shout-Out Graphic Card */
.template-kudos-graphic {
  position: relative;
  overflow: hidden;
  border-radius: 1.35rem;
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 45%, #ECFDF5 100%);
  border: 2px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 12px 28px -8px rgba(245, 158, 11, 0.18);
}

.dark .template-kudos-graphic {
  background: linear-gradient(135deg, rgba(120, 53, 15, 0.38) 0%, rgba(6, 78, 59, 0.35) 100%);
  border-color: rgba(245, 158, 11, 0.45);
}

.kudos-sticker-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.92);
  border: 1.5px dashed rgba(245, 158, 11, 0.65);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  transform: rotate(-1.5deg);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.kudos-sticker-pill:nth-child(even) {
  transform: rotate(1.5deg);
}

.kudos-sticker-pill:hover {
  transform: scale(1.08) rotate(0deg);
  border-style: solid;
}

.dark .kudos-sticker-pill {
  background: rgba(15, 23, 42, 0.9);
  color: #FDE68A;
}

/* Template 2: TL;DR CEO / Executive Brief Infographic */
.template-tldr-infographic {
  border-radius: 1.35rem;
  background: linear-gradient(160deg, #1E1533 0%, #2C1D44 55%, #1A3159 100%);
  color: #ffffff;
  border: 1px solid rgba(55, 208, 136, 0.35);
  box-shadow: 0 16px 32px -10px rgba(44, 29, 68, 0.35);
}

/* Template 3: Ask Me Anything (AMA) High-Contrast Promo Tile */
.template-ama-tile {
  position: relative;
  overflow: hidden;
  border-radius: 1.35rem;
  background: radial-gradient(circle at 90% 10%, rgba(55, 208, 136, 0.32) 0%, transparent 45%),
              linear-gradient(135deg, #0F172A 0%, #2C1D44 60%, #064E3B 100%);
  color: #ffffff;
  border: 1.5px solid rgba(55, 208, 136, 0.45);
}

/* Template 4: Project Win / Safety Hero Spotlight */
.template-safety-hero {
  position: relative;
  overflow: hidden;
  border-radius: 1.35rem;
  background: linear-gradient(135deg, #ECFDF5 0%, #F0FDFA 50%, #EFF6FF 100%);
  border: 2px solid rgba(16, 185, 129, 0.45);
}

.dark .template-safety-hero {
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.38) 0%, rgba(30, 58, 138, 0.32) 100%);
  border-color: rgba(52, 211, 153, 0.45);
}

/* Template 5: New Hire Digital Poster */
.template-newhire-poster {
  position: relative;
  overflow: hidden;
  border-radius: 1.35rem;
  background: linear-gradient(135deg, #F5F3FF 0%, #ECFDF5 55%, #EFF6FF 100%);
  border: 2px solid rgba(139, 92, 246, 0.35);
}

.dark .template-newhire-poster {
  background: linear-gradient(135deg, rgba(76, 29, 149, 0.32) 0%, rgba(6, 78, 59, 0.32) 100%);
  border-color: rgba(167, 139, 250, 0.4);
}

/* Template 6: 3-Question Staff Pulse Poll Card */
.template-pulse-survey {
  position: relative;
  overflow: hidden;
  border-radius: 1.35rem;
  background: linear-gradient(135deg, #EFF6FF 0%, #F0F9FF 55%, #ECFDF5 100%);
  border: 2px solid rgba(59, 130, 246, 0.35);
}

.dark .template-pulse-survey {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.35) 0%, rgba(6, 78, 59, 0.28) 100%);
  border-color: rgba(96, 165, 250, 0.4);
}

/* ==========================================================================
   14. Three-Column Distinct Color Zones (Left Green, Center White, Right Blue)
   ========================================================================== */

/* Column 1 (Left): Faint Green Background Zone */
.column-zone-green {
  background: linear-gradient(180deg, rgba(209, 250, 229, 0.68) 0%, rgba(220, 252, 231, 0.52) 50%, rgba(236, 253, 245, 0.72) 100%);
  border: 1px solid rgba(16, 185, 129, 0.28);
  box-shadow: 0 12px 32px -12px rgba(16, 185, 129, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.column-zone-green .glass-panel {
  background: rgba(240, 253, 244, 0.88);
  border-color: rgba(16, 185, 129, 0.24);
}

.dark .column-zone-green {
  background: linear-gradient(180deg, rgba(6, 78, 59, 0.32) 0%, rgba(6, 95, 70, 0.22) 100%);
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.5);
}

.dark .column-zone-green .glass-panel {
  background: rgba(6, 78, 59, 0.28);
  border-color: rgba(52, 211, 153, 0.22);
}

/* Column 2 (Center): Crisp White Background Zone */
.column-zone-white {
  background: #FFFFFF;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 14px 36px -12px rgba(15, 23, 42, 0.07);
}

.column-zone-white .glass-panel {
  background: #FFFFFF;
  border-color: rgba(226, 232, 240, 0.9);
}

.dark .column-zone-white {
  background: rgba(15, 23, 42, 0.92);
  border-color: rgba(51, 65, 85, 0.85);
  box-shadow: 0 14px 36px -12px rgba(0, 0, 0, 0.55);
}

.dark .column-zone-white .glass-panel {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(51, 65, 85, 0.8);
}

/* Column 3 (Right): Faint Blue Background Zone */
.column-zone-blue {
  background: linear-gradient(180deg, rgba(219, 234, 254, 0.72) 0%, rgba(224, 242, 254, 0.56) 50%, rgba(239, 246, 255, 0.78) 100%);
  border: 1px solid rgba(59, 130, 246, 0.28);
  box-shadow: 0 12px 32px -12px rgba(37, 99, 235, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.column-zone-blue .glass-panel,
.column-zone-blue .template-newhire-poster,
.column-zone-blue .template-pulse-survey {
  background: rgba(239, 246, 255, 0.88);
  border-color: rgba(59, 130, 246, 0.26);
}

.dark .column-zone-blue {
  background: linear-gradient(180deg, rgba(30, 58, 138, 0.34) 0%, rgba(29, 78, 216, 0.2) 100%);
  border-color: rgba(59, 130, 246, 0.32);
  box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.5);
}

.dark .column-zone-blue .glass-panel,
.dark .column-zone-blue .template-newhire-poster,
.dark .column-zone-blue .template-pulse-survey {
  background: rgba(30, 58, 138, 0.28);
  border-color: rgba(96, 165, 250, 0.25);
}


