body {
  font-family: "Courier New", monospace;
}

.glassmorphism {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.font-mono {
  font-family: "Courier New", monospace;
}

#pasteArea {
  font-family: "Courier New", monospace;
  line-height: 1.5;
  padding: 8px;
  /* Ensure textarea doesn't have min-width issues */
  min-width: 0;
}

#lineNumbers {
  font-family: "Courier New", monospace;
  line-height: 1.5;
  text-align: right;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  overflow-y: hidden;
  overflow-x: hidden;
  /* Use flex-col to properly stack line numbers as divs */
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  width: auto;
  min-width: 2.5rem;
  padding-right: 0;
}

footer {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#pasteContent {
  font-family: "Courier New", monospace;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  padding: 8px;
  overflow-x: auto;
}

/* Smooth scrolling and better defaults */
html {
  scroll-behavior: smooth;
}

/* Better responsive typography and spacing */
@media (max-width: 640px) {
  #pasteArea,
  #pasteContent {
    padding: 6px !important;
    font-size: 12px;
  }

  /* Tighter line numbers on mobile to save space --> */
  #lineNumbers {
    min-width: 1.75rem;
    font-size: 11px;
  }

  body {
    font-size: 12px;
  }
}

@media (max-width: 768px) {
  #lineNumbers {
    width: 2.25rem;
  }
}

/* Ensure no overflow issues */
main {
  display: flex;
  flex-direction: column;
}

main > div {
  display: flex;
  height: 100%;
  overflow: hidden;
  /* Ensure width is constrained on mobile */
  width: 100%;
}

/* Ensure line numbers scroll syncs perfectly */
#lineNumbers {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
