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

/* custom sync modal */
.custom-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
}
.custom-modal .modal-content {
  background-color: #1a1a1a;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 400px;
  color: #fff;
  border-radius: 8px;
  position: relative;
}
.custom-modal .modal-close {
  color: #aaa;
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}
.custom-modal .modal-close:hover,
.custom-modal .modal-close:focus {
  color: #fff;
}

:root {
  --bg-primary: #000000;
  --bg-secondary: #0a0a0a;
  --bg-tertiary: #1a1a1a;
  --bg-sidebar: #111111;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --text-muted: #707070;
  --accent: #00d4ff;
  --accent-alt: #bb86fc;
  --border: #2a2a2a;
  --border-light: #1a1a1a;
}

/* Light Mode */
:root.light-mode {
  --bg-primary: #ffffff;
  --bg-secondary: #f5f5f5;
  --bg-tertiary: #efefef;
  --bg-sidebar: #fafafa;
  --text-primary: #1a1a1a;
  --text-secondary: #4a4a4a;
  --text-muted: #8a8a8a;
  --accent: #0099cc;
  --accent-alt: #9944dd;
  --border: #e0e0e0;
  --border-light: #f0f0f0;
}

:root.light-mode body {
  background-color: var(--bg-primary);
}

:root.light-mode code {
  background: var(--bg-tertiary);
}

html,
body {
  width: 100%;
  height: 100vh;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

body {
  overflow: hidden;
}

/* Container Principal */
.container {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* SIDEBAR */
.sidebar {
  width: 280px;
  background: linear-gradient(180deg, var(--bg-sidebar) 0%, var(--bg-primary) 100%);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex-shrink: 0;
}

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

.app-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-alt) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn-new-note {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-alt) 100%);
  border: none;
  color: #000;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.2);
}

.btn-new-note:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(0, 212, 255, 0.3);
}

.btn-new-note:active {
  transform: scale(0.95);
}

/* Header Controls e Menu Dropdown */
.header-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  position: relative;
}

.btn-menu {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.btn-menu:hover {
  background: var(--bg-tertiary);
  border-color: var(--accent);
}

.menu-dropdown {
  position: relative;
}

.dropdown-content {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  min-width: 200px;
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  margin-top: 8px;
  z-index: 1000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8);
}

.dropdown-content.active {
  display: flex;
}

.menu-item {
  padding: 10px 12px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
  font-size: 13px;
}

.menu-item i {
  font-size: 14px;
  width: 18px;
  text-align: center;
  color: var(--accent);
  transition: color 0.2s ease;
}

.menu-item:hover {
  background: var(--bg-tertiary);
  color: var(--accent);
}

.menu-item:hover i {
  color: var(--accent-alt);
}

.menu-item[href] {
  padding: 10px 12px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
  font-size: 13px;
  display: block;
  width: 100%;
}

.menu-item[href]:hover {
  background: var(--bg-tertiary);
  color: var(--accent);
}

/* Filtros */
.filters {
  padding: 12px 8px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

.filter-btn {
  padding: 8px 12px;
  background: none;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 13px;
  text-align: left;
}

.filter-btn:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.filter-btn.active {
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.15) 0%,
    transparent 100%
  );
  border-color: var(--accent);
  color: var(--accent);
}

/* Search Box */
.search-box {
  padding: 12px 8px;
  flex-shrink: 0;
}

.search-input {
  width: 100%;
  padding: 8px 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 13px;
  transition: all 0.2s ease;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-tertiary);
  box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.1);
}

/* Notes Sidebar */
.notes-sidebar {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

.notes-sidebar::-webkit-scrollbar {
  width: 6px;
}

.notes-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.notes-sidebar::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.notes-sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

.note-item {
  padding: 12px 12px 12px 16px;
  margin: 4px 8px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
  background: var(--bg-secondary);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  overflow: hidden;
}

.note-item:hover {
  background: var(--bg-tertiary);
  transform: translateX(4px);
}

.note-item.active {
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.15) 0%,
    var(--bg-secondary) 100%
  );
  box-shadow: 0 0 8px var(--accent);
}

.note-item.pinned {
  border-left-color: var(--accent-alt);
}

/* icon before note title */

.note-item-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0;
  flex: 1 1 auto;
  text-align: left;
  min-width: 0;
}

.note-item-preview {
  display: none; /* ocultar preview para maximizar título */
}

.note-item-time {
  font-size: 10px;
  color: var(--text-muted);
  margin-left: 4px;
  flex: 0 0 auto;
  white-space: nowrap;
  max-width: 40px;
}

/* checkbox inside sidebar items (custom style) */

.note-item-left {
  display: flex;
  align-items: center;
  overflow: hidden;
  flex: 1 1 auto;
  justify-content: flex-start;
  min-width: 0;
}

.note-item-right {
  display: flex;
  align-items: center;
  gap: 6px;
  /* permitir que o tempo fique à direita fixa */
}
.note-checkbox {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--accent);
  border-radius: 4px;
  background: transparent;
  position: relative;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}
.note-checkbox:checked {
  background: var(--accent);
  border-color: var(--accent);
}
.note-checkbox:checked::after {
  content: "\2713"; /* checkmark */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  font-size: 14px;
  color: var(--bg-primary);
}
.note-checkbox:hover {
  border-color: var(--accent-alt);
}

.empty-notes {
  padding: 20px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
}

/* MAIN EDITOR */
.main-editor {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--bg-primary);
  overflow: hidden;
}

.editor-top-bar {
  padding: 20px 32px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  background: linear-gradient(
    to bottom,
    var(--bg-secondary),
    var(--bg-primary)
  );
  overflow: hidden;
}

.editor-title {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 28px;
  font-weight: 700;
  outline: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease;
  padding: 4px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.editor-title::placeholder {
  color: var(--text-muted);
}

.editor-title:focus {
  border-bottom-color: var(--accent);
}

.editor-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
}

.category-select {
  padding: 8px 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  white-space: nowrap;
}

.category-select:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-tertiary);
}

.category-select option {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.btn-icon {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
  white-space: nowrap;
  line-height: 1;
}

.btn-icon:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
}

.btn-icon:active {
  transform: scale(0.9);
}

#btnDelete:hover {
  border-color: #ff6b6b;
  color: #ff6b6b;
}

/* Editor Toolbar */
.editor-toolbar {
  padding: 12px 32px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  background: var(--bg-primary);
  overflow-x: auto;
}

.toolbar-btn {
  padding: 6px 10px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.toolbar-btn:hover {
  background: var(--bg-secondary);
  border-color: var(--accent);
  color: var(--accent);
}

.toolbar-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}

.toolbar-sep {
  width: 1px;
  height: 20px;
  background: var(--border);
  margin: 0 4px;
  flex-shrink: 0;
}

/* Editor Content */
.editor-content {
  flex: 1;
  padding: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.note-editor {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, monospace;
  line-height: 1.6;
  outline: none;
  overflow-y: auto;
  word-wrap: break-word;
  word-break: break-word;
  padding: 0;
  min-height: 100%;
  white-space: pre-wrap;
}

.note-editor[data-placeholder]:empty:before {
  content: attr(data-placeholder);
  color: var(--text-muted);
  opacity: 0.6;
}

.note-editor b,
.note-editor strong {
  color: var(--accent);
}

.note-editor h1 {
  font-size: 28px;
  font-weight: 700;
  margin: 20px 0 10px 0;
  color: var(--accent);
}

.note-editor h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 16px 0 8px 0;
  color: var(--accent-alt);
}

.note-editor ul,
.note-editor ol {
  margin: 10px 0;
  padding-left: 24px;
}

.note-editor code {
  background: var(--bg-tertiary);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent);
  font-family: "Courier New", monospace;
  font-size: 14px;
}

.note-editor::-webkit-scrollbar {
  width: 8px;
}

.note-editor::-webkit-scrollbar-track {
  background: transparent;
}

.note-editor::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

.note-editor::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

.note-textarea {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, monospace;
  line-height: 1.6;
  outline: none;
  resize: none;
  min-height: 0;
  overflow-y: auto;
}

.note-textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

.note-textarea::-webkit-scrollbar {
  width: 8px;
}

.note-textarea::-webkit-scrollbar-track {
  background: transparent;
}

.note-textarea::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

.note-textarea::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Editor Footer */
.editor-footer {
  padding: 12px 32px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.note-info {
  display: flex;
  gap: 16px;
}

.note-time {
  text-align: right;
}

/* Empty State */
.empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-align: center;
  padding: 40px 32px;
  pointer-events: none;
}

.empty-icon {
  font-size: 64px;
  margin-bottom: 20px;
  opacity: 0.5;
}

.empty-state h2 {
  font-size: 24px;
  color: var(--text-primary);
  margin-bottom: 12px;
  font-weight: 600;
}

.empty-state p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 400px;
}

/* Animações */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInContent {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.editor-content {
  animation: slideInContent 0.3s ease;
}

/* ============================================
   MOBILE SIDEBAR TOGGLE BUTTON
   ============================================ */
.sidebar-toggle {
  display: none;
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 1100;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-alt) 100%);
  border: none;
  color: #000;
  font-size: 18px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 212, 255, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.sidebar-toggle:active {
  transform: scale(0.92);
}

/* Sidebar close button (inside sidebar header, mobile only) */
.sidebar-close {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.sidebar-close:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Sidebar Overlay */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
  display: block;
  opacity: 1;
}

/* ============================================
   RESPONSIVE - TABLETS (max-width: 1024px)
   ============================================ */
@media (max-width: 1024px) {
  .sidebar {
    width: 240px;
  }

  .editor-top-bar {
    padding: 16px 20px;
  }

  .editor-toolbar {
    padding: 10px 20px;
  }

  .editor-content {
    padding: 20px;
  }

  .editor-footer {
    padding: 10px 20px;
  }

  .editor-title {
    font-size: 22px;
  }
}

/* ============================================
   RESPONSIVE - MOBILE (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
  body {
    overflow: auto;
  }

  .container {
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
  }

  /* Show hamburger button */
  .sidebar-toggle {
    display: flex;
  }

  /* Sidebar becomes a slide-over panel */
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    height: 100dvh;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none;
  }

  .sidebar.open {
    transform: translateX(0);
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.5);
  }

  /* Show close button inside sidebar on mobile */
  .sidebar-close {
    display: flex;
  }

  /* Hide hamburger when sidebar is open */
  .sidebar-toggle.hidden {
    opacity: 0;
    pointer-events: none;
  }

  /* Sidebar header with close button - remove extra padding */
  .sidebar .sidebar-header {
    padding: 16px 12px;
    gap: 8px;
  }

  /* Main editor takes full width */
  .main-editor {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
  }

  /* Editor top bar adjustments */
  .editor-top-bar {
    padding: 16px;
    padding-top: 68px; /* Space for hamburger button */
    gap: 12px;
    flex-wrap: wrap;
    background: linear-gradient(
      to bottom,
      var(--bg-secondary),
      var(--bg-primary)
    );
  }

  .editor-title {
    font-size: 20px;
    width: 100%;
    order: 1;
  }

  .editor-controls {
    order: 2;
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
  }

  /* Toolbar scrollable on mobile */
  .editor-toolbar {
    padding: 10px 16px;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .editor-toolbar::-webkit-scrollbar {
    display: none;
  }

  .toolbar-btn {
    padding: 8px 14px;
    font-size: 13px;
    min-height: 38px;
    border-radius: 6px;
  }

  /* Editor content */
  .editor-content {
    padding: 20px 16px;
  }

  .note-editor {
    font-size: 15px;
    line-height: 1.7;
  }

  /* Editor footer */
  .editor-footer {
    padding: 12px 16px;
    flex-wrap: nowrap;
    gap: 8px;
    flex-direction: row;
    justify-content: space-between;
    font-size: 12px;
  }

  /* Hide credits section on mobile to save space */
  .editor-credits {
    display: none !important;
  }

  /* Empty state - centered and welcoming */
  .empty-state {
    padding: 40px 24px;
    min-height: 100vh;
    min-height: 100dvh;
  }

  .empty-icon {
    font-size: 56px;
    margin-bottom: 24px;
  }

  .empty-state h2 {
    font-size: 22px;
    margin-bottom: 16px;
  }

  .empty-state p {
    font-size: 14px;
    line-height: 1.6;
    max-width: 280px;
  }

  /* Modal adjustments */
  .custom-modal .modal-content {
    width: 92%;
    margin: 20% auto;
    padding: 16px;
  }

  /* Dropdown menu positioned better for mobile - bottom sheet style */
  .dropdown-content {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1200;
    border-radius: 16px 16px 0 0;
    max-height: 70vh;
    overflow-y: auto;
    min-width: unset;
    padding: 16px;
    padding-bottom: 24px;
    margin-top: 0;
  }

  .menu-item {
    padding: 14px 16px;
    font-size: 15px;
  }

  .menu-item i {
    font-size: 16px;
  }
}

/* ============================================
   RESPONSIVE - SMALL PHONES (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {
  .sidebar {
    width: 100%;
    max-width: 100%;
  }

  .sidebar-header {
    padding: 14px 12px;
  }

  .app-title {
    font-size: 20px;
  }

  .filters {
    padding: 8px 8px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
  }

  .filter-btn {
    padding: 7px 10px;
    font-size: 12px;
    flex: 1;
    text-align: center;
    min-width: 0;
  }

  .search-box {
    padding: 8px 8px;
  }

  .note-item {
    padding: 12px 10px 12px 12px;
    margin: 3px 8px;
  }

  .sidebar-footer {
    padding: 10px 12px;
  }

  .stat-value {
    font-size: 18px;
  }

  .editor-top-bar {
    padding: 12px;
    padding-top: 64px;
  }

  .editor-title {
    font-size: 18px;
  }

  .editor-toolbar {
    padding: 8px 12px;
  }

  .editor-content {
    padding: 14px 12px;
  }

  .editor-footer {
    padding: 10px 12px;
    font-size: 11px;
  }

  .category-select {
    padding: 6px 10px;
    font-size: 12px;
  }

  .btn-icon {
    width: 34px;
    height: 34px;
    font-size: 14px;
  }

  .empty-state {
    min-height: calc(100vh - 56px);
    min-height: calc(100dvh - 56px);
  }
}

/* ============================================
   RESPONSIVE - LANDSCAPE PHONES
   ============================================ */
@media (max-height: 500px) and (max-width: 900px) {
  .editor-top-bar {
    padding-top: 60px;
    padding-bottom: 8px;
  }

  .sidebar-toggle {
    top: 8px;
    left: 8px;
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .editor-toolbar {
    padding: 6px 16px;
  }

  .toolbar-btn {
    padding: 4px 8px;
    min-height: 30px;
  }

  .editor-content {
    padding: 10px 16px;
  }

  .editor-footer {
    padding: 6px 16px;
  }

  .empty-state {
    padding: 20px;
    min-height: auto;
  }

  .empty-icon {
    font-size: 36px;
    margin-bottom: 10px;
  }
}
