/* ==========================================================================
   LAB HOUSE - Exact Match Style Definitions
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Google+Sans+Flex:opsz,wght@8..144,100..1000&family=Red+Hat+Display:wght@600;700;800&family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&display=swap");

:root {
  --font-red-hat-display: "Red Hat Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-google-sans-flex: "Google Sans Flex", "Google Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: var(--font-red-hat-display);
  --font-body: var(--font-google-sans-flex);
  --font-sans: var(--font-google-sans-flex);

  --color-primary: #005c55;
  --color-primary-dark: #004540;
  --color-primary-container: #0f766e;
  --color-accent: #99F6E4;
  --color-orange: #F97316;
  --color-orange-hover: #EA580C;
  --color-bg-section: #F0FDFA;
  --color-text-primary: #121c2a;
  --color-text-secondary: #475569;
  --color-border: #D1D5DB;
  --color-surface-teal: #F0FDFA;
}

body {
  background-color: #f8f9ff;
  color: #121c2a;
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
}

.font-heading {
  font-family: var(--font-heading) !important;
}

.font-body {
  font-family: var(--font-body) !important;
}

.hero-gradient {
  background: linear-gradient(135deg, #0F766E, #005c55);
}

.gradient-teal {
  background: linear-gradient(135deg, #0F766E 0%, #005c55 100%);
}

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  vertical-align: middle;
}

/* Splash Screen */
#splash-screen {
  position: fixed;
  inset: 0;
  background-color: #005c55;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
}

#splash-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(153, 246, 228, 0.25);
  border-top-color: #99f6e4;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-top: 1.25rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

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

.animate-fade-in {
  animation: fadeIn 0.3s ease-out forwards;
}

.animate-fade-in-up {
  animation: fadeIn 0.4s ease-out forwards;
}

/* Honeypot anti-spam field */
.honeypot-field {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  height: 0;
  width: 0;
  z-index: -1;
  pointer-events: none;
}

/* Card System & Explicit Border Lines */
.card {
  background-color: #ffffff !important;
  border: 1px solid #D1D5DB !important;
  border-radius: 1rem !important;
  padding: 1.5rem !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
  transition: all 0.2s ease-in-out !important;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
  border-color: #0F766E !important;
}

.card-icon {
  width: 3rem !important;
  height: 3rem !important;
  background-color: #F0FDFA !important;
  border: 1px solid #99F6E4 !important;
  border-radius: 0.75rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #005c55 !important;
  font-weight: bold !important;
  flex-shrink: 0 !important;
}

.badge-teal {
  background-color: #F0FDFA !important;
  color: #004540 !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  padding: 0.25rem 0.75rem !important;
  border-radius: 9999px !important;
  border: 1px solid #5eead4 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.25rem !important;
}


/* ========================================================
   Interactive Button Active / Inactive States
   These MUST use !important to override any Tailwind classes
   baked into the element's class list in the HTML.
   ======================================================== */

/* Main Tab Navigation Pills */
.tab-btn {
  background-color: #f1f5f9 !important;
  color: #374151 !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: none !important;
}
.tab-btn:hover {
  background-color: #e2e8f0 !important;
  color: #111827 !important;
}
.tab-btn.active {
  background-color: #005c55 !important;
  color: #ffffff !important;
  border-color: #005c55 !important;
  box-shadow: 0 2px 8px rgba(0, 92, 85, 0.35) !important;
}

/* NABL Grid / Table View Toggle */
.view-toggle-btn {
  background-color: transparent !important;
  color: #475569 !important;
  box-shadow: none !important;
}
.view-toggle-btn:hover {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
}
.view-toggle-btn.active {
  background-color: #005c55 !important;
  color: #ffffff !important;
  box-shadow: 0 1px 4px rgba(0, 92, 85, 0.3) !important;
}
.view-toggle-btn.inactive {
  background-color: transparent !important;
  color: #475569 !important;
}

/* Facility Filter Buttons */
.facility-filter-btn {
  background-color: #f8fafc !important;
  color: #374151 !important;
  border: 1px solid #e2e8f0 !important;
}
.facility-filter-btn:hover { background-color: #e2e8f0 !important; }
.facility-filter-btn.active {
  background-color: #005c55 !important;
  color: #ffffff !important;
  border-color: #005c55 !important;
}

/* Discipline Pills */
.discipline-pill {
  background-color: #f8fafc !important;
  color: #374151 !important;
  border: 1px solid #e2e8f0 !important;
}
.discipline-pill:hover { background-color: #e2e8f0 !important; }
.discipline-pill.active {
  background-color: #005c55 !important;
  color: #ffffff !important;
  border-color: #005c55 !important;
}

/* ── NABL Splash Screen & Wipe Reveal Animation ── */
.skip-splash #splash-screen {
  display: none !important;
}

#splash-screen {
  position: fixed;
  inset: 0;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  pointer-events: auto;
  cursor: pointer;
}

#splash-screen.fade-out {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

#splash-screen.hidden {
  display: none !important;
}

#splash-nabl-logo {
  width: 100% !important;
  max-width: 420px !important;
  height: auto !important;
  object-fit: contain !important;
  background-color: #ffffff !important;
  -webkit-clip-path: inset(100% 0 0 0);
  clip-path: inset(100% 0 0 0);
  -webkit-animation: nablWipeReveal 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.05s forwards;
  animation: nablWipeReveal 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.05s forwards;
  will-change: clip-path, -webkit-clip-path, transform;
}

@-webkit-keyframes nablWipeReveal {
  0% {
    -webkit-clip-path: inset(100% 0 0 0);
    clip-path: inset(100% 0 0 0);
    transform: scale(0.96);
  }
  100% {
    -webkit-clip-path: inset(0 0 0 0);
    clip-path: inset(0 0 0 0);
    transform: scale(1);
  }
}

@keyframes nablWipeReveal {
  0% {
    -webkit-clip-path: inset(100% 0 0 0);
    clip-path: inset(100% 0 0 0);
    transform: scale(0.96);
  }
  100% {
    -webkit-clip-path: inset(0 0 0 0);
    clip-path: inset(0 0 0 0);
    transform: scale(1);
  }
}

/* ========================================================
   Mobile Navigation Drawer
   ======================================================== */
.mobile-drawer {
  display: none !important;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  background-color: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  max-height: calc(100vh - 4rem);
  max-height: calc(100dvh - 4rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 50;
}

.mobile-drawer.open {
  display: block !important;
  animation: mobileDrawerSlideDown 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes mobileDrawerSlideDown {
  0% {
    opacity: 0;
    transform: translateY(-8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 768px) {
  .mobile-drawer,
  .mobile-drawer.open {
    display: none !important;
  }
}


