* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Light Theme Colors */
  --primary-color: #3498db;
  --primary-dark: #2980b9;
  --secondary-color: #95a5a6;
  --danger-color: #e74c3c;
  --success-color: #27ae60;
  --light-bg: #ecf0f1;
  --dark-bg: #2c3e50;
  --white: #ffffff;
  --text-dark: #2c3e50;
  --text-light: #95a5a6;
  --border-color: #bdc3c7;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.2);
  
  /* Editor colors */
  --editor-bg: #ffffff;
  --editor-text: #2c3e50;
  --toolbar-bg: #2c3e50;
  --toolbar-text: #ffffff;
}

/* Dark Mode Colors */
body.dark-mode {
  --light-bg: #1a1a1a;
  --dark-bg: #0d1117;
  --white: #0d1117;
  --text-dark: #e6edf3;
  --text-light: #8b949e;
  --border-color: #30363d;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.6);
  --editor-bg: #161b22;
  --editor-text: #e6edf3;
  --toolbar-bg: #0d1117;
  --toolbar-text: #e6edf3;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--light-bg);
  color: var(--text-dark);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ===================================
   ACCESSIBILITY TOOLBAR
   =================================== */

.accessibility-toolbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--dark-bg);
  border-bottom: 2px solid var(--primary-color);
  padding: 0.75rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  box-shadow: var(--shadow);
}

.toolbar-section {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toolbar-btn {
  padding: 0.5rem 1rem;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--white);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.toolbar-btn:hover:not(:disabled) {
  background-color: var(--primary-color);
  transform: translateY(-2px);
}

.toolbar-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.toolbar-btn.active {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.toolbar-select {
  padding: 0.5rem;
  background-color: var(--editor-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-dark);
  font-size: 0.9rem;
  cursor: pointer;
}

.toolbar-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* ===================================
   MODAL STYLES
   =================================== */

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  backdrop-filter: blur(4px);
}

.modal.hidden {
  display: none;
}

.modal-content {
  background-color: var(--white);
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  color: var(--text-dark);
  font-size: 1.5rem;
  margin: 0;
}

.close-btn {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-light);
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
}

.close-btn:hover {
  color: var(--danger-color);
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

/* App Container */
.app-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Auth Container */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.auth-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
}

.auth-card h1 {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 2rem;
  font-size: 2rem;
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
}

.auth-form h2 {
  margin-bottom: 1.5rem;
  color: var(--text-dark);
  font-size: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-dark);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s;
  background-color: var(--editor-bg);
  color: var(--text-dark);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.auth-switch {
  text-align: center;
  margin-top: 1rem;
  color: var(--text-light);
}

.auth-switch a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.auth-switch a:hover {
  text-decoration: underline;
}

.error-message {
  color: var(--danger-color);
  font-size: 0.875rem;
  margin-top: 0.5rem;
  padding: 0.5rem;
  background-color: rgba(231, 76, 60, 0.1);
  border-left: 3px solid var(--danger-color);
  border-radius: 3px;
  display: none;
}

.error-message.show {
  display: block;
}

/* Buttons */
.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-block;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: #7f8c8d;
}

.btn-danger {
  background-color: var(--danger-color);
  color: var(--white);
}

.btn-danger:hover {
  background-color: #c0392b;
}

.btn-full {
  width: 100%;
  margin-bottom: 1rem;
}

/* App Main */
.app-main {
  display: flex;
  flex: 1;
  height: calc(100vh - 60px);
  overflow: hidden;
}

.app-main.hidden {
  display: none;
}

/* Sidebar */
.sidebar {
  width: 280px;
  background-color: var(--dark-bg);
  color: var(--white);
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border-color);
  overflow-y: auto;
}

.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar-header h1 {
  font-size: 1.5rem;
  margin: 0;
}

.sidebar-header .btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.sidebar-user {
  padding: 1rem 1.5rem;
  background-color: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-user p {
  font-size: 0.9rem;
  margin: 0;
}

.btn-full {
  margin: 1rem;
}

.notes-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem;
}

.note-item {
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-left: 3px solid var(--primary-color);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.note-item:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-left-color: var(--primary-color);
  padding-left: 1.25rem;
}

.note-item.active {
  background-color: var(--primary-color);
  border-left-color: var(--white);
}

.note-item-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.note-item-preview {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Main Content */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: var(--editor-bg);
  overflow: hidden;
}

.empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.empty-state.hidden {
  display: none;
}

.empty-state-content {
  text-align: center;
}

.empty-state-content h2 {
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.empty-state-content p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

/* Editor */
.editor {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: var(--editor-bg);
}

.editor.hidden {
  display: none;
}

.editor-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background-color: var(--editor-bg);
}

.note-title-input {
  flex: 1;
  font-size: 1.5rem;
  font-weight: 600;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.5rem 0;
  color: var(--text-dark);
  transition: border-color 0.3s;
  background-color: transparent;
}

.note-title-input:focus {
  outline: none;
  border-bottom-color: var(--primary-color);
}

.editor-actions {
  display: flex;
  gap: 0.5rem;
}

.editor-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 1.5rem;
  background-color: var(--editor-bg);
}

.note-content-input {
  flex: 1;
  border: none;
  padding: 0;
  resize: none;
  font-size: 1rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark);
}

.note-content-input:focus {
  outline: none;
}

.char-count {
  margin-top: 0.5rem;
  text-align: right;
  color: var(--text-light);
  font-size: 0.875rem;
}

/* Speech Controls */
.speech-controls {
  background: var(--editor-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

.control-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.control-header h3 {
  color: var(--text-dark);
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #6c757d;
  display: inline-block;
}

.status-dot.loading { background: #ffc107; animation: pulse 1.5s ease-in-out infinite; }
.status-dot.ready { background: #28a745; }
.status-dot.recording { background: #dc3545; animation: pulse 1s ease-in-out infinite; }
.status-dot.error { background: #e74c3c; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.model-selector {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.model-selector select {
  flex: 1;
  padding: 8px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background-color: var(--editor-bg);
  color: var(--text-dark);
}

.model-selector button {
  padding: 8px 16px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.model-selector button:hover:not(:disabled) {
  background: var(--primary-dark);
}

.model-selector button:disabled {
  background: #6c757d;
  cursor: not-allowed;
}

.recognition-controls button {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #28a745;
  color: white;
}

.recognition-controls button:hover:not(:disabled) {
  background: #218838;
}

.recognition-controls button:disabled {
  background: #6c757d;
  cursor: not-allowed;
}

.recognition-controls button.recording {
  background: #dc3545;
}

.recognition-controls button.recording:hover {
  background: #c82333;
}

.status-message {
  margin-top: 12px;
  padding: 8px;
  border-radius: 4px;
  font-size: 14px;
  background: var(--editor-bg);
  color: var(--text-dark);
  border: 1px solid var(--border-color);
}

.status-message.error {
  background: #f8d7da;
  color: #721c24;
  border-color: var(--danger-color);
}

.status-message.success {
  background: #d4edda;
  color: #155724;
  border-color: var(--success-color);
}

.partial-result {
  margin-top: 8px;
  padding: 8px;
  background: var(--editor-bg);
  border: 1px dashed var(--border-color);
  border-radius: 4px;
  font-style: italic;
  color: var(--text-light);
  min-height: 40px;
}

/* ===================================
   RICH TEXT EDITOR STYLES
   =================================== */

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 10px;
  background: var(--toolbar-bg);
  border-bottom: 1px solid var(--border-color);
  border-radius: 8px 8px 0 0;
  margin-bottom: 0;
}

.format-btn {
  padding: 6px 12px;
  background: var(--light-bg);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-dark);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.format-btn:hover {
  background: var(--secondary-color);
  color: var(--white);
  border-color: var(--secondary-color);
}

.format-btn:active,
.format-btn.active {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

.toolbar-divider {
  width: 1px;
  background: var(--border-color);
  margin: 0 4px;
}

.note-content-input[contenteditable="true"] {
  min-height: 300px;
  max-height: calc(100vh - 400px);
  overflow-y: auto;
  padding: 15px;
  background: var(--editor-bg);
  border: 1px solid var(--border-color);
  border-radius: 0 0 8px 8px;
  color: var(--editor-text);
  font-size: 16px;
  line-height: 1.6;
  outline: none;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.note-content-input[contenteditable="true"]:empty:before {
  content: attr(data-placeholder);
  color: var(--text-light);
  opacity: 0.6;
  pointer-events: none;
}

.note-content-input[contenteditable="true"]:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.note-content-input[contenteditable="true"] h1 {
  font-size: 2em;
  font-weight: bold;
  margin: 0.67em 0;
}

.note-content-input[contenteditable="true"] h2 {
  font-size: 1.5em;
  font-weight: bold;
  margin: 0.75em 0;
}

.note-content-input[contenteditable="true"] h3 {
  font-size: 1.17em;
  font-weight: bold;
  margin: 1em 0;
}

.note-content-input[contenteditable="true"] p {
  margin: 0.5em 0;
}

.note-content-input[contenteditable="true"] strong,
.note-content-input[contenteditable="true"] b {
  font-weight: bold;
}

.note-content-input[contenteditable="true"] em,
.note-content-input[contenteditable="true"] i {
  font-style: italic;
}

.note-content-input[contenteditable="true"] u {
  text-decoration: underline;
}

.note-content-input[contenteditable="true"] ul,
.note-content-input[contenteditable="true"] ol {
  margin: 1em 0;
  padding-left: 40px;
}

.note-content-input[contenteditable="true"] a {
  color: var(--primary-color);
  text-decoration: underline;
}

.note-content-input[contenteditable="true"] a:hover {
  color: var(--primary-dark);
}

#charCounter {
  font-weight: 600;
  color: var(--text-dark);
}

/* Responsive */
@media (max-width: 768px) {
  .accessibility-toolbar {
    padding: 0.5rem;
  }
  
  .toolbar-section {
    flex-wrap: wrap;
  }
  
  .app-main {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    max-height: 150px;
    flex-direction: row;
    overflow-x: auto;
    padding: 0;
  }

  .sidebar-header {
    min-width: max-content;
  }

  .notes-list {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem;
  }

  .note-item {
    min-width: 150px;
  }

  .auth-card {
    max-width: 90%;
  }

  .editor-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .editor-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .btn {
    flex: 1;
    min-width: 80px;
  }
}

/* Scrollbar Styling */
.sidebar::-webkit-scrollbar,
.notes-list::-webkit-scrollbar,
.note-content-input::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.sidebar::-webkit-scrollbar-track,
.notes-list::-webkit-scrollbar-track,
.note-content-input::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

.sidebar::-webkit-scrollbar-thumb,
.notes-list::-webkit-scrollbar-thumb,
.note-content-input::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb:hover,
.notes-list::-webkit-scrollbar-thumb:hover,
.note-content-input::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* Focus visible for accessibility */
*:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --border-color: #000000;
  }
  
  body.dark-mode {
    --border-color: #ffffff;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/* ==========================================
   ACCESSIBILITY FEATURES CSS
   Add this to the END of your styles.css file
   ========================================== */

/* Accessibility Toggle Button (Floating) */
.accessibility-toggle-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  border: none;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: all 0.3s ease;
}

.accessibility-toggle-btn:hover {
  background: var(--primary-dark);
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* Accessibility Panel */
.accessibility-panel {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  width: 320px;
  max-height: 80vh;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  z-index: 999;
  overflow: hidden;
  transition: opacity 0.3s, transform 0.3s;
}

.accessibility-panel.hidden {
  opacity: 0;
  transform: translateY(-50%) scale(0.9);
  pointer-events: none;
}

.accessibility-panel-header {
  background: var(--primary-color);
  color: white;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accessibility-panel-header h3 {
  margin: 0;
  font-size: 1.2rem;
}

.panel-close-btn {
  background: transparent;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.panel-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.accessibility-panel-body {
  padding: 1rem;
  max-height: calc(80vh - 60px);
  overflow-y: auto;
}

/* Accessibility Controls */
.accessibility-control {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.accessibility-control:last-child {
  border-bottom: none;
}

.accessibility-control > label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.accessibility-control .btn {
  width: 100%;
  margin-top: 0.5rem;
}

/* TTS Controls */
.tts-controls {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tts-controls select {
  padding: 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 0.9rem;
}

#tts-btn.speaking {
  background: var(--danger-color);
}

/* Zoom Controls */
.zoom-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.zoom-controls button {
  width: auto;
  min-width: 40px;
  padding: 0.5rem;
}

.zoom-controls input[type="range"] {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: var(--border-color);
  outline: none;
  -webkit-appearance: none;
}

.zoom-controls input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary-color);
  cursor: pointer;
}

.zoom-controls input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary-color);
  cursor: pointer;
  border: none;
}

#zoom-level-display {
  font-weight: 700;
  color: var(--primary-color);
}

/* Magnifier Active State */
#magnifier-btn.active {
  background: var(--success-color);
  color: white;
}

/* Keyboard Shortcuts */
.keyboard-shortcuts {
  margin-top: 0.5rem;
}

.keyboard-shortcuts summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.5rem;
  background: var(--light-bg);
  border-radius: 4px;
  user-select: none;
}

.keyboard-shortcuts summary:hover {
  background: var(--border-color);
}

.keyboard-shortcuts ul {
  list-style: none;
  padding: 0.5rem 0 0 0;
  margin: 0;
}

.keyboard-shortcuts li {
  padding: 0.25rem 0;
  font-size: 0.9rem;
}

.keyboard-shortcuts kbd {
  display: inline-block;
  padding: 0.2rem 0.4rem;
  background: var(--dark-bg);
  color: white;
  border-radius: 3px;
  font-family: monospace;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ==========================================
   DARK MODE STYLES
   ========================================== */

.dark-mode {
  --light-bg: #1a1a1a;
  --white: #2c2c2c;
  --text-dark: #e0e0e0;
  --text-light: #b0b0b0;
  --border-color: #444;
  --dark-bg: #0d0d0d;
}

.dark-mode body {
  background: #1a1a1a;
  color: #e0e0e0;
}

.dark-mode .auth-container {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
}

.dark-mode .auth-card {
  background: #2c2c2c;
  color: #e0e0e0;
}

.dark-mode .sidebar {
  background: #0d0d0d;
  border-right-color: #444;
}

.dark-mode .main-content {
  background: #1a1a1a;
}

.dark-mode .editor {
  background: #1a1a1a;
}

.dark-mode .note-content-input {
  background: #2c2c2c;
  color: #e0e0e0;
  border-color: #444;
}

.dark-mode .note-title-input {
  background: #2c2c2c;
  color: #e0e0e0;
  border-color: #444;
}

.dark-mode .editor-toolbar {
  background: #0d0d0d;
  border-color: #444;
}

.dark-mode .format-btn {
  background: #2c2c2c;
  color: #e0e0e0;
  border-color: #444;
}

.dark-mode .format-btn:hover {
  background: var(--secondary-color);
}

.dark-mode .accessibility-panel {
  background: #2c2c2c;
  color: #e0e0e0;
}

.dark-mode .accessibility-control {
  border-color: #444;
}

.dark-mode input,
.dark-mode select,
.dark-mode textarea {
  background: #1a1a1a;
  color: #e0e0e0;
  border-color: #444;
}

.dark-mode .note-item {
  background: rgba(255, 255, 255, 0.05);
}

.dark-mode .note-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ==========================================
   HIGH CONTRAST MODE
   ========================================== */

.high-contrast {
  filter: contrast(1.5);
}

.high-contrast * {
  font-weight: 600;
}

.high-contrast .btn {
  border: 2px solid currentColor;
}

/* ==========================================
   SCREEN MAGNIFIER
   ========================================== */

#screen-magnifier {
  position: fixed;
  width: 450px;
  height: 450px;
  border: 4px solid #2c3e50;
  pointer-events: none;
  z-index: 10000;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.7);
  background: white;
}

/* ==========================================
   RESPONSIVE - ACCESSIBILITY
   ========================================== */

@media (max-width: 768px) {
  .accessibility-panel {
    width: 90%;
    max-width: 320px;
    right: 5%;
  }
  
  .accessibility-toggle-btn {
    bottom: 80px;
    right: 15px;
    width: 50px;
    height: 50px;
    font-size: 24px;
  }
}