:root {
  /* Dark Theme (Default) */
  --bg-gradient: radial-gradient(circle at 50% 0%, #111827, #070a13);
  --bg-color: #070a13;
  --sidebar-bg: rgba(13, 18, 30, 0.85);
  --main-bg: rgba(7, 10, 19, 0.95);
  --card-bg: rgba(17, 24, 39, 0.6);
  --card-hover-bg: rgba(31, 41, 55, 0.7);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(59, 130, 246, 0.4);
  --text-primary: #f3f4f6;
  --text-muted: #9ca3af;
  --accent: #3b82f6;
  --accent-glow: rgba(59, 130, 246, 0.15);
  --accent-light: #60a5fa;
  --shadow-color: rgba(0, 0, 0, 0.5);
  --sidebar-width: 280px;

  --code-bg: #1e293b;
  --quote-bg: rgba(59, 130, 246, 0.05);
  --quote-border: #3b82f6;
  --callout-info-bg: rgba(59, 130, 246, 0.08);
  --callout-info-border: #3b82f6;
  --callout-warning-bg: rgba(245, 158, 11, 0.08);
  --callout-warning-border: #f59e0b;
}

body.light {
  /* Light Theme */
  --bg-gradient: radial-gradient(circle at 50% 0%, #f8fafc, #eff6ff);
  --bg-color: #eff6ff;
  --sidebar-bg: rgba(255, 255, 255, 0.85);
  --main-bg: rgba(248, 250, 252, 0.95);
  --card-bg: rgba(255, 255, 255, 0.7);
  --card-hover-bg: rgba(255, 255, 255, 0.95);
  --border: rgba(0, 0, 0, 0.06);
  --border-hover: rgba(37, 99, 235, 0.4);
  --text-primary: #0f172a;
  --text-muted: #64748b;
  --accent: #2563eb;
  --accent-glow: rgba(37, 99, 235, 0.06);
  --accent-light: #3b82f6;
  --shadow-color: rgba(37, 99, 235, 0.05);

  --code-bg: #f1f5f9;
  --quote-bg: rgba(37, 99, 235, 0.04);
  --quote-border: #2563eb;
  --callout-info-bg: rgba(37, 99, 235, 0.05);
  --callout-info-border: #2563eb;
  --callout-warning-bg: rgba(217, 119, 6, 0.05);
  --callout-warning-border: #d97706;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background-color: var(--bg-color);
  background-image: var(--bg-gradient);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  overflow: hidden;
  transition: background 0.3s, color 0.3s;
  -webkit-font-smoothing: antialiased;
}

/* App Container */
.app-container {
  display: flex;
  width: 100vw;
  height: 100vh;
  position: relative;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  height: 100%;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, width 0.3s ease;
  z-index: 10;
  flex-shrink: 0;
}

.sidebar-header {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.logo-group h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.theme-toggle-mini {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.theme-toggle-mini:hover {
  background: var(--card-hover-bg);
  color: var(--text-primary);
  transform: scale(1.05);
}

.theme-toggle-mini svg {
  width: 16px;
  height: 16px;
}

.search-box {
  padding: 12px 16px;
  position: relative;
}

.search-box svg {
  position: absolute;
  left: 26px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: var(--text-muted);
}

.search-input {
  width: 100%;
  padding: 8px 12px 8px 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: all 0.2s;
}

body.light .search-input {
  background: rgba(0, 0, 0, 0.02);
}

.search-input:focus {
  border-color: var(--accent);
  background: var(--card-bg);
  box-shadow: 0 0 0 2px var(--accent-glow);
}

/* Sidebar Actions */
.sidebar-actions {
  padding: 0 16px 10px;
  display: flex;
  gap: 8px;
}

.btn-sidebar {
  flex: 1;
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 8px;
  border-radius: 8px;
  font-size: 12px;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-sidebar:hover {
  background: var(--card-hover-bg);
  border-color: var(--accent-light);
  transform: translateY(-1px);
}

.btn-sidebar svg {
  width: 14px;
  height: 14px;
}

/* Document Tree */
.tree-container {
  flex: 1;
  overflow-y: auto;
  padding: 10px 16px;
}

.tree-node {
  margin-bottom: 2px;
}

.tree-row {
  display: flex;
  align-items: center;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.15s ease;
  user-select: none;
  position: relative;
  gap: 6px;
}

.tree-row:hover {
  background: var(--card-hover-bg);
}

.tree-row.active {
  background: var(--accent-glow);
  border-left: 3px solid var(--accent);
  padding-left: 5px; /* Offset the 3px border to avoid shifting text */
  color: var(--accent-light);
}

.tree-indent {
  width: 14px;
  flex-shrink: 0;
}

.tree-toggle-icon {
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: transform 0.2s;
}

.tree-toggle-icon.expanded {
  transform: rotate(90deg);
}

.tree-icon {
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tree-icon svg {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
}

.tree-title {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tree-actions {
  display: none;
  gap: 4px;
  position: absolute;
  right: 6px;
  background: inherit;
  padding-left: 8px;
}

.tree-row:hover .tree-actions {
  display: flex;
}

.tree-action-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.tree-action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

body.light .tree-action-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

.tree-action-btn svg {
  width: 11px;
  height: 11px;
}

/* Sidebar Footer / Git Status */
.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.git-status-card {
  background: rgba(255, 255, 255, 0.02);
  body.light & {
    background: rgba(0, 0, 0, 0.01);
  }
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.git-status-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  color: var(--text-muted);
}

.git-badge {
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.git-badge.disconnected {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

.git-badge.connected {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.git-info-text {
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-git-sync {
  width: 100%;
  background: var(--accent);
  border: none;
  color: white;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-git-sync:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
}

.btn-git-sync svg {
  width: 12px;
  height: 12px;
}

/* Main Workspace */
.main-workspace {
  flex: 1;
  height: 100%;
  background: var(--main-bg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Main Header / Top bar */
.workspace-header {
  height: 56px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: rgba(255, 255, 255, 0.01);
  backdrop-filter: blur(12px);
  z-index: 5;
}

.left-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-toggle-sidebar {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.btn-toggle-sidebar:hover {
  background: var(--card-hover-bg);
  color: var(--text-primary);
}

.btn-toggle-sidebar svg {
  width: 18px;
  height: 18px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

.breadcrumb-sep {
  opacity: 0.5;
}

.breadcrumb-page {
  font-weight: 500;
}

.breadcrumb-page.active {
  color: var(--text-primary);
}

.right-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Mode Switcher */
.mode-switcher {
  display: flex;
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 2px;
  border-radius: 8px;
}

.btn-mode {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-mode.active {
  background: var(--card-hover-bg);
  color: var(--text-primary);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.btn-header-action {
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.btn-header-action:hover {
  background: var(--card-hover-bg);
  color: var(--text-primary);
  border-color: var(--accent-light);
  transform: translateY(-1px);
}

.btn-header-action svg {
  width: 15px;
  height: 15px;
}

/* Editor Workspace Document Content */
.doc-scroller {
  flex: 1;
  overflow-y: auto;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Cover Image */
.cover-container {
  height: 180px;
  width: 100%;
  position: relative;
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  background-size: cover;
  background-position: center;
  transition: background 0.3s;
}

.btn-change-cover {
  position: absolute;
  bottom: 16px;
  right: 24px;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(4px);
  transition: all 0.2s;
  opacity: 0;
}

.cover-container:hover .btn-change-cover {
  opacity: 1;
}

.btn-change-cover:hover {
  background: rgba(0, 0, 0, 0.85);
  transform: translateY(-1px);
}

.btn-change-cover svg {
  width: 12px;
  height: 12px;
}

/* Cover Image Picker Popover */
.cover-picker-popover {
  position: absolute;
  bottom: 50px;
  right: 24px;
  background: var(--sidebar-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  width: 240px;
  z-index: 20;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.5);
  backdrop-filter: blur(20px);
  display: none;
  flex-direction: column;
  gap: 10px;
}

.cover-picker-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.cover-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.cover-option {
  height: 36px;
  border-radius: 6px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.15s;
}

.cover-option:hover {
  transform: scale(1.05);
  border-color: white;
}

/* Page Meta Header: Emoji and Editable Title */
.doc-meta-container {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  margin-top: -45px;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.emoji-selector-wrapper {
  position: relative;
  align-self: flex-start;
}

.emoji-trigger {
  width: 76px;
  height: 76px;
  background: var(--bg-color);
  border: 4px solid var(--main-bg);
  border-radius: 20px;
  font-size: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.emoji-trigger:hover {
  transform: scale(1.05);
  background: var(--card-hover-bg);
}

/* Mini Emoji Picker */
.emoji-picker-popover {
  position: absolute;
  top: 85px;
  left: 0;
  background: var(--sidebar-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  width: 250px;
  z-index: 20;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.5);
  backdrop-filter: blur(20px);
  display: none;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  max-height: 200px;
  overflow-y: auto;
}

.emoji-picker-item {
  font-size: 20px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.15s;
}

.emoji-picker-item:hover {
  background: var(--card-hover-bg);
  transform: scale(1.1);
}

.title-input {
  width: 100%;
  background: none;
  border: none;
  font-family: 'Outfit', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 15px;
  margin-bottom: 25px;
  outline: none;
}

.title-input::placeholder {
  color: var(--text-muted);
  opacity: 0.3;
}

/* Edit / Split / Preview Viewports */
.editor-workspace {
  flex: 1;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 0 40px 60px;
  display: flex;
  gap: 30px;
}

.pane {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
}

.editor-textarea {
  width: 100%;
  height: 100%;
  min-height: 400px;
  background: none;
  border: none;
  resize: none;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-primary);
  outline: none;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.editor-textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.4;
}

/* Rendered Preview Markdown Style */
.preview-container {
  height: 100%;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-primary);
  overflow-y: visible;
}

.preview-container h1,
.preview-container h2,
.preview-container h3,
.preview-container h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 24px;
  margin-bottom: 12px;
  line-height: 1.25;
}

.preview-container h1 { font-size: 28px; border-bottom: 1px solid var(--border); padding-bottom: 6px; }
.preview-container h2 { font-size: 22px; border-bottom: 1px solid var(--border); padding-bottom: 4px; }
.preview-container h3 { font-size: 18px; }
.preview-container h4 { font-size: 15px; }

.preview-container p {
  margin-bottom: 16px;
}

.preview-container a {
  color: var(--accent-light);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.15s;
}

.preview-container a:hover {
  border-bottom-color: var(--accent-light);
}

.preview-container ul,
.preview-container ol {
  margin-bottom: 16px;
  padding-left: 20px;
}

.preview-container li {
  margin-bottom: 6px;
}

.preview-container li > ul,
.preview-container li > ol {
  margin-top: 6px;
  margin-bottom: 0;
}

.preview-container blockquote {
  background: var(--quote-bg);
  border-left: 4px solid var(--quote-border);
  padding: 10px 16px;
  margin: 16px 0;
  border-radius: 0 8px 8px 0;
}

.preview-container blockquote p:last-child {
  margin-bottom: 0;
}

/* Monospace Code Style */
.preview-container code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 85%;
  background: var(--code-bg);
  padding: 3px 6px;
  border-radius: 4px;
}

.preview-container pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 16px 0;
}

.preview-container pre code {
  font-size: 13px;
  background: none;
  padding: 0;
  border-radius: 0;
  color: inherit;
}

/* Callouts / Alert styles */
.preview-container .callout {
  padding: 12px 16px;
  border-radius: 8px;
  margin: 16px 0;
  display: flex;
  gap: 12px;
  font-size: 14px;
  border-left: 4px solid;
}

.preview-container .callout-info {
  background: var(--callout-info-bg);
  border-color: var(--callout-info-border);
}

.preview-container .callout-warning {
  background: var(--callout-warning-bg);
  border-color: var(--callout-warning-border);
}

.preview-container .callout-emoji {
  font-size: 18px;
  line-height: 1;
}

.preview-container .callout-content {
  flex: 1;
}

.preview-container hr {
  height: 1px;
  background: var(--border);
  border: none;
  margin: 24px 0;
}

.preview-container table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 16px;
}

.preview-container th,
.preview-container td {
  border: 1px solid var(--border);
  padding: 8px 12px;
}

.preview-container th {
  background: rgba(255,255,255,0.02);
  body.light & {
    background: rgba(0,0,0,0.01);
  }
  font-weight: 600;
}

/* Tasks */
.preview-container input[type="checkbox"] {
  margin-right: 8px;
  width: 14px;
  height: 14px;
  accent-color: var(--accent);
}

/* Empty State / Welcome Screen */
.welcome-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  text-align: center;
}

.welcome-logo {
  width: 64px;
  height: 64px;
  color: var(--accent);
  margin-bottom: 20px;
}

.welcome-screen h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  margin-bottom: 8px;
}

.welcome-screen p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 24px;
  max-width: 400px;
}

.btn-primary {
  background: var(--accent);
  border: none;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  box-shadow: 0 4px 12px var(--shadow-color);
}

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}

.modal-card {
  background: var(--sidebar-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 100%;
  max-width: 450px;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.6);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 700;
}

.btn-close-modal {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-close-modal svg {
  width: 16px;
  height: 16px;
}

.modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.form-input {
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  body.light & {
    background: rgba(0,0,0,0.01);
  }
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: all 0.2s;
}

.form-input:focus {
  border-color: var(--accent);
  background: var(--card-bg);
}

.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.btn-secondary {
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: var(--card-hover-bg);
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--sidebar-bg);
  border: 1px solid var(--border);
  padding: 12px 18px;
  border-radius: 10px;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.4);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 200;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast-icon svg {
  width: 16px;
  height: 16px;
}

.toast-icon.success svg { color: #10b981; }
.toast-icon.error svg { color: #ef4444; }
.toast-icon.info svg { color: #3b82f6; }

/* Responsive adjustments */
@media(max-width: 768px) {
  .sidebar {
    position: absolute;
    left: 0;
    top: 0;
    transform: translateX(-100%);
    box-shadow: 10px 0 30px rgba(0,0,0,0.3);
  }
  .sidebar.show {
    transform: translateX(0);
  }
  .editor-workspace {
    padding: 0 20px 40px;
    flex-direction: column;
  }
  .doc-meta-container {
    padding: 0 20px;
  }
}
