.notes-panel {
  position: fixed;
  left: 20px;
  top: 120px;
  width: 320px;
  background: var(--bg-card);
  padding: 1.75rem;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--border);
  backdrop-filter: blur(24px) saturate(180%);
  transition: var(--transition);
  animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.notes-panel:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.notes-panel h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.notes-panel h3::before {
  content: '📝';
  font-size: 1.5rem;
}

.notes-panel textarea {
  width: 100%;
  height: 220px;
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  font-family: inherit;
  font-size: 0.9375rem;
  resize: vertical;
  background: var(--bg-secondary);
  color: var(--text-primary);
  transition: var(--transition);
  line-height: 1.6;
}

.notes-panel textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(196, 168, 124, 0.1);
}

.notes-panel textarea::placeholder {
  color: var(--text-muted);
  font-style: italic;
}

.notes-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.notes-actions button {
  flex: 1;
  padding: 0.75rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  transition: var(--transition);
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(196, 168, 124, 0.3);
}

.notes-actions button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(196, 168, 124, 0.5);
}

.notes-actions button:active {
  transform: translateY(0);
}

.notes-actions button:last-child {
  background: linear-gradient(135deg, var(--text-muted), var(--text-secondary));
}

.timer-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--bg-card);
  padding: 2rem 1.75rem;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--border);
  backdrop-filter: blur(24px) saturate(180%);
  min-width: 240px;
  text-align: center;
  transition: var(--transition);
  animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.timer-widget:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.timer-widget h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.125rem;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.timer-widget h3::before {
  content: '⏱️';
  font-size: 1.25rem;
}

.timer-display {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  font-weight: 300;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  letter-spacing: 0.1em;
  text-shadow: 0 4px 12px rgba(196, 168, 124, 0.2);
  font-variant-numeric: tabular-nums;
}

.timer-controls {
  display: flex;
  gap: 0.625rem;
}

.timer-controls button {
  flex: 1;
  padding: 0.75rem 0.5rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: var(--transition);
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(196, 168, 124, 0.3);
}

.timer-controls button:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(196, 168, 124, 0.5);
}

.timer-controls button:active:not(:disabled) {
  transform: translateY(0);
}

.timer-controls button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.timer-controls button:last-child {
  background: linear-gradient(135deg, var(--text-muted), var(--text-secondary));
}

.calculator-widget {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  padding: 1.75rem;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--border);
  backdrop-filter: blur(24px) saturate(180%);
  min-width: 280px;
  text-align: center;
  transition: var(--transition);
  animation: slideInUp 0.6s ease-out 0.2s both;
}

.calculator-widget:hover {
  box-shadow: var(--shadow-hover);
  transform: translateX(-50%) translateY(-4px);
}

.calculator-widget h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.125rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.calculator-widget h3::before {
  content: '🔢';
  font-size: 1.25rem;
}

.calculator-widget input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 0.9375rem;
  transition: var(--transition);
  text-align: center;
  font-family: 'Courier New', monospace;
}

.calculator-widget input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(196, 168, 124, 0.1);
}

.calc-result {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.75rem;
  font-weight: 500;
  margin: 1rem 0;
  min-height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.calc-actions {
  display: flex;
  gap: 0.625rem;
  margin-top: 1rem;
}

.calc-actions button {
  flex: 1;
  padding: 0.75rem 0.5rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: var(--transition);
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(196, 168, 124, 0.3);
}

.calc-actions button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(196, 168, 124, 0.5);
}

.calc-actions button:active {
  transform: translateY(0);
}

.calc-actions button:last-child {
  background: linear-gradient(135deg, var(--text-muted), var(--text-secondary));
}

.history-panel {
  position: fixed;
  left: 20px;
  bottom: 20px;
  width: 320px;
  max-height: 450px;
  background: var(--bg-card);
  padding: 1.75rem;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--border);
  backdrop-filter: blur(24px) saturate(180%);
  overflow-y: auto;
  transition: var(--transition);
  animation: slideInLeft 0.6s ease-out 0.2s both;
}

.history-panel:hover {
  box-shadow: var(--shadow-hover);
}

.history-panel::-webkit-scrollbar {
  width: 6px;
}

.history-panel::-webkit-scrollbar-track {
  background: transparent;
}

.history-panel::-webkit-scrollbar-thumb {
  background: var(--accent-soft);
  border-radius: 3px;
}

.history-panel::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

.history-panel h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: sticky;
  top: 0;
  background: var(--bg-card);
  padding-bottom: 0.5rem;
  z-index: 1;
}

.history-panel h3::before {
  content: '📚';
  font-size: 1.5rem;
}

.history-item {
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: 12px;
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.history-item:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  transform: translateX(6px);
  box-shadow: var(--shadow-sm);
}

.history-query {
  font-size: 0.9375rem;
  color: var(--text-primary);
  margin-bottom: 0.375rem;
  font-weight: 500;
}

.history-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.03em;
}

.history-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  padding: 2rem 1rem;
  font-style: italic;
}

.clear-history-btn {
  width: 100%;
  padding: 0.75rem;
  background: linear-gradient(135deg, var(--text-muted), var(--text-secondary));
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-top: 1rem;
  transition: var(--transition);
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.clear-history-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.clear-history-btn:active {
  transform: translateY(0);
}

.bookmarks-panel {
  position: fixed;
  right: 20px;
  top: 120px;
  width: 340px;
  max-height: 550px;
  background: var(--bg-card);
  padding: 1.75rem;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--border);
  backdrop-filter: blur(24px) saturate(180%);
  overflow-y: auto;
  transition: var(--transition);
  animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.bookmarks-panel:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.bookmarks-panel::-webkit-scrollbar {
  width: 6px;
}

.bookmarks-panel::-webkit-scrollbar-track {
  background: transparent;
}

.bookmarks-panel::-webkit-scrollbar-thumb {
  background: var(--accent-soft);
  border-radius: 3px;
}

.bookmarks-panel::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

.bookmarks-panel h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: sticky;
  top: 0;
  background: var(--bg-card);
  padding-bottom: 0.5rem;
  z-index: 1;
}

.bookmarks-panel h3::before {
  content: '⭐';
  font-size: 1.5rem;
}

.bookmark-item {
  display: flex;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: 12px;
  margin-bottom: 0.75rem;
  transition: var(--transition);
  border: 2px solid transparent;
}

.bookmark-item:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.bookmark-content {
  flex: 1;
  cursor: pointer;
}

.bookmark-source {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.375rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.bookmark-title {
  font-size: 0.9375rem;
  color: var(--text-primary);
  margin-bottom: 0.375rem;
  font-weight: 600;
  line-height: 1.4;
}

.bookmark-excerpt {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.bookmark-remove {
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.bookmark-remove:hover {
  background: linear-gradient(135deg, #e57373, #ef5350);
  color: white;
  border-color: #e57373;
  transform: rotate(90deg) scale(1.1);
}

.bookmark-remove:active {
  transform: rotate(0deg) scale(0.95);
}

.bookmarks-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  padding: 2rem 1rem;
  font-style: italic;
}

.clear-bookmarks-btn {
  width: 100%;
  padding: 0.75rem;
  background: linear-gradient(135deg, var(--text-muted), var(--text-secondary));
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-top: 1rem;
  transition: var(--transition);
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.clear-bookmarks-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.clear-bookmarks-btn:active {
  transform: translateY(0);
}

.notification {
  position: fixed;
  top: 100px;
  right: -350px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: white;
  padding: 1.25rem 1.75rem;
  border-radius: 16px;
  box-shadow: var(--shadow-hover);
  z-index: 1000;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(12px);
}

.notification.show {
  right: 20px;
  animation: notificationPulse 0.6s ease-out;
}

@keyframes notificationPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

body.dark-mode {
  --bg-primary: #0f0f0f;
  --bg-secondary: #1a1a1a;
  --bg-card: rgba(30, 30, 30, 0.92);
  --text-primary: #ffffff;
  --text-secondary: #d4d4d4;
  --text-muted: #8a8a8a;
  --border: rgba(255, 255, 255, 0.12);
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.4);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.6);
  --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.7);
}

body.dark-mode .orb {
  opacity: 0.15;
}

body.dark-mode .orb-1 {
  background: radial-gradient(circle, rgba(196, 168, 124, 0.3) 0%, rgba(180, 150, 100, 0.1) 100%);
}

body.dark-mode .orb-2 {
  background: radial-gradient(circle, rgba(100, 150, 200, 0.25) 0%, rgba(80, 120, 180, 0.1) 100%);
}

body.dark-mode .orb-3 {
  background: radial-gradient(circle, rgba(180, 120, 120, 0.2) 0%, rgba(160, 100, 100, 0.08) 100%);
}

body.dark-mode nav {
  background: rgba(15, 15, 15, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode nav:hover {
  background: rgba(15, 15, 15, 0.98);
}

body.dark-mode .logo-text {
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.dark-mode .dark-mode-toggle {
  background: rgba(30, 30, 30, 0.9);
  border-color: rgba(255, 255, 255, 0.15);
}

body.dark-mode .spotify-toggle {
  background: rgba(30, 30, 30, 0.9);
  border-color: rgba(255, 255, 255, 0.12);
}

body.dark-mode .spotify-toggle:hover {
  background: rgba(26, 26, 26, 0.95);
}

body.dark-mode .spotify-panel {
  background: rgba(20, 20, 20, 0.95);
  border-left-color: rgba(255, 255, 255, 0.12);
}

body.dark-mode .close-spotify {
  background: rgba(30, 30, 30, 0.9);
  border-color: rgba(255, 255, 255, 0.15);
}

body.dark-mode .search-input,
body.dark-mode .notes-panel textarea {
  background: rgba(26, 26, 26, 0.9);
}

body.focus-mode .notes-panel,
body.focus-mode .history-panel,
body.focus-mode .bookmarks-panel,
body.focus-mode .timer-widget,
body.focus-mode .calculator-widget,
body.focus-mode .flashcards-panel,
body.focus-mode .spotify-tab,
body.focus-mode .orb,
body.focus-mode footer {
  display: none !important;
}

body.focus-mode nav {
  background: rgba(247, 245, 242, 0.95);
}

body.focus-mode .hero {
  padding: 2rem 1rem 1.5rem;
}

body.focus-mode .hero h1 {
  font-size: 2.5rem;
}

.shortcuts-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-out;
}

.shortcuts-content {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  border-radius: 24px;
  padding: 2.5rem;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-hover);
  border: 2px solid var(--border);
  position: relative;
  animation: slideInUp 0.4s ease-out;
}

.shortcuts-content h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--text-primary);
  text-align: center;
}

.shortcuts-section {
  margin-bottom: 2rem;
}

.shortcuts-section h3 {
  font-size: 1rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  font-weight: 600;
}

.shortcut-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.875rem 1rem;
  background: var(--bg-secondary);
  border-radius: 12px;
  margin-bottom: 0.5rem;
}

.shortcut-item kbd {
  background: var(--accent-soft);
  color: var(--text-primary);
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-right: 0.5rem;
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: var(--accent-soft);
  color: var(--text-primary);
  transform: rotate(90deg);
}

.flashcards-panel {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 360px;
  max-height: 80vh;
  background: var(--bg-card);
  padding: 1.75rem;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--border);
  backdrop-filter: blur(24px) saturate(180%);
  overflow-y: auto;
  transition: var(--transition);
  animation: slideInRight 0.6s ease-out 0.2s both;
}

.flashcards-panel:hover {
  box-shadow: var(--shadow-hover);
}

.flashcards-panel::-webkit-scrollbar {
  width: 6px;
}

.flashcards-panel::-webkit-scrollbar-thumb {
  background: var(--accent-soft);
  border-radius: 3px;
}

.flashcards-panel h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.flashcards-panel h3::before {
  content: '🎴';
  font-size: 1.5rem;
}

.flashcard-viewer {
  margin-bottom: 1.5rem;
}

.flashcard-display {
  background: linear-gradient(135deg, var(--accent-soft), var(--bg-secondary));
  border: 2px solid var(--accent);
  border-radius: 16px;
  padding: 2rem;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  perspective: 1000px;
}

.flashcard-display:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow);
}

.flashcard-display.flipped {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
}

.flashcard-display.flipped .flashcard-content {
  color: white;
}

.flashcard-content {
  font-size: 1.125rem;
  text-align: center;
  line-height: 1.6;
  color: var(--text-primary);
  font-weight: 500;
}

.flashcard-counter {
  text-align: center;
  margin: 0.75rem 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 600;
}

.flashcard-controls {
  display: flex;
  gap: 0.5rem;
}

.flashcard-controls button {
  flex: 1;
  padding: 0.75rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(196, 168, 124, 0.3);
}

.flashcard-controls button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196, 168, 124, 0.5);
}

.flashcard-creator {
  margin: 1.5rem 0;
  padding: 1.25rem;
  background: var(--bg-secondary);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.flashcard-creator input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  transition: var(--transition);
}

.flashcard-creator input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(196, 168, 124, 0.1);
}

.flashcard-creator button {
  width: 100%;
  padding: 0.875rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(196, 168, 124, 0.3);
}

.flashcard-creator button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196, 168, 124, 0.5);
}

.flashcards-list {
  max-height: 200px;
  overflow-y: auto;
}

.flashcard-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.875rem;
  background: var(--bg-secondary);
  border-radius: 10px;
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.flashcard-list-item:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.flashcard-list-front {
  flex: 1;
  font-size: 0.875rem;
  color: var(--text-primary);
  font-weight: 500;
}

.flashcard-delete {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.flashcard-delete:hover {
  background: #e57373;
  color: white;
  border-color: #e57373;
  transform: scale(1.1);
}

.flashcards-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  padding: 1rem;
  font-style: italic;
}

.flashcard-rating {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.flashcard-rating button {
  flex: 1;
  padding: 0.625rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: var(--transition);
  color: white;
}

.rate-hard {
  background: linear-gradient(135deg, #ef5350, #e53935);
}

.rate-good {
  background: linear-gradient(135deg, #66bb6a, #4caf50);
}

.rate-easy {
  background: linear-gradient(135deg, #42a5f5, #1e88e5);
}

.flashcard-rating button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.analytics-panel {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 340px;
  max-height: 85vh;
  background: var(--bg-card);
  padding: 1.75rem;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--border);
  backdrop-filter: blur(24px) saturate(180%);
  overflow-y: auto;
  transition: var(--transition);
  animation: slideInLeft 0.6s ease-out 0.4s both;
}

.analytics-panel:hover {
  box-shadow: var(--shadow-hover);
}

.analytics-panel::-webkit-scrollbar {
  width: 6px;
}

.analytics-panel::-webkit-scrollbar-thumb {
  background: var(--accent-soft);
  border-radius: 3px;
}

.analytics-panel h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  letter-spacing: 0.05em;
  text-align: center;
}

.session-tracker {
  background: linear-gradient(135deg, var(--accent-soft), var(--bg-secondary));
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
  border: 2px solid var(--accent);
}

.session-time {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
  font-variant-numeric: tabular-nums;
}

.session-controls {
  display: flex;
  gap: 0.5rem;
}

.session-controls button {
  flex: 1;
  padding: 0.75rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(196, 168, 124, 0.3);
}

.session-controls button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196, 168, 124, 0.5);
}

.session-controls button.hidden {
  display: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  border: 1px solid var(--border);
}

.stat-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.source-chart-container {
  margin-bottom: 1.5rem;
}

.source-chart-container h4 {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.chart-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.chart-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  min-width: 70px;
}

.chart-bar-container {
  flex: 1;
  height: 8px;
  background: var(--bg-secondary);
  border-radius: 4px;
  overflow: hidden;
}

.chart-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  border-radius: 4px;
  transition: width 0.6s ease;
}

.chart-value {
  font-size: 0.75rem;
  color: var(--text-muted);
  min-width: 30px;
  text-align: right;
  font-weight: 600;
}

.chart-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  padding: 1rem;
  font-style: italic;
}

.analytics-actions {
  display: flex;
  gap: 0.5rem;
}

.analytics-actions button {
  flex: 1;
  padding: 0.75rem;
  background: linear-gradient(135deg, var(--text-muted), var(--text-secondary));
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: var(--transition);
}

.analytics-actions button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.themes-panel {
  position: fixed;
  right: -360px;
  top: 0;
  width: 360px;
  height: 100vh;
  background: var(--bg-card);
  backdrop-filter: blur(32px) saturate(180%);
  border-left: 1px solid var(--border);
  padding: 6rem 1.75rem 2rem;
  transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 85;
  overflow-y: auto;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.1);
}

.themes-panel.open {
  right: 0;
}

.themes-panel h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  margin-bottom: 1.75rem;
  color: var(--text-primary);
  text-align: center;
}

.close-panel {
  position: absolute;
  top: 1.75rem;
  right: 1.75rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-panel:hover {
  background: var(--accent-soft);
  color: var(--text-primary);
  transform: rotate(90deg);
}

#themeSelector {
  display: grid;
  gap: 1rem;
}

.theme-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border: 2px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.theme-option:hover {
  border-color: var(--accent);
  transform: translateX(4px);
}

.theme-option.active {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.theme-preview {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  border: 2px solid;
  position: relative;
  overflow: hidden;
}

.theme-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 20px;
}

.theme-option span {
  font-weight: 600;
  color: var(--text-primary);
}

.reading-panel {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 340px;
  max-height: 500px;
  background: var(--bg-card);
  padding: 1.75rem;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--border);
  backdrop-filter: blur(24px) saturate(180%);
  overflow-y: auto;
  transition: var(--transition);
  animation: slideInLeft 0.6s ease-out 0.6s both;
}

.reading-panel:hover {
  box-shadow: var(--shadow-hover);
}

.reading-panel::-webkit-scrollbar {
  width: 6px;
}

.reading-panel::-webkit-scrollbar-thumb {
  background: var(--accent-soft);
  border-radius: 3px;
}

.reading-panel h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

.reading-item {
  display: flex;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: 12px;
  margin-bottom: 0.75rem;
  transition: var(--transition);
  border: 2px solid transparent;
}

.reading-item:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.reading-item.read {
  opacity: 0.6;
}

.reading-content {
  flex: 1;
  cursor: pointer;
}

.reading-source {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.375rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.reading-title {
  font-size: 0.9375rem;
  color: var(--text-primary);
  margin-bottom: 0.375rem;
  font-weight: 600;
  line-height: 1.4;
}

.reading-excerpt {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.reading-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.reading-actions button {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 1.125rem;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.reading-actions button:first-child:hover {
  background: #66bb6a;
  color: white;
  border-color: #66bb6a;
}

.reading-actions button:last-child:hover {
  background: #e57373;
  color: white;
  border-color: #e57373;
}

.reading-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  padding: 2rem 1rem;
  font-style: italic;
}

.clear-reading-btn {
  width: 100%;
  padding: 0.75rem;
  background: linear-gradient(135deg, var(--text-muted), var(--text-secondary));
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-top: 1rem;
  transition: var(--transition);
}

.clear-reading-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
