:root {
  --notebook-bg: #0d1117;
  --notebook-panel: #161b22;
  --notebook-border: #1f2933;
  --notebook-text: #e6edf3;
  --notebook-accent: #58a6ff;
}

.notebook-container {
  display: grid;
  grid-template-columns: 240px 1fr 280px;
  gap: 1.5rem;
  color: var(--notebook-text);
}

.notebook-panel {
  background: var(--notebook-panel);
  border: 1px solid var(--notebook-border);
  border-radius: 12px;
  padding: 1.25rem;
  height: calc(100vh - 220px);
  overflow: auto;
}

.notebook-panel h5 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--notebook-accent);
  margin-bottom: 1rem;
}

.notebook-editor {
  width: 100%;
  min-height: calc(100vh - 260px);
  background: #0b1016;
  border: 1px solid var(--notebook-border);
  border-radius: 12px;
  color: var(--notebook-text);
  padding: 1.25rem;
  line-height: 1.6;
  font-family: 'Fira Code', 'Courier New', monospace;
  resize: vertical;
}

.notebook-toolbar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.toastee {
  display: none;
}

.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1f6feb;
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1055;
}

.toast-notification.visible {
  opacity: 0.95;
  transform: translateY(0);
}

.toast-notification.toast-error {
  background: #f85149;
}

.toast-notification.toast-warning {
  background: #d29922;
}

.notebook-template-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.notebook-template-list li {
  margin-bottom: 0.5rem;
}

.notebook-template-list button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid var(--notebook-border);
  padding: 0.75rem 0.9rem;
  color: var(--notebook-text);
  border-radius: 8px;
  transition: border 0.2s ease, background 0.2s ease;
}

.notebook-template-list button:hover,
.notebook-template-list button:focus {
  border-color: var(--notebook-accent);
  background: rgba(88, 166, 255, 0.08);
}

.notebook-meta input,
.notebook-meta select,
.notebook-meta textarea {
  width: 100%;
  background: #0b1016;
  border: 1px solid var(--notebook-border);
  border-radius: 8px;
  color: var(--notebook-text);
  padding: 0.65rem 0.8rem;
  margin-bottom: 0.75rem;
}

.notebook-meta label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
  margin-bottom: 0.3rem;
  display: block;
}

.notebook-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (max-width: 1200px) {
  .notebook-container {
    grid-template-columns: 1fr;
  }
  .notebook-panel {
    height: auto;
  }
}
