/* =========================
   MOBILE STYLES — Indie
   ========================= */

@media (max-width: 768px) {

/* Voorkom horizontale overflow */
html, body, #react-entry-point {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
}

.tabs-wrapper {
  padding: 8px 8px !important;
  max-width: 100vw;
  overflow: hidden;
}

.tabs-inner-wrapper {
  padding: 0 !important;
  max-width: 100% !important;
}

.app-logo .brand {
  font-size: 16px !important;
}

.app-logo img {
  width: 28px !important;
  height: 28px !important;
}

/* Tabs nog wat compacter */
.tab,
.custom-tab {
  width: 32px !important;
  height: 28px !important;
  padding: 4px !important;
}

.tab::before,
.custom-tab::before {
  font-size: 12px !important;
}

.custom-tabs,
#tabs {
  gap: 4px !important;
}

/* Header rows compacter */
.header-top-row,
.header-bottom-row {
  gap: 6px !important;
  padding: 0 !important;
}

/* Compare cards binnen scherm */
.compare-card {
  padding: 12px !important;
  margin-right: 0 !important;
}

/* Theme toggle iets kleiner */
.theme-toggle {
  width: 34px !important;
  height: 34px !important;
}

#user_dropdown {
  width: 90px !important;
}
  .header-bottom-row {
  display: flex !important;
  flex-direction: row !important;
  justify-content: flex-end !important;
  align-items: center;
  gap: 8px;
  width: 100%;
}
  .header-top-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 8px;
  width: 100%;
}
  html, body {
    overflow-x: hidden;
    overscroll-behavior: none;
    touch-action: pan-y;
  }

  .tabs-wrapper {
    padding: 10px 12px;
  }

  /* Twee-rijen header op mobiel */
  .tabs-inner-wrapper {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }

  .header-top-row {
    display: flex !important;
    align-items: center;
    gap: 8px;
    width: 100%;
  }

  .header-bottom-row {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .app-logo .brand {
    font-size: 18px;
  }

  .app-logo img {
    width: 32px;
    height: 32px;
  }

  #user_dropdown {
    width: 95px !important;
  }

  #user_dropdown .Select-control {
    font-size: 13px !important;
    height: 36px !important;
  }

  /* =========================
     TABS — alleen iconen op mobiel
     ========================= */
  .tab,
  .custom-tab,
  .tab span,
  .custom-tab span,
  .tab > *,
  .custom-tab > * {
    font-size: 0 !important;
    line-height: 0 !important;
    color: transparent !important;
  }

  .tab,
  .custom-tab {
    padding: 10px 14px !important;
    min-width: 48px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--bg-card) !important;
    border: 1.5px solid var(--border-hard) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-stamp) !important;
  }

  .tab::before,
  .custom-tab::before {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900;
    font-size: 16px !important;
    line-height: 1 !important;
    color: var(--text-primary) !important;
  }

  .tab--selected::before,
  .custom-tab--selected1::before,
  .custom-tab--selected2::before,
  .custom-tab--selected3::before {
    color: var(--bg-card) !important;
  }

  .tab--selected,
  .custom-tab--selected1,
  .custom-tab--selected2,
  .custom-tab--selected3 {
    background: var(--text-primary) !important;
    box-shadow: var(--shadow-stamp-red) !important;
  }

  .tab:nth-of-type(1)::before,
  .custom-tab:nth-of-type(1)::before { content: "\f24e" !important; }
  .tab:nth-of-type(2)::before,
  .custom-tab:nth-of-type(2)::before { content: "\f0cb" !important; }
  .tab:nth-of-type(3)::before,
  .custom-tab:nth-of-type(3)::before { content: "\f04b" !important; }
  .tab:nth-of-type(4)::before,
  .custom-tab:nth-of-type(4)::before { content: "\f303" !important; }

  /* =========================
     COMPARE CARDS MOBIEL
     ========================= */
  .compare-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }

  .compare-card {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  /* Kill horizontale ruimte */
  #inhoud-page1,
  #compare-wrap,
  #vergelijker-wrapper {
    padding-left: 8px !important;
    padding-right: 8px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
  }

  /* Doorvoeren knop wat compacter op mobiel */
  .doorvoeren-knop {
    padding: 14px 36px !important;
  }
}

@media (max-width: 768px) {
  .tab,
  .custom-tab {
    padding: 6px 6px !important;
    min-width: 0 !important;
    width: 36px !important;
    height: 30px !important;
  }

  .tab::before,
  .custom-tab::before {
    font-size: 13px !important;
  }
}
