/* ===== VARIABLES CSS ===== */
:root {
  --bg: #FAF8F6;
  --text: #111418;
  --muted: #6b7280;
  --panel: transparent;
  --border: #DCE6EE;
  --accent: #EF4F23;
  --danger: #dc2626;
  --sidebar-w: 300px;
  --radius: 14px;
  --lightgray: rgb(241, 242, 246);
}

html.theme-dark {
  --bg: #0b0d11;
  --text: #e5e7eb;
  --muted: #9aa4b2;
  --panel: transparent;
  --border: #202532;
  --accent: #EF4F23;
  --danger: #ef4444;
  --lightgray: rgba(37, 39, 41, 1);
}

/* ===== RESET Y BASE ===== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 500 15px/1.5 'Source Code Pro', monospace;
}

/* ===== LAYOUT PRINCIPAL ===== */
.app {
  display: block;
  min-height: 100dvh;
}

.main-content {
  margin-left: 300px;
  transition: margin-left 0.2s ease;
}

.app.sidebar-collapsed .main-content {
  margin-left: 60px;
}

/* ===== SIDEBAR ===== */
.sidebar {
  background: var(--bg);
  /* border-right: 1px solid var(--border); */
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  transition: width 0.2s ease;
  width: 300px;
  flex-shrink: 0;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
}

.sidebar.collapsed {
  width: 60px;
}

.sidebar.collapsed .sidebar-content .row {
  display: none;
}

.sidebar.collapsed .sidebar-scrollable {
  visibility: hidden;
}

.sidebar.collapsed .topbar .row {
  display: none;
}

.sidebar.collapsed .footer .dropdown-menu {
  display: none !important;
}

.sidebar.collapsed .footer .btn:not(#toggleSidebarBtn) {
  display: none;
}

.sidebar.collapsed .topbar {
  justify-content: flex-start;
  padding: 12px 8px 12px 15px;
  height: 68px;
}

.sidebar.collapsed .topbar .brand {
  position: absolute;
  left: 15px;
  top: 22px;
}

.sidebar.collapsed .footer {
  justify-content: flex-start;
  padding: 10px;
}

.main-content.sidebar-collapsed .editor-head {
  width: 100%;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
  padding: 12px 8px 12px 15px;
  /* border-bottom: 1px solid var(--border); */
  flex-shrink: 0;
  background: var(--bg);
  z-index: 5;
  height: 68px;
}

.sidebar-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sidebar-scrollable {
  flex: 1;
  overflow-y: auto;
  padding: 0 8px;
}

.projects {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 8px;
}

.footer {
  padding: 10px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  background: var(--bg);
  /* border-top: 1px solid var(--border); */
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

.brand-logo {
  flex-shrink: 0;
}

/* ===== COMPONENTES COMUNES ===== */
/* Universal button reset to prevent browser defaults */
button,
button *,
.btn,
.btn * {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
}

/* Global button reset - prevent any size changes */
button,
.btn {
  box-sizing: border-box;
  border: 1px solid transparent !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Ensure consistent states for all buttons */
button:hover,
button:focus,
button:active,
button:focus-visible,
.btn:hover,
.btn:focus,
.btn:active,
.btn:focus-visible {
  border: 1px solid transparent !important;
  outline: none !important;
  box-shadow: none !important;
  transform: none !important;
}

/* Prevent any child elements from affecting button size */
button *,
.btn * {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}

button:hover *,
button:focus *,
button:active *,
button:focus-visible *,
.btn:hover *,
.btn:focus *,
.btn:active *,
.btn:focus-visible * {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  background: var(--lightgray);
}

html.theme-dark .btn:hover {
  background: var(--lightgray);
}

/* Cambio de color de iconos en hover */
.btn:hover i,
.btn:hover svg {
  color: var(--accent);
}

.btn:hover svg path {
  stroke: var(--accent) !important;
  fill: none !important;
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}

.btn.icon {
  padding: 8px;
  border-radius: 10px;
  min-width: 36px;
  justify-content: center;
}

.inp {
  border: none;
  border-radius: 10px;
  padding: 8px 10px;
  background: transparent;
  color: var(--text);
  width: 100%;
  font-family: 'Source Code Pro', monospace;
}

/* Mantener borde solo para el campo de búsqueda */
#search {
  border: 1px solid var(--border);
}

/* Eliminar bordes de otros inputs */
.inp:not(#search) {
  border: none;
}

.accent {
  color: var(--accent);
}

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

.spacer {
  flex: 1;
}

.row {
  display: flex;
  gap: 2px;
  align-items: center;
}

.empty {
  padding: 12px;
  color: var(--muted);
  font-style: italic;
}

/* ===== PROYECTOS Y NOTAS ===== */

.project {
  border: 0;
  border-radius: 12px;
  overflow: visible;
  background: transparent;
}

.project-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  cursor: pointer;
}

.project-header .title {
  flex: 1;
  font-weight: 700;
  padding: 2px 4px;
  border-radius: 3px;
  transition: background-color 0.15s ease;
}

.project-header .title.editing {
  background: var(--bg);
  border: 1px solid var(--accent);
  outline: none;
}

.project-header .title:focus {
  outline: none;
}

.pin-indicator {
  color: var(--accent);
  font-size: 12px;
  margin-left: 4px;
  opacity: 0.8;
}

.project-actions {
  display: flex;
  gap: 6px;
}

.notes {
  display: flex;
  flex-direction: column;
}

.note-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-top: 0;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.note-item:hover {
  background: var(--lightgray);
}

html.theme-dark .note-item:hover {
  background: var(--lightgray);
}

.note-item.active {
  background: rgba(239, 79, 35, 0.10);
}

/* Estilos para timestamps en línea */
.note-timestamps-inline {
  padding: 4px 16px;
  text-align: right;
  font-size: 10px;
  color: var(--muted);
  opacity: 0.7;
  /* border-bottom: 1px solid var(--border); */
}

.note-date-inline {
  font-size: inherit;
  color: inherit;
}

.note-date-separator {
  margin: 0 4px;
  opacity: 0.5;
}

.note .dropdown {
  opacity: 0;
  transition: opacity 0.2s;
}

.note:hover .dropdown {
  opacity: 1;
}

.note-icon {
  color: var(--muted);
  margin-right: 8px;
  flex-shrink: 0;
}

/* ===== EDITOR ===== */
.editor {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.editor-head {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px 16px;
  flex-shrink: 0;
  /* border-bottom: 1px solid var(--border); */
  height: 56px;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
}

.title-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font: 700 20px/1.2 'Source Code Pro', monospace;
  color: var(--text);
  padding: 6px 8px;
  border-radius: 10px;
}

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

.editor-body {
  padding: 0 16px 12px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: visible;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

/* ===== QUILL EDITOR ===== */
.ql-toolbar.ql-snow {
  border: none;
  border-radius: 12px 12px 0 0;
  background: var(--bg) !important;
  flex-shrink: 0;
  width: 100%;
  box-sizing: border-box;
  position: sticky;
  top: 56px;
  z-index: 1000 !important;
  margin-top: 8px;
  padding: 8px 12px;
}

.ql-container.ql-snow {
  border: none;
  border-radius: 0 0 12px 12px;
  flex: 1;
  color: var(--text);
  background: transparent;
  display: flex;
  flex-direction: column;
  width: 100% !important;
  min-width: 100% !important;
  box-sizing: border-box !important;
  position: relative;
  z-index: 1;
}

.ql-editor {
  flex: 1;
  overflow-y: auto;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 200px;
  box-sizing: border-box !important;
  min-width: 0;
  padding-top: 80px;
  position: relative;
  z-index: 1;
}

html.theme-dark .ql-toolbar.ql-snow {
  background: var(--panel);
  border-color: var(--border);
}

html.theme-dark .ql-container.ql-snow {
  border-color: var(--border);
}

/* Estilos de los iconos del toolbar de Quill - MODO CLARO */
.ql-toolbar.ql-snow .ql-formats .ql-bold:before,
.ql-toolbar.ql-snow .ql-formats .ql-italic:before,
.ql-toolbar.ql-snow .ql-formats .ql-underline:before,
.ql-toolbar.ql-snow .ql-formats .ql-strike:before,
.ql-toolbar.ql-snow .ql-formats .ql-list:before,
.ql-toolbar.ql-snow .ql-formats .ql-link:before,
.ql-toolbar.ql-snow .ql-formats .ql-image:before,
.ql-toolbar.ql-snow .ql-formats .ql-code-block:before,
.ql-toolbar.ql-snow .ql-formats .ql-clean:before,
.ql-toolbar.ql-snow .ql-formats .ql-header:after,
.ql-toolbar.ql-snow .ql-formats button svg,
.ql-toolbar.ql-snow .ql-formats button::before,
.ql-toolbar.ql-snow .ql-formats .ql-picker-label::before,
.ql-toolbar.ql-snow .ql-formats .ql-picker-options .ql-picker-item::before {
  color: var(--text) !important;
  fill: var(--text) !important;
  stroke: var(--text) !important;
}

.ql-picker-options {
  background: var(--bg) !important;
}

/* Estilos del placeholder en modo oscuro */
html.theme-dark .ql-editor.ql-blank::before {
  color: var(--text-muted) !important;
}

/* Estilos del toolbar de Quill en modo oscuro */
html.theme-dark .ql-toolbar.ql-snow {
  background: var(--bg) !important;
  border-color: var(--border) !important;
}

/* Estilos de los iconos del toolbar de Quill - MODO OSCURO */
html.theme-dark .ql-toolbar.ql-snow .ql-formats .ql-bold:before,
html.theme-dark .ql-toolbar.ql-snow .ql-formats .ql-italic:before,
html.theme-dark .ql-toolbar.ql-snow .ql-formats .ql-underline:before,
html.theme-dark .ql-toolbar.ql-snow .ql-formats .ql-strike:before,
html.theme-dark .ql-toolbar.ql-snow .ql-formats .ql-list:before,
html.theme-dark .ql-toolbar.ql-snow .ql-formats .ql-link:before,
html.theme-dark .ql-toolbar.ql-snow .ql-formats .ql-image:before,
html.theme-dark .ql-toolbar.ql-snow .ql-formats .ql-code-block:before,
html.theme-dark .ql-toolbar.ql-snow .ql-formats .ql-clean:before,
html.theme-dark .ql-toolbar.ql-snow .ql-formats .ql-header:after,
html.theme-dark .ql-toolbar.ql-snow .ql-formats button svg,
html.theme-dark .ql-toolbar.ql-snow .ql-formats button::before,
html.theme-dark .ql-toolbar.ql-snow .ql-formats .ql-picker-label::before,
html.theme-dark .ql-toolbar.ql-snow .ql-formats .ql-picker-options .ql-picker-item::before {
  filter: brightness(0) invert(1) !important;
}

/* Estilos específicos para botones del toolbar en modo oscuro */
html.theme-dark .ql-toolbar.ql-snow .ql-formats button {
  color: var(--text) !important;
}

html.theme-dark .ql-toolbar.ql-snow .ql-formats button:hover {
  background: var(--hover) !important;
}

/* Fuente Source Code Pro para el editor QuillJS */
.ql-editor {
  font-family: 'Source Code Pro', monospace !important;
  font-size: 1.125rem;
  line-height: 1.5;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Main content without right sidebar */
.main-content {
  margin-right: 0;
}

/* ===== EXPORT DIALOG ===== */
.export-dialog {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(2px);
}

.export-dialog-content {
  background: var(--bg);
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
}

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

.export-dialog-header h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 600;
}

.export-tabs-container {
  padding: 0 1.5rem;
  border-bottom: 1px solid var(--border);
}

.export-tabs {
  display: flex;
  gap: 0;
}

.export-tab {
  background: none;
  border: none;
  padding: 1rem 1.5rem;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.export-tab:hover {
  color: var(--text);
  background: rgba(0, 0, 0, 0.05);
}

html.theme-dark .export-tab:hover {
  background: rgba(255, 255, 255, 0.05);
}

.export-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.export-tab-content {
  display: none;
  padding: 1.5rem;
}

.export-tab-content.active {
  display: block;
}

.export-section h4 {
  margin: 0 0 0.5rem 0;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 600;
}

.export-description {
  margin: 0 0 1.5rem 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.export-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.export-option-btn {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.export-option-btn:hover {
  background: var(--lightgray);
  border-color: var(--accent);
  transform: translateY(-1px);
}

html.theme-dark .export-option-btn:hover {
  background: var(--lightgray);
}

.export-option-btn i {
  font-size: 1.5rem;
  color: var(--accent);
}

.export-option-btn span {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
}

.export-option-btn small {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.3;
}

/* Dark mode adjustments for export dialog */
html.theme-dark .export-dialog {
  background: rgba(0, 0, 0, 0.7);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .sidebar {
    width: 100%;
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
  }

  .header {
    padding: 0 1rem;
  }

  .editor-container {
    padding: 1rem;
  }

  .text-cleaner-sidebar {
    width: 100%;
    right: -100%;
  }

  .text-cleaner-sidebar.open {
    right: 0;
  }

  .export-dialog-content {
    width: 95%;
    margin: 1rem;
  }

  .export-options {
    grid-template-columns: 1fr;
  }

  .export-tabs {
    flex-direction: column;
  }

  .export-tab {
    border-bottom: none;
    border-right: 2px solid transparent;
  }

  .export-tab.active {
    border-right-color: var(--accent);
    border-bottom-color: transparent;
  }

  .tabs {
    flex-wrap: wrap;
  }

  .tab {
    flex: 1 1 50%;
    min-width: 120px;
  }
}

/* ===== DROPDOWN MENUS ===== */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
  padding: 6px;
  min-width: 180px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, visibility 0.15s ease;
  top: 100%;
  right: 0;
}

.dropdown-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  transition: background 0.15s;
}

.dropdown-menu button:hover {
  background: var(--lightgray);
}

/* Cambio de color de iconos en hover para dropdown buttons */
.dropdown-menu button:hover i,
.dropdown-menu button:hover svg {
  color: var(--accent);
}

/* Specific styles for Google icon (filled icon) */
.dropdown-menu button:hover svg.icons-tabler-filled path:not([stroke="none"]) {
  fill: var(--accent);
  stroke: var(--accent);
}

/* Keep the background path transparent for Google icon */
.dropdown-menu button:hover svg.icons-tabler-filled path[stroke="none"] {
  fill: none;
}

/* Specific override for outline icons in dropdown */
.dropdown-menu button:hover svg.icons-tabler-outline path {
  stroke: var(--accent);
  fill: none !important;
  background-color: var(--bg);
  /* Prevent border-like effects from fill on outline icons */
}

/* Prevent any outline or border effects on dropdown SVG elements */
.dropdown-menu button svg,
.dropdown-menu button svg * {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}

.dropdown-menu button.danger {
  color: #dc3545;
}

.dropdown-menu button.danger:hover {
  background: rgba(220, 53, 69, 0.1);
}

.dropdown-menu hr {
  border: none;
  /* border-top: 1px solid var(--border); */
  margin: 4px 0;
  height: 1px;
  background: var(--border);
}

/* Menu section title styles */
.dropdown-menu .menu-section-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 10px 4px 10px;
  margin: 4px 0 2px 0;
}

/* Active theme button styles */
.dropdown-menu button.active {
  background: var(--accent);
  color: white;
}

.dropdown-menu button.active:hover {
  background: var(--accent);
  opacity: 0.9;
}

.dropdown-menu button.active i,
.dropdown-menu button.active svg {
  color: white !important;
}

html.theme-dark .dropdown-menu button:hover {
  background: var(--lightgray);
}

/* Cambio de color de iconos en hover para dropdown buttons en tema oscuro */
html.theme-dark .dropdown-menu button:hover i,
html.theme-dark .dropdown-menu button:hover svg {
  color: var(--accent);
}

/* Specific styles for Google icon (filled icon) - dark theme */
html.theme-dark .dropdown-menu button:hover svg.icons-tabler-filled path:not([stroke="none"]) {
  fill: var(--accent);
  stroke: var(--accent);
}

/* Keep the background path transparent for Google icon - dark theme */
html.theme-dark .dropdown-menu button:hover svg.icons-tabler-filled path[stroke="none"] {
  fill: none;
}

/* Specific override for outline icons in dropdown - dark theme */
html.theme-dark .dropdown-menu button:hover svg.icons-tabler-outline path {
  stroke: var(--accent);
  fill: none !important;
  /* Prevent border-like effects from fill on outline icons */
}

/* Prevent any outline or border effects on dropdown SVG elements - dark theme */
html.theme-dark .dropdown-menu button svg,
html.theme-dark .dropdown-menu button svg * {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}

html.theme-dark .dropdown-menu button.danger:hover {
  background: rgba(255, 107, 107, 0.15);
}

/* ===== FOOTER ===== */

/* ===== CONFIRMATION DIALOG ===== */
.confirmation-dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(2px);
}

.confirmation-dialog {
  background: var(--bg);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  max-width: 400px;
  width: 90%;
  overflow: hidden;
  border: 1px solid var(--border);
}

.confirmation-header {
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid var(--border);
}

.confirmation-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}

.confirmation-body {
  padding: 1rem 1.5rem;
}

.confirmation-body p {
  margin: 0 0 0.75rem;
  color: var(--text);
  line-height: 1.5;
}

.confirmation-body p:last-child {
  margin-bottom: 0;
}

.confirmation-body strong {
  color: var(--danger);
}

.confirmation-actions {
  padding: 1rem 1.5rem 1.5rem;
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.confirmation-actions button {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: none;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 80px;
}

.btn-cancel {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-cancel:hover {
  background: var(--lightgray);
  border-color: var(--muted);
}

.btn-confirm {
  background: var(--danger);
  color: white;
  border: 1px solid var(--danger);
}

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

/* Settings menu in footer should open upwards */
.footer .dropdown-menu {
  top: auto;
  bottom: 100%;
  left: 0;
  right: auto;
  transform: translateY(4px);
}

.footer .dropdown-menu.open {
  transform: translateY(0);
}

/* ===== SUPPORT DIALOG ===== */

.support-dialog {
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

.support-dialog .dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.support-dialog .dialog-header h2 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
}

.support-dialog .dialog-header h2 svg {
  color: var(--accent);
  stroke: var(--accent);
}

.support-dialog .dialog-close {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.support-dialog .dialog-close:hover {
  background: var(--lightgray);
  color: var(--text);
}

.support-dialog .dialog-body {
  padding: 0;
}

.support-content {
  padding: 1.5rem;
}

.support-description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  margin: 0 0 2rem 0;
  text-align: center;
}

.support-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.support-link {
  display: flex;
  align-items: center;
  padding: 12px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s ease;
  gap: 12px;
}

.support-link:hover {
  background: var(--lightgray);
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

html.theme-dark .support-link:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.support-link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: white;
  border-radius: 8px;
  font-size: 20px;
  flex-shrink: 0;
}

.support-link-content {
  flex: 1;
}

.support-link-content h3 {
  margin: 0 0 4px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.support-link-content p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4;
}

.support-link-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.support-link:hover .support-link-arrow {
  color: var(--accent);
  transform: translateX(4px);
}

/* Tabler Icons size standardization */
.ti {
  font-size: 20px;
  width: 20px;
  height: 20px;
}

/* Responsive adjustments for support dialog */
@media (max-width: 768px) {
  .support-dialog {
    width: 95%;
    max-height: 90vh;
  }

  .support-content {
    padding: 1rem;
  }

  .support-dialog .dialog-header {
    padding: 1rem;
  }

  .support-link {
    padding: 0.75rem;
  }

  .support-link-icon {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

  .support-link-content h3 {
    font-size: 1rem;
  }

  .support-link-content p {
    font-size: 0.85rem;
  }
}

.counters {
  padding: 10px 20px;
  /* border-top: 1px solid var(--border); */
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  gap: 15px;
}

.editor-header {
  padding: 15px 20px;
  /* border-bottom: 1px solid var(--border); */
  display: flex;
  align-items: center;
  gap: 10px;
}

.note-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-top: 0;
  border-radius: 10px;
  ;
  cursor: pointer;
}

.note-item:hover {
  background: rgba(0, 0, 0, 0.04);
}

html.theme-dark .note-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.note-item.active {
  background: rgba(239, 79, 35, 0.10);
}

.note {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-top: 0;
  cursor: pointer;
}

.note:hover {
  background: rgba(0, 0, 0, 0.04);
}

html.theme-dark .note:hover {
  background: rgba(255, 255, 255, 0.04);
}

.note.active {
  background: rgba(239, 79, 35, 0.10);
}

.note-header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  /* Permite que el flex item se encoja */
}

.note-title {
  flex: 1;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  /* Permite que el texto se trunque correctamente */
}

.note-preview {
  font-size: 12px;
  color: var(--muted);
  margin-left: 8px;
}

.note-timestamps {
  padding: 4px 0;
}

.note-date {
  font-size: 11px;
  color: var(--muted);
  margin: 2px 0;
}

/* Estilos para timestamps en línea */
.note-timestamps-inline {
  padding: 4px 16px;
  text-align: right;
  font-size: 10px;
  color: var(--muted);
  opacity: 0.7;
  /* border-bottom: 1px solid var(--border); */
}

.note-date-inline {
  font-size: inherit;
  color: inherit;
}

.note-date-separator {
  margin: 0 4px;
  opacity: 0.5;
}

.note .dropdown {
  opacity: 0;
  transition: opacity 0.2s;
}

.note:hover .dropdown {
  opacity: 1;
}

/* ===== EDITOR ===== */
.editor {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.editor-head {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  /* border-bottom: 1px solid var(--border); */
}

.title-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font: 700 20px/1.2 inherit;
  color: var(--text);
  padding: 6px 8px;
  border-radius: 10px;
}

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







/* ===== FOOTER ===== */
.footer {
  padding: 10px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* border-top: 1px solid var(--border); */
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  z-index: 10000;
  padding: 1rem;
  animation: slideUp 0.2s ease-out;
  transition: transform 0.2s ease-out, opacity 0.2s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    transform: translateY(0);
    opacity: 1;
  }

  to {
    transform: translateY(100%);
    opacity: 0;
  }
}

.cookie-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-banner-text {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 300px;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.5;
}

.cookie-banner-buttons {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  border: 1px solid transparent !important;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
  box-sizing: border-box;
  min-height: 40px;
  font-family: inherit;
  outline: none;
}

.cookie-btn:focus,
.cookie-btn:focus-visible,
.cookie-btn:active {
  border: 1px solid transparent !important;
  outline: none !important;
  box-shadow: none !important;
}

.cookie-btn-accept {
  background: var(--text) !important;
  color: white !important;
  border-color: var(--primary) !important;
}

.cookie-btn-accept:hover {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  transform: translateY(-1px);
}

.cookie-btn-accept:focus,
.cookie-btn-accept:focus-visible,
.cookie-btn-accept:active {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
}

.cookie-btn-decline {
  background: transparent !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}

.cookie-btn-decline:hover {
  background: var(--hover) !important;
  border-color: var(--text) !important;
}

.cookie-btn-decline:focus,
.cookie-btn-decline:focus-visible,
.cookie-btn-decline:active {
  background: var(--hover) !important;
  border-color: var(--text) !important;
}

/* Responsive design para móviles */
@media (max-width: 768px) {
  .editor-body {
    max-width: none !important;
    min-width: auto !important;
    width: 100% !important;
    margin: 0 !important;
  }

  .cookie-banner {
    padding: 1rem 0.75rem;
  }

  .cookie-banner-content {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .cookie-banner-text {
    min-width: auto;
    text-align: center;
  }

  .cookie-banner-buttons {
    justify-content: center;
  }

  .cookie-btn {
    flex: 1;
    justify-content: center;
  }
}

/* Adaptación para tema claro y oscuro */
html.theme-light .cookie-banner {
  background: var(--bg);
  border-top-color: var(--border);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

html.theme-light .cookie-banner-text {
  color: var(--text);
}

html.theme-light .cookie-btn-accept {
  background: #000000 !important;
  color: white !important;
  border-color: #000000 !important;
}

html.theme-light .cookie-btn-accept:hover {
  background: #333333 !important;
  border-color: #333333 !important;
}

html.theme-light .cookie-btn-accept:focus,
html.theme-light .cookie-btn-accept:focus-visible,
html.theme-light .cookie-btn-accept:active {
  background: #333333 !important;
  border-color: #333333 !important;
}

html.theme-light .cookie-btn-decline {
  background: transparent !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}

html.theme-dark .cookie-banner {
  background: var(--bg);
  border-top-color: var(--border);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

html.theme-dark .cookie-banner-text {
  color: var(--text);
}

html.theme-dark .cookie-btn-accept {
  background: var(--primary) !important;
  color: white !important;
  border-color: var(--primary) !important;
}

html.theme-dark .cookie-btn-decline {
  background: transparent !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}

/* ===== TEXT CLEANER INFO DIALOG STYLES ===== */
.tool-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tool-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem;
  background: var(--panel);
  border-radius: 6px;
  border: 1px solid var(--border);
}

.feature-section {
  margin-bottom: 1.5rem;
}

.feature-section:last-child {
  margin-bottom: 0;
}

.export-tabs-container {
  padding: 0 1.5rem;
  border-bottom: 1px solid var(--border);
}

.export-tabs {
  display: flex;
  gap: 0;
}

.export-tab {
  background: none;
  border: none;
  padding: 1rem 1.5rem;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.export-tab:hover {
  color: var(--text);
  background: rgba(0, 0, 0, 0.05);
}

html.theme-dark .export-tab:hover {
  background: rgba(255, 255, 255, 0.05);
}

.export-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.export-tab-content {
  display: none;
  padding: 1.5rem;
}

.export-tab-content.active {
  display: block;
}

.export-section h4 {
  margin: 0 0 0.5rem 0;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 600;
}

.export-description {
  margin: 0 0 1.5rem 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.export-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.export-option-btn {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.export-option-btn:hover {
  background: var(--lightgray);
  border-color: var(--accent);
  transform: translateY(-2px);
}

html.theme-dark .export-option-btn:hover {
  background: var(--lightgray);
}

.export-option-btn i {
  font-size: 1.5rem;
  color: var(--accent);
}

.export-option-btn span {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
}

.export-option-btn small {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.3;
}

/* Dark mode adjustments for export dialog */
html.theme-dark .export-dialog {
  background: rgba(0, 0, 0, 0.7);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .sidebar {
    width: 100%;
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
    margin-right: 0 !important;
    padding: 0 1rem;
  }

  .header {
    padding: 0 1rem;
  }

  .editor-container {
    padding: 1rem;
  }

  .text-cleaner-sidebar {
    width: 100%;
    right: -100%;
  }

  .text-cleaner-sidebar.open {
    right: 0;
  }

  .export-dialog-content {
    width: 95%;
    margin: 1rem;
  }

  .export-options {
    grid-template-columns: 1fr;
  }

  .export-tabs {
    flex-direction: column;
  }

  .export-tab {
    border-bottom: none;
    border-right: 2px solid transparent;
  }

  .export-tab.active {
    border-right-color: var(--accent);
    border-bottom-color: transparent;
  }

  .tabs {
    flex-wrap: wrap;
  }

  .tab {
    flex: 1 1 50%;
    min-width: 120px;
  }
}

/* ===== DROPDOWN MENUS ===== */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
  padding: 6px;
  min-width: 180px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all 0.15s ease;
  top: 100%;
  right: 0;
}

.dropdown-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  transition: background 0.15s;
}

.dropdown-menu button:hover {
  background: var(--lightgray);
}

/* Cambio de color de iconos en hover para dropdown buttons */
.dropdown-menu button:hover i,
.dropdown-menu button:hover svg {
  color: var(--accent);
}

/* Specific styles for Google icon (filled icon) */
.dropdown-menu button:hover svg.icons-tabler-filled path:not([stroke="none"]) {
  fill: var(--accent);
  stroke: var(--accent);
}

/* Keep the background path transparent for Google icon */
.dropdown-menu button:hover svg.icons-tabler-filled path[stroke="none"] {
  fill: none;
}

/* Specific override for outline icons in dropdown */
.dropdown-menu button:hover svg.icons-tabler-outline path {
  stroke: var(--accent);
  fill: none !important;
  /* Prevent border-like effects from fill on outline icons */
}

/* Prevent any outline or border effects on dropdown SVG elements */
.dropdown-menu button svg,
.dropdown-menu button svg * {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}

.dropdown-menu button.danger {
  color: #dc3545;
}

.dropdown-menu button.danger:hover {
  background: rgba(220, 53, 69, 0.1);
}

.dropdown-menu hr {
  border: none;
  /* border-top: 1px solid var(--border); */
  margin: 4px 0;
  height: 1px;
  background: var(--border);
}

html.theme-dark .dropdown-menu button:hover {
  background: var(--lightgray);
}

/* Cambio de color de iconos en hover para dropdown buttons en tema oscuro */
html.theme-dark .dropdown-menu button:hover i,
html.theme-dark .dropdown-menu button:hover svg {
  color: var(--accent);
}

/* Specific styles for Google icon (filled icon) - dark theme */
html.theme-dark .dropdown-menu button:hover svg.icons-tabler-filled path:not([stroke="none"]) {
  fill: var(--accent);
  stroke: var(--accent);
}

/* Keep the background path transparent for Google icon - dark theme */
html.theme-dark .dropdown-menu button:hover svg.icons-tabler-filled path[stroke="none"] {
  fill: none;
}

/* Specific override for outline icons in dropdown - dark theme */
html.theme-dark .dropdown-menu button:hover svg.icons-tabler-outline path {
  stroke: var(--accent);
  fill: none !important;
  /* Prevent border-like effects from fill on outline icons */
}

/* Prevent any outline or border effects on dropdown SVG elements - dark theme */
html.theme-dark .dropdown-menu button svg,
html.theme-dark .dropdown-menu button svg * {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}

html.theme-dark .dropdown-menu button.danger:hover {
  background: rgba(255, 107, 107, 0.15);
}

/* ===== FOOTER ===== */

/* ===== CONFIRMATION DIALOG ===== */
.confirmation-dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(4px);
}

.confirmation-dialog {
  background: var(--bg);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  max-width: 400px;
  width: 90%;
  overflow: hidden;
  border: 1px solid var(--border);
}

.confirmation-header {
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid var(--border);
}

.confirmation-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}

.confirmation-body {
  padding: 1rem 1.5rem;
}

.confirmation-body p {
  margin: 0 0 0.75rem;
  color: var(--text);
  line-height: 1.5;
}

.confirmation-body p:last-child {
  margin-bottom: 0;
}

.confirmation-body strong {
  color: var(--danger);
}

.confirmation-actions {
  padding: 1rem 1.5rem 1.5rem;
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.confirmation-actions button {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: none;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 80px;
}

.btn-cancel {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-cancel:hover {
  background: var(--lightgray);
  border-color: var(--muted);
}

.btn-confirm {
  background: var(--danger);
  color: white;
  border: 1px solid var(--danger);
}

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

/* Settings menu in footer should open upwards */
.footer .dropdown-menu {
  top: auto;
  bottom: 100%;
  left: 0;
  right: auto;
  transform: translateY(4px);
}

.footer .dropdown-menu.open {
  transform: translateY(0);
}

/* ===== SUPPORT DIALOG ===== */

.support-dialog {
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

.support-dialog .dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.support-dialog .dialog-header h2 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
}

.support-dialog .dialog-header h2 svg {
  color: var(--accent);
  stroke: var(--accent);
}

.support-dialog .dialog-close {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.support-dialog .dialog-close:hover {
  background: var(--lightgray);
  color: var(--text);
}

.support-dialog .dialog-body {
  padding: 0;
}

.support-content {
  padding: 1.5rem;
}

.support-description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  margin: 0 0 2rem 0;
  text-align: center;
}

.support-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.support-link {
  display: flex;
  align-items: center;
  padding: 12px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s ease;
  gap: 12px;
}

.support-link:hover {
  background: var(--lightgray);
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

html.theme-dark .support-link:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.support-link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: white;
  border-radius: 8px;
  font-size: 20px;
  flex-shrink: 0;
}

.support-link-content {
  flex: 1;
}

.support-link-content h3 {
  margin: 0 0 4px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.support-link-content p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4;
}

.support-link-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.support-link:hover .support-link-arrow {
  color: var(--accent);
  transform: translateX(4px);
}

/* Tabler Icons size standardization */
.ti {
  font-size: 20px;
  width: 20px;
  height: 20px;
}

/* Responsive adjustments for support dialog */
@media (max-width: 768px) {
  .support-dialog {
    width: 95%;
    max-height: 90vh;
  }

  .support-content {
    padding: 1rem;
  }

  .support-dialog .dialog-header {
    padding: 1rem;
  }

  .support-link {
    padding: 0.75rem;
  }

  .support-link-icon {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

  .support-link-content h3 {
    font-size: 1rem;
  }

  .support-link-content p {
    font-size: 0.85rem;
  }
}

.counters {
  padding: 10px 20px;
  /* border-top: 1px solid var(--border); */
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  gap: 15px;
}

.editor-header {
  padding: 15px 20px;
  /* border-bottom: 1px solid var(--border); */
  display: flex;
  align-items: center;
  gap: 10px;
}

.note-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-top: 0;
  cursor: pointer;
}

.note-item:hover {
  background: rgba(0, 0, 0, 0.04);
}

html.theme-dark .note-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.note-item.active {
  background: rgba(239, 79, 35, 0.10);
}

.note {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-top: 0;
  cursor: pointer;
}

.note:hover {
  background: rgba(0, 0, 0, 0.04);
}

html.theme-dark .note:hover {
  background: rgba(255, 255, 255, 0.04);
}

.note.active {
  background: rgba(239, 79, 35, 0.10);
}

.note-header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  /* Permite que el flex item se encoja */
}

.note-title {
  flex: 1;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  /* Permite que el texto se trunque correctamente */
}

.note-preview {
  font-size: 12px;
  color: var(--muted);
  margin-left: 8px;
}

.note-timestamps {
  padding: 4px 0;
}

.note-date {
  font-size: 11px;
  color: var(--muted);
  margin: 2px 0;
}

/* Estilos para timestamps en línea */
.note-timestamps-inline {
  padding: 4px 16px;
  text-align: right;
  font-size: 10px;
  color: var(--muted);
  opacity: 0.7;
  /* border-bottom: 1px solid var(--border); */
}

.note-date-inline {
  font-size: inherit;
  color: inherit;
}

.note-date-separator {
  margin: 0 4px;
  opacity: 0.5;
}

.note .dropdown {
  opacity: 0;
  transition: opacity 0.2s;
}

.note:hover .dropdown {
  opacity: 1;
}

/* ===== EDITOR ===== */
.editor {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.editor-head {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  /* border-bottom: 1px solid var(--border); */
}

.title-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font: 700 20px/1.2 inherit;
  color: var(--text);
  padding: 6px 8px;
  border-radius: 10px;
}

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







/* ===== FOOTER ===== */
.footer {
  padding: 10px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* border-top: 1px solid var(--border); */
}
