/* Bottom Sheet Structural Styles */
.bottom-sheet-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.bottom-sheet-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.bottom-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 28rem; /* Equivalent to max-w-md */
  margin: 0 auto;
  height: 85vh; /* Standard 85% mobile viewport height */
  background-color: #121814;
  border-top-left-radius: 1.5rem;
  border-top-right-radius: 1.5rem;
  border-top: 1px solid #1c2620;
  box-shadow: 0 -10px 25px -5px rgba(0, 0, 0, 0.5);
  z-index: 60;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  touch-action: none; /* Prevents default mobile page scroll interference */
}

.bottom-sheet.open {
  transform: translateY(0);
}

.bottom-sheet.dragging {
  transition: none; /* Instant feedback during interactive pull */
}

/* Grab Handle Area */
.sheet-drag-handle {
  width: 100%;
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  touch-action: none;
}

.sheet-drag-pill {
  width: 48px;
  height: 5px;
  background-color: #2a382f;
  border-radius: 9999px;
  transition: background-color 0.2s ease;
}

.sheet-drag-handle:active .sheet-drag-pill {
  background-color: #00ff66;
}

/* Scrollable Content Body */
.sheet-content {
  flex: 1;
  overflow-y: auto;
  padding: 0 1.25rem 2rem 1.25rem;
  -webkit-overflow-scrolling: touch;
}
