@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500;600&display=swap');

:root {
  /* Refined industrial ops portal palette */
  --background: #fdfdfd;
  --foreground: #0e0e11;

  --card: #ffffff;
  --card-foreground: #0e0e11;

  --primary: #18191c;
  --primary-foreground: #fcfcfc;

  --secondary: #f4f4f5;
  --secondary-foreground: #18191c;

  --muted: #f4f4f5;
  --muted-foreground: #71717a;

  --accent: #f59e0b;
  --accent-foreground: #0e0e11;

  --border: #e4e4e7;
  --input: #e4e4e7;
  --ring: #857061cd;

  /* UPDATED: Aligned module variables with the main page ui-card (nth-child) color themes! */
  --module-electrical: #E8632B;
  --module-protection: #6178e1;
  --module-docs: #9B59D0;
  --module-rota: #2DBFA0;

  --radius: 0.75rem;

  /* Shift Rota colors */
  --shift-morning: hsl(91, 38%, 65%);
  --shift-evening: hsl(25, 68%, 67%);
  --shift-night: hsl(210, 9%, 43%);
  --shift-weekly-off: hsl(199, 35%, 62%);
  --shift-general: hsl(207, 100%, 93%);
}

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

body {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography utilities */
.font-mono {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}

.text-muted {
  color: var(--muted-foreground);
}

/* .text-balance {
  text-wrap: balanced;
} */

.tracking-tight {
  letter-spacing: -0.025em;
}

/* Clickable elements */
@media (hover: hover) {
  .clickable-zone:hover {
    opacity: 0.8;
  }
}

/* Grid Backdrop */
.ops-grid-bg {
  position: absolute;
  top: -3rem;
  left: 0;
  right: 0;
  height: 18rem;
  pointer-events: none;
  opacity: 0.7;
  z-index: 0;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--border) 60%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--border) 60%, transparent) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

/* App Shell Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
  background-color: color-mix(in srgb, var(--background) 80%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-inner {
  max-width: 90rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  /* 0.75rem 1.5rem; */
}

.brand-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: var(--foreground);
  outline: none;
}

.brand-btn:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 4px;
}

.brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  /* Removed var(--primary) background so the image's own background shows cleanly */
  background-color: transparent;
  border-radius: 0.375rem;
  /* Use overflow: hidden to ensure the image respects the border-radius */
  overflow: hidden;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 20%, transparent);
  transition: all 0.2s;
}

/* New class for the image itself */
.brand-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Ensures the image fills the box without stretching */
}

@media (hover: hover) {
  .brand-btn:hover .brand-icon {
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 40%, transparent);
  }
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-tiny {
  font-size: 1rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--foreground);
}

.brand-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted-foreground)
}

.header-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-pill-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 1rem;
  height: 2.25rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background-color: var(--card);
  color: var(--foreground);
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
}

@media (hover: hover) {
  .nav-pill-btn:hover {
    background-color: var(--secondary);
    border-color: color-mix(in srgb, var(--foreground) 20%, transparent);
  }
}

@media (max-width: 640px) {
  .nav-pill-btn {
    padding: 0;
    width: 2.25rem;
  }

  .nav-pill-btn .nav-text {
    display: none;
  }
}

/* Main Layout */
.main-wrapper {
  flex-grow: 1;
  width: 100%;
  max-width: 90rem;
  margin: 0 auto;
  padding: 0.8rem 1.35rem 1.35rem;
  position: relative;
  z-index: 10;
  animation: fadeIn 0.4s ease-out;
}

.page-head {
  margin-bottom: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

@media (max-width: 640px) {
  .mobile-center {
    text-align: center !important;
  }
}

.page-title {
  font-size: 1.6rem;
  font-weight: 600;
}

.page-subtitle {
  font-size: 1rem;
  color: var(--muted-foreground);
}

/* Unified Grid Component */
.item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(390px, 1fr));
  gap: 1rem;
}

@media (max-width: 640px) {
  .item-grid {
    grid-template-columns: 1fr;
  }
}

/* Cards (Home and Folders) */
.ui-card {
  position: relative;
  display: flex;
  flex-direction: row;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background-color: var(--card);
  padding: 1.25rem;
  /* padding: 1.25rem 1.25rem 1.1rem 1.25rem; */
  text-align: left;
  transition: all 0.2s ease;
  cursor: pointer;
  outline: none;
  align-items: center;
}

@media (hover: hover) {
  .ui-card:hover {
    border-color: color-mix(in srgb, var(--foreground) 20%, transparent);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
  }
}

.ui-card:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.card-icon-wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.card-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.5rem;
  box-shadow: 0 0 0 1px var(--border);
}

.card-arrow {
  color: var(--muted-foreground);
  transition: all 0.2s;
}

@media (hover: hover) {
  .ui-card:hover .card-arrow {
    color: var(--foreground);
    transform: translate(2px, -2px);
  }
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--foreground);
}

.card-subtitle {
  font-size: 0.9rem;
  color: var(--muted-foreground);
  margin-top: 0.125rem;
}

.card-desc {
  margin-top: 1rem;
  font-size: 0.9rem;
  line-height: 1.25;
  color: var(--muted-foreground);
  flex-grow: 1;
  text-align: justify;
}

.card-foot {
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: color-mix(in srgb, var(--foreground) 80%, transparent);
}

/* Secondary Lists (Electric results etc.) */
.list-card {
  background: var(--card);
  border-radius: calc(var(--radius) - 2px);
  padding: 1rem;
  margin-bottom: 0.75rem;
  border: 1px solid var(--border);
}

.list-row {
  /* margin-bottom: 0.5rem; */
  font-size: 0.875rem;
  line-height: 1.5;
}

.list-row:last-child {
  margin-bottom: 0;
}

.list-label {
  font-weight: 600;
  color: var(--muted-foreground);
  margin-right: 0.35rem;
}

/* Electrical Scroll Container */
.elec-results-scroll-container {
  max-height: 71.5vh;
  overflow-y: auto;
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1rem 0.25rem 1rem;
  /* margin-top: 1.5rem; */
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

@media (max-width: 640px) {
  .elec-results-scroll-container {
    max-height: 65vh;
  }
}

.elec-results-scroll-container::-webkit-scrollbar {
  width: 8px;
}

.elec-results-scroll-container::-webkit-scrollbar-track {
  background: transparent;
}

.elec-results-scroll-container::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--border) 80%, var(--muted-foreground));
  border-radius: 8px;
}

.elec-results-scroll-container::-webkit-scrollbar-thumb:hover {
  background: var(--muted-foreground);
}

/* Search Wrapper */
.search-wrapper {
  position: relative;
  /* max-width: 32rem; */
  /* Removed as new top-bar logic is implemented  */
  margin-bottom: 1.25rem;
  z-index: 30;
}

.search-btn {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: calc(var(--radius) - 4px);
  box-shadow: 0 0 0 1px var(--border);
  background: var(--secondary);
  color: var(--muted-foreground);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10;
}

@media (hover: hover) {
  .search-btn:hover {
    box-shadow: 0 0 0 1px color-mix(in srgb, currentColor 30%, transparent);
    filter: brightness(0.95);
  }
}

.ui-input {
  width: 100%;
  /* padding: 0.875rem 3.25rem 0.875rem 1rem; */
  padding: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  color: var(--foreground);
  transition: all 0.2s;
}

.ui-input::placeholder {
  color: var(--muted-foreground);
}

.ui-input:focus {
  outline: none;
  border-color: var(--ring);
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  max-height: 300px;
  overflow-y: auto;
  display: none;
}

.search-drop-item {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
}

.search-drop-item:last-child {
  border-bottom: none;
}

@media (hover: hover) {
  .search-drop-item:hover {
    background: color-mix(in srgb, var(--border) 20%, transparent);
  }
}

/* Top Bar Layout (Page Head + Search) */
.top-bar {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.1rem;
  gap: 1.1rem 1rem;
}

/* Remove default bottom margins since the top-bar handles it now */
.top-bar .page-head,
.top-bar .search-wrapper {
  margin-bottom: 0;
}

/* Desktop View: Side by Side */
@media (min-width: 768px) {
  .top-bar {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    /* Aligns the search bar with the bottom of the subtitle */
  }

  .top-bar .search-wrapper {
    max-width: 50%;
    /* Keeps the search bar from getting too wide */
    width: 100%;
  }
}

.sdi-main {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--foreground);
}

.sdi-sub {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-top: 0.125rem;
}

/* Tables */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}

@media (min-width: 768px) {
  .table-wrap {
    width: 65%;
    margin: auto;
  }
}

.ui-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.ui-table th {
  background: color-mix(in srgb, var(--border) 30%, transparent);
  padding: 1rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted-foreground);
  border-bottom: 1px solid var(--border);
}

.ui-table td {
  padding: 1rem;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border);
}

.ui-table tbody tr:last-child td {
  border-bottom: none;
}

@media (hover: hover) {
  .ui-table tbody tr:hover {
    background: color-mix(in srgb, var(--border) 10%, transparent);
  }
}

/* Document Modal */
.modal-layer {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 100;
  padding: 2vh 2vw;
  animation: fadeIn 0.15s ease-out;
}

.modal-window {
  width: 100%;
  height: 100%;
  max-width: 64rem;
  margin: 0 auto;
  background: var(--background);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--card);
}

.modal-title {
  font-weight: 600;
  font-size: 1rem;
}

.modal-close {
  background: transparent;
  color: var(--muted-foreground);
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.375rem;
  transition: all 0.2s;
  display: flex;
}

@media (hover: hover) {
  .modal-close:hover {
    background: var(--secondary);
    color: var(--foreground);
  }
}

.modal-body {
  flex-grow: 1;
  background: var(--secondary);

  /* NEW: Explicitly allow touch gestures inside the iframe wrapper 
  touch-action: auto;
  -webkit-overflow-scrolling: touch; */
}

.modal-body iframe {
  width: 100%;
  height: 100%;
  border: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Card Themes (Glow & Icons) */
.ui-card:nth-child(4n + 1) {
  box-shadow: 0 2px 4px rgba(232, 99, 43, 0.12), 0 1px 2px rgba(232, 99, 43, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

@media (hover: hover) {
  .ui-card:nth-child(4n + 1):hover {
    box-shadow: 0 4px 8px rgba(232, 99, 43, 0.22), 0 2px 4px rgba(232, 99, 43, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  }
}

.ui-card:nth-child(4n + 1) svg {
  color: #E8632B !important;
  stroke: #E8632B !important;
}

.ui-card:nth-child(4n + 1) .card-icon-box {
  background: color-mix(in srgb, #E8632B 15%, var(--card));
}


.ui-card:nth-child(4n + 2) {
  box-shadow: 0 2px 4px rgba(97, 120, 225, 0.12), 0 1px 2px rgba(97, 120, 225, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

@media (hover: hover) {
  .ui-card:nth-child(4n + 2):hover {
    box-shadow: 0 4px 8px rgba(97, 120, 225, 0.22), 0 2px 4px rgba(97, 120, 225, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  }
}

.ui-card:nth-child(4n + 2) svg {
  color: #6178e1 !important;
  stroke: #6178e1 !important;
}

.ui-card:nth-child(4n + 2) .card-icon-box {
  background: color-mix(in srgb, #6178e1 15%, var(--card));
}


.ui-card:nth-child(4n + 3) {
  box-shadow: 0 2px 4px rgba(155, 89, 208, 0.12), 0 1px 2px rgba(155, 89, 208, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

@media (hover: hover) {
  .ui-card:nth-child(4n + 3):hover {
    box-shadow: 0 4px 8px rgba(155, 89, 208, 0.22), 0 2px 4px rgba(155, 89, 208, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  }
}

.ui-card:nth-child(4n + 3) svg {
  color: #9B59D0 !important;
  stroke: #9B59D0 !important;
}

.ui-card:nth-child(4n + 3) .card-icon-box {
  background: color-mix(in srgb, #9B59D0 15%, var(--card));
}


.ui-card:nth-child(4n + 4) {
  box-shadow: 0 2px 4px rgba(45, 191, 160, 0.12), 0 1px 2px rgba(45, 191, 160, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

@media (hover: hover) {
  .ui-card:nth-child(4n + 4):hover {
    box-shadow: 0 4px 8px rgba(45, 191, 160, 0.22), 0 2px 4px rgba(45, 191, 160, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  }
}

.ui-card:nth-child(4n + 4) svg {
  color: #2DBFA0 !important;
  stroke: #2DBFA0 !important;
}

.ui-card:nth-child(4n + 4) .card-icon-box {
  background: color-mix(in srgb, #2DBFA0 15%, var(--card));
}

/* Dynamic loading of document module */
@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

.spin-icon {
  animation: spin 2s linear infinite;
  color: var(--muted-foreground);
}

/* Group Tabs */
.group-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background-color: var(--muted);
  border-radius: var(--radius);
  padding: 0.5rem;
  max-width: 30rem;
  margin: 0 auto 1rem auto;
  height: 3.3rem;
}

.group-tab {
  background: transparent;
  border: none;
  padding: 0.45rem 1rem;
  border-radius: calc(var(--radius) - 2px);
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: all 0.2s;
}

.group-tab:hover {
  background-color: var(--secondary);
}

.group-tab.active {
  background-color: var(--card);
  color: var(--foreground);
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
}

/* Calendar UI */
.calendar-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  animation: fadeIn 0.4s ease-out;
  max-width: 30rem;
  margin: auto;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}

.calendar-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
}

.navigation-buttons {
  display: flex;
  gap: 0.5rem;
}

.nav-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background-color: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--foreground);
  cursor: pointer;
  transition: all 0.2s;
}

.nav-button:hover {
  background-color: var(--secondary);
}

.calendar-content {
  padding: 0.5rem 1rem 1rem;
}

.weekdays-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.weekday {
  padding: 0.5rem 0;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
}

/* Day Cards */
.day-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 6rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.day-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.day-card.other-month {
  color: var(--muted-foreground);
  background-color: var(--muted);
  opacity: 0.7;
}

.day-card.today {
  outline: 2.5px solid var(--ring);
  outline-offset: 2px;
  /* background-color: var(--background); */
}

/* .day-card.today .day-number {
  color: var(--foreground);
} */

/* Shift Backgrounds & Colors */
.day-card.shift-morning {
  background-color: var(--shift-morning);
  color: var(--card-foreground);
}

.day-card.shift-evening {
  background-color: var(--shift-evening);
  color: var(--card-foreground);
}

.day-card.shift-night {
  background-color: var(--shift-night);
  color: var(--primary-foreground);
}

.day-card.shift-weekly-off {
  background-color: var(--shift-weekly-off);
  color: var(--primary-foreground);
}

.day-card.shift-general {
  background-color: var(--shift-general);
  color: var(--card-foreground);
}

.day-number {
  font-weight: 700;
  text-align: center;
  font-size: 1.125rem;
}

.shift-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.25rem;
}

.shift-icon {
  width: 1.25rem;
  height: 1.25rem;
  stroke-width: 2;
}

.shift-name {
  font-size: 0.875rem;
  font-weight: 700;
}

.shift-night .shift-name,
.shift-weekly-off .shift-name {
  opacity: 0.8;
}

.day-card.other-month .shift-icon,
.day-card.other-month .shift-name {
  color: var(--foreground);
  opacity: 0.5;
}

@media (max-width: 640px) {
  .day-card {
    height: 5.25rem;
    padding: 0.5rem;
  }

  .day-number {
    font-size: 0.9rem;
  }

  .shift-name {
    font-size: 0.75rem;
  }

  .shift-icon {
    width: 1rem;
    height: 1rem;
  }

  .group-tab {
    font-size: 0.95rem;
    padding: 0.375rem 0.5rem;
  }

  .weekdays-header {
    font-size: 0.875rem;
  }
}

/* App Footer */
.app-footer {
  margin-top: auto;
  /* Pushes footer to the bottom */
  border-top: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
  background-color: color-mix(in srgb, var(--background) 80%, transparent);
  padding: 0.75rem 1.25rem;
  z-index: 30;
  position: relative;
}

.footer-inner {
  max-width: 90rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.85rem;
}

.footer-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.footer-separator {
  opacity: 0.5;
}

.footer-icon {
  width: 1.25rem;
  height: 1.25rem;
  object-fit: contain;
  /* Optional: Adds a slight opacity so it blends perfectly with the muted text */
  opacity: 0.85;
}

/* Stack footer items on smaller mobile screens */
@media (max-width: 640px) {
  .footer-inner {
    flex-direction: column;
    gap: 0.4rem;
  }

  .footer-separator {
    display: none;
  }
}
