html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

@media (max-width: 1099px), (hover: none) and (pointer: coarse) {
  html {
    font-size: 21px !important;
  }

  body {
    font-size: 18px !important;
    padding-bottom: 110px;
  }

  #appShell,
  #appShell > main {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  #appShell > main {
    display: block !important;
    margin: 0 !important;
    padding: 14px 14px 120px !important;
  }

  article {
    width: 100%;
    padding: 20px !important;
    border-radius: 22px !important;
  }

  /* Alle kleine Tailwind-teksten vergroten */
  .text-\[8px\],
  .text-\[9px\] {
    font-size: 14px !important;
    line-height: 19px !important;
  }

  .text-\[10px\],
  .text-\[11px\] {
    font-size: 15px !important;
    line-height: 21px !important;
  }

  .text-xs {
    font-size: 17px !important;
    line-height: 23px !important;
  }

  .text-sm {
    font-size: 20px !important;
    line-height: 27px !important;
  }

  .text-base {
    font-size: 22px !important;
    line-height: 29px !important;
  }

  .text-lg {
    font-size: 25px !important;
  }

  .text-xl {
    font-size: 28px !important;
  }

  h1, h2, h3, strong {
    letter-spacing: normal;
  }

  input,
  select,
  textarea {
    min-width: 0;
    min-height: 56px !important;
    padding: 13px !important;
    font-size: 18px !important;
  }

  button {
    min-height: 46px;
  }

  /* Mobiele tabbladen onderaan */
  #appShell > main > nav {
    position: fixed !important;
    z-index: 45;
    right: 0;
    bottom: 0;
    left: 0;

    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;

    width: 100% !important;
    margin: 0 !important;
    padding: 7px 4px calc(7px + env(safe-area-inset-bottom)) !important;

    border-radius: 0 !important;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(14px);
  }

  #appShell > main > nav button {
    min-width: 0 !important;
    min-height: 68px !important;
    padding: 5px 1px !important;
    font-size: 11px !important;
    line-height: 14px !important;
  }

  #appShell > main > nav button i {
    font-size: 21px !important;
  }

  #todaySection:not(.hidden),
  #dietSection:not(.hidden),
  #snacksSection:not(.hidden),
  #trackerSection:not(.hidden),
  #gymvisionSection:not(.hidden),
  #guideSection:not(.hidden) {
    display: block !important;
    width: 100% !important;
  }

  #todaySection > *,
  #dietSection > *,
  #snacksSection > *,
  #trackerSection > *,
  #gymvisionSection > *,
  #guideSection > * {
    margin-bottom: 16px !important;
  }

  #floatingQuickEntryButton {
    right: 16px !important;
    bottom: 92px !important;
    width: 64px !important;
    height: 64px !important;
    font-size: 24px !important;
  }
}

html.mobile-force {
  font-size: 20px !important;
}

html.mobile-force body {
  font-size: 18px !important;
}

html.mobile-force .text-\[8px\],
html.mobile-force .text-\[9px\] {
  font-size: 14px !important;
  line-height: 19px !important;
}

html.mobile-force .text-\[10px\],
html.mobile-force .text-\[11px\] {
  font-size: 15px !important;
  line-height: 21px !important;
}

html.mobile-force .text-xs {
  font-size: 17px !important;
  line-height: 23px !important;
}

html.mobile-force .text-sm {
  font-size: 20px !important;
  line-height: 27px !important;
}

html.mobile-force .text-base {
  font-size: 22px !important;
}

html.mobile-force input,
html.mobile-force select,
html.mobile-force textarea {
  min-height: 54px !important;
  font-size: 18px !important;
}

html.mobile-force article {
  padding: 20px !important;
}
