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

:root {
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
}

html {
  font-family: var(--font-sans);
  background-color: #f7f6f0;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
  width: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: #f7f6f0;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  overflow-y: visible;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  margin: 0;
  padding: 0;
  -webkit-overflow-scrolling: touch;
}

/* Custom scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Hide scrollbars for clean horizontal tab sliders */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Responsive Modal Scroll & Positioning */
.modal-dialog-responsive {
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  width: calc(100% - 1.5rem);
  margin-left: auto;
  margin-right: auto;
}

/* Smooth Touch Scrolling */
.touch-scroll {
  -webkit-overflow-scrolling: touch;
}

/* Standalone Desktop PWA Window Styling (Matches YouTube Desktop PWA) */
@media (display-mode: standalone) {
  body {
    user-select: none;
    -webkit-user-select: none;
  }

  input,
  textarea,
  [contenteditable="true"] {
    user-select: text;
    -webkit-user-select: text;
  }

  /* Custom Titlebar Overlays if Window Controls Overlay is enabled */
  .titlebar-draggable {
    -webkit-app-region: drag;
  }

  .titlebar-non-draggable {
    -webkit-app-region: no-drag;
  }
}