/* ==========================================================================
   NOTEBOOK STUDIO STYLESHEET: Files/notebook.css
   PURPOSE: Writable canvas with high-contrast tab outlines and bullet gutters.
   Strictly under 200 lines in compliance with project rules.
   ========================================================================== */

.nb-workspace {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.nb-tabs-scroll {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  flex: 1;
  padding-right: 8px;
}

.nb-tab-pill {
  padding: 5px 12px;
  border-radius: 10px;
  background: var(--surface-alt);
  border: 1.5px solid var(--border-light);
  color: var(--text-main);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  user-select: none;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nb-tab-pill:hover {
  background: var(--surface-hover);
}

.nb-tab-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg-dark);
  font-weight: 700;
  box-shadow: 0 2px 8px var(--accent-glow);
}

/* Writable Canvas & Bullet Gutter */
.nb-editor-row {
  display: flex;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  gap: 10px;
  padding-top: 2px;
  padding-right: 4px;
  align-items: flex-start;
}

.nb-bullet-col {
  width: 24px;
  text-align: center;
  font-family: var(--font-family-notepad, 'Fira Mono'), monospace;
  font-size: var(--font-size-notepad, 14px);
  line-height: 1.6;
  font-weight: 700;
  color: var(--text-dim);
  user-select: none;
  white-space: pre-line !important;
  flex-shrink: 0;
}

.nb-textarea-editor {
  flex: 1;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  color: var(--text-main) !important;
  font-family: var(--font-family-notepad, 'Fira Mono'), monospace !important;
  font-size: var(--font-size-notepad, 14px) !important;
  line-height: 1.6 !important;
  resize: none !important;
  padding: 0 !important;
  white-space: pre-wrap !important;
  word-break: break-word !important;
  overflow-y: hidden !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  user-select: text !important;
}

.nb-textarea-editor::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}