/* CSS Variables with dark mode only */
:root {
  --zinc-950: #09090b;
  --zinc-900: #18181b;
  --zinc-800: #27272a;
  --zinc-700: #3f3f46;
  --zinc-600: #52525b;
  --zinc-500: #71717a;
  --zinc-400: #a1a1aa;
  --zinc-300: #d4d4d8;
  --zinc-200: #e4e4e7;
  --zinc-100: #f4f4f5;
  --red-600: #dc2626;
  --red-500: #ef4444;
  --header-height: 3.5rem;
  --bg-primary: var(--zinc-950);
  --bg-secondary: var(--zinc-900);
  --text-primary: var(--zinc-200);
  --text-secondary: var(--zinc-300);
  --border-color: var(--zinc-800);
  --card-bg: rgba(24, 24, 27, 0.6);
  --shadow-color: rgba(0, 0, 0, 0.2);
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.875rem, 4vw, 2.25rem);
  margin-bottom: 1.5rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

/* Utility Classes */
.container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.grid {
  display: grid;
}

.hidden {
  display: none;
}

/* Scroll Progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--red-600);
  z-index: 1000;
  transition: width 0.2s ease;
}

/* Component Styles */
.backdrop-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.06;
  background-image:
    linear-gradient(to right, transparent 95%, rgba(255, 255, 255, 0.15) 96%),
    linear-gradient(to bottom, transparent 95%, rgba(255, 255, 255, 0.15) 96%);
  background-size: 40px 40px;
  transform: skewY(-2deg);
  z-index: -1;
}

.backdrop-vignette {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: radial-gradient(60% 50% at 50% 0%, rgba(244, 63, 94, 0.08), transparent 60%);
  z-index: -1;
}

.backdrop-glow {
  position: fixed;
  top: -6rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(44rem, 90%);
  height: 12rem;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.2);
  filter: blur(3rem);
  z-index: -1;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background-color: rgba(9, 9, 11, 0.8);
  border-bottom: 1px solid var(--border-color);
  height: var(--header-height);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.025em;
  z-index: 60;
}

.logo-dot {
  display: inline-block;
  height: 0.625rem;
  width: 0.625rem;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, var(--red-600) 100%);
  animation: pulse 2s infinite;
  box-shadow: 0 0 10px rgba(220, 38, 38, 0.5);
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
  }

  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 6px rgba(220, 38, 38, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
  }
}

nav {
  display: none;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

@media (min-width: 768px) {
  nav {
    display: flex;
  }
}

nav a {
  position: relative;
  padding: 0.5rem 0;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--red-600);
  transition: width 0.3s ease;
}

nav a:hover::after,
nav a:focus::after {
  width: 100%;
}

nav a:hover,
nav a:focus {
  color: var(--text-primary);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 2.5rem;
  height: 2.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 60;
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu-btn span {
  width: 1.5rem;
  height: 2px;
  background: var(--text-primary);
  margin: 2px 0;
  transition: all 0.3s ease;
  transform-origin: center;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--bg-primary);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  z-index: 40;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  padding: 2rem;
}

.mobile-nav.active {
  transform: translateY(0);
}

.mobile-nav a {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.75rem 1.5rem;
  width: 100%;
  text-align: center;
  border-radius: 0.5rem;
}

.mobile-nav a:hover,
.mobile-nav a:focus {
  color: var(--text-primary);
  background-color: rgba(220, 38, 38, 0.1);
}

.resume-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(220, 38, 38, 0.4);
  background-color: rgba(220, 38, 38, 0.1);
  padding: 0.5rem 1rem;
  transition: all 0.2s;
  color: var(--text-primary);
}

.resume-btn:hover,
.resume-btn:focus {
  background-color: rgba(220, 38, 38, 0.2);
  transform: translateY(-2px);
}

/* Notes Page Specific Styles */
.notes-container {
  display: flex;
  min-height: calc(100vh - var(--header-height));
}

.notes-sidebar {
  width: 300px;
  flex-shrink: 0;
  background-color: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  padding: 1.5rem;
  overflow-y: auto;
  position: sticky;
  top: var(--header-height);
  height: calc(100vh - var(--header-height));
  transition: transform 0.3s ease;
  box-shadow: crimson 0px 0px 20px -10px;
}

@media (max-width: 1024px) {

  .notes-sidebar {
    position: fixed;
    left: -80vw;
    top: var(--header-height);
    width: 80vw;
    max-width: 350px;
    height: calc(100vh - var(--header-height));
    z-index: 100;
    transition: left 0.3s ease;
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.5);
  }

  .notes-sidebar.active {
    left: 0;
  }

  .notes-sidebar.active .search-box {
    display: block !important;
    z-index: 101;
  }

  .notes-sidebar.active .notes-nav {
    display: block !important;
    z-index: 101;
  }

  .notes-content {
    max-width: 100%;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
    background: var(--bg-primary);
  }
}

.notes-content {
  flex: 1;
  padding: 2rem 3rem;
  /* max-width removed to prevent layout narrowing issues */
  overflow-y: auto;
}

@media (max-width: 1024px) {
  .notes-content {
    max-width: 100%;
    padding: 0 1rem;
  }
}

.search-box {
  position: relative;
  margin-bottom: 1.5rem;
}

.search-box input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-color);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-size: 0.875rem;
}

.search-box input:focus {
  outline: none;
  border-color: var(--red-600);
}

.search-box i {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--zinc-500);
}

.clear-search {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--zinc-500);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 0.25rem;
  transition: all 0.2s ease;
  display: none;
}

.clear-search:hover {
  color: var(--text-primary);
  background-color: rgba(220, 38, 38, 0.1);
}

.notes-nav {
  margin-top: 1rem;
}

.notes-tree {
  list-style: none;
}

.tree-item {
  margin-bottom: 0.25rem;
}

.tree-folder {
  cursor: pointer;
  user-select: none;
}

.tree-folder>.tree-content {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.tree-folder>.tree-content:hover {
  background-color: rgba(220, 38, 38, 0.1);
  color: var(--text-primary);
}

.tree-folder>.tree-content i {
  margin-right: 0.5rem;
  font-size: 0.75rem;
  transition: transform 0.2s ease;
  width: 12px;
  text-align: center;
}

.tree-folder.expanded>.tree-content i {
  transform: rotate(90deg);
}

.tree-file {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem 0.5rem 1.75rem;
  border-radius: 0.375rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.tree-file:hover,
.tree-file.active {
  background-color: rgba(220, 38, 38, 0.1);
  color: var(--text-primary);
}

.tree-file i {
  margin-right: 0.5rem;
  font-size: 0.75rem;
  color: var(--zinc-500);
}

.tree-children {
  margin-left: 1rem;
  padding-left: 0.75rem;
  border-left: 1px solid var(--border-color);
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.tree-folder:not(.expanded)>.tree-children {
  max-height: 0;
}

.tree-folder.expanded>.tree-children {
  max-height: 5000px;
}

.mobile-sidebar-toggle {
  display: none;
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: var(--red-600);
  color: white;
  border: none;
  cursor: pointer;
  z-index: 20;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

@media (max-width: 1024px) {
  .mobile-sidebar-toggle {
    display: flex;
  }
}

.note-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  padding-top: 2rem;
  border-bottom: 1px solid var(--border-color);
}

/* Utility: hide note-header when a note is loaded */
.hide-note-header .note-header {
  display: none !important;
}

.note-title {
  /* Increased size for better visibility */
  font-size: 2.25rem;
}

/* Only adjust markdown headings a bit, keep body text as-is */
.markdown-content h1 {
  font-size: 2rem;
  line-height: 1.3;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.markdown-content h2 {
  font-size: 1.75rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

/* Leave other markdown styles untouched */
.markdown-content h3 {
  font-size: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.markdown-content p,
.markdown-content td,
.markdown-content th {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

/* Tighter spacing for list items */
.markdown-content li {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0.5rem;
  /* Standard bullet spacing */
}

.markdown-content ul,
.markdown-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

/* Reduce inline code size slightly */
.markdown-content code:not([class*="language-"]) {
  font-size: 1rem;
}

/* Code blocks: reduce font-size and padding for denser layout */
.markdown-content pre {
  font-size: 0.95rem;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
}

/* Adjust language label / copy button sizing if present */
.copy-button {
  font-size: 0.7rem;
  padding: 0.35rem 0.6rem;
}

.language-label {
  font-size: 0.65rem;
  padding: 0.2rem 0.45rem;
}

/* Responsive: slightly smaller on narrow screens */
@media (max-width: 768px) {
  .markdown-content {
    font-size: 14px;
    max-width: 100%;
    padding-right: 0;
  }

  .markdown-content h1 {
    font-size: 1.4rem;
  }

  .markdown-content h2 {
    font-size: 1.1rem;
  }

  .markdown-content p,
  .markdown-content li {
    font-size: 0.95rem;
  }

  .copy-button {
    font-size: 0.675rem;
    padding: 0.3rem 0.5rem;
  }
}

/* Enhanced Search Styles */
.search-info {
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.search-info-results {
  background-color: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

.search-info-no-results {
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.search-match {
  background-color: rgba(234, 179, 8, 0.2) !important;
  border-left: 3px solid #eab308;
}

.search-match .tree-content,
.search-match.tree-file {
  color: var(--text-primary) !important;
  font-weight: 500;
}

/* Syntax Highlighting Styles - Custom Vibrant Theme */
.markdown-content pre[class*="language-"],
.markdown-content code[class*="language-"] {
  color: #f8f8f2;
  text-shadow: 0 1px rgba(0, 0, 0, 0.3);
  font-family: 'Cascadia Code', 'Fira Code', 'Consolas', 'Monaco', 'Andale Mono', monospace;
  direction: ltr;
  text-align: left;
  white-space: pre;
  word-spacing: normal;
  word-break: normal;
  line-height: 1.5;
  tab-size: 4;
  hyphens: none;
  background: #1a1b26 !important;
  /* Deeper dark blue/black background */
}

/* Custom Scrollbar for code blocks */
.markdown-content pre::-webkit-scrollbar {
  height: 8px;
  background-color: #1a1b26;
}

.markdown-content pre::-webkit-scrollbar-thumb {
  background-color: #3f3f46;
  border-radius: 4px;
}

.markdown-content pre::-webkit-scrollbar-thumb:hover {
  background-color: var(--red-600);
}

/* Token Colors - Vibrant Neon Palette */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
  color: #6272a4;
  font-style: italic;
}

.token.punctuation {
  color: #f8f8f2;
}

.token.namespace {
  opacity: .7;
}

.token.property,
.token.tag,
.token.constant,
.token.symbol,
.token.deleted {
  color: #ff79c6;
  /* Neon Pink */
}

.token.boolean,
.token.number {
  color: #bd93f9;
  /* Neon Purple */
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
  color: #a6e22e;
  /* Neon Green */
}

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string,
.token.variable {
  color: #f8f8f2;
}

.token.atrule,
.token.attr-value,
.token.function,
.token.class-name {
  color: #e6db74;
  /* Soft Neon Yellow */
}

.token.keyword {
  color: #ff5555;
  /* Neon Red */
}

.token.regex,
.token.important {
  color: #ffb86c;
  /* Neon Orange */
}

.token.important,
.token.bold {
  font-weight: bold;
}

.token.italic {
  font-style: italic;
}

.token.entity {
  cursor: help;
}

/* Bash/Shell specific overrides for better command highlighting */
.language-bash .token.function,
.language-sh .token.function,
.language-shell .token.function {
  color: #50fa7b;
  /* Bright Green for commands */
  text-shadow: 0 0 2px rgba(80, 250, 123, 0.4);
}

.language-bash .token.operator,
.language-sh .token.operator,
.language-shell .token.operator {
  color: #ff79c6;
  /* Pink for pipes/operators */
}

.language-bash .token.keyword,
.language-sh .token.keyword,
.language-shell .token.keyword {
  color: #bd93f9;
  /* Purple for keywords */
}

/* Make code blocks stand out more */
.markdown-content pre {
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.markdown-content code[class*="language-"] {
  font-family: 'Cascadia Code', 'Consolas', 'Monaco', 'Andale Mono', monospace;
  font-size: 0.875rem;
  line-height: 1.5;
  tab-size: 2;
}

/* Code block wrapper - reduce vertical spacing so blocks sit closer to surrounding content */
.code-block-wrapper {
  position: relative;
  margin: 0.6rem 0;
  /* reduced from 1.5rem */
  border-radius: 0.5rem;
  overflow: visible;
  max-width: 100%;
  overscroll-behavior: contain;
}

/* Make <pre> the horizontal scroller and tighten inner spacing */
.code-block-wrapper pre,
.markdown-content pre {
  display: block;
  width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.5rem 3rem 0.5rem 0.6rem;
  /* reduced vertical padding */
  white-space: pre;
  overscroll-behavior: auto;
  margin: 0.4rem 0;
  /* reduced bottom/top margin */
  border-radius: 0.5rem;
}

/* Copy button (pinned) - adjust vertical position to match reduced padding */
.copy-button {
  position: absolute;
  top: 0.45rem;
  /* slightly moved up */
  right: 0.6rem;
  z-index: 30;
  background: rgba(39, 39, 42, 0.85);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.32rem 0.6rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.18s ease;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
  transform: translateZ(0);
  pointer-events: auto;
}

.copy-button:hover {
  background-color: rgba(220, 38, 38, 0.2);
  border-color: var(--red-600);
  color: #fff;
  box-shadow: 0 0 10px rgba(220, 38, 38, 0.2);
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border-left: 4px solid #22c55e;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 300px;
}

.toast.visible {
  transform: translateY(0);
  opacity: 1;
}

.toast i {
  color: #22c55e;
  font-size: 1.25rem;
}

/* Animation for search results */
@keyframes highlight-fade {
  0% {
    background-color: rgba(234, 179, 8, 0.6);
  }

  100% {
    background-color: rgba(234, 179, 8, 0.2);
  }
}

.search-match {
  animation: highlight-fade 2s ease-in-out;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-color);
  padding: 2rem 0;
  box-shadow: crimson 0px 0px 20px -10px;

}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

@media (max-width: 767px) {
  .footer-container {
    text-align: center;
    align-items: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.5rem;
  }

  .footer-divider {
    display: none;
  }
}

.footer-links a {
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus {
  color: var(--text-primary);
  background-color: rgba(220, 38, 38, 0.1);
}

@media (max-width: 767px) {
  .footer-links {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .footer-links a {
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.75rem;
    border-radius: 0.5rem;
  }

  .footer-links a:hover,
  .footer-links a:focus {
    background-color: rgba(220, 38, 38, 0.15);
    border-color: var(--red-600);
  }
}

@media (min-width: 768px) {
  .footer-container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a:hover,
.footer-links a:focus {
  color: var(--text-primary);
}

.footer-divider {
  color: var(--border-color);
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Focus styles for accessibility */
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--red-600);
  outline-offset: 2px;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Custom Scrollbar Styles for Dark Theme */
/* Chrome, Edge, Safari */
body::-webkit-scrollbar,
.notes-sidebar::-webkit-scrollbar,
.notes-content::-webkit-scrollbar {
  width: 10px;
  background: var(--bg-primary);
}

body::-webkit-scrollbar-thumb,
.notes-sidebar::-webkit-scrollbar-thumb,
.notes-content::-webkit-scrollbar-thumb {
  background: var(--zinc-800);
  border-radius: 8px;
  border: 2px solid var(--bg-primary);
}

body::-webkit-scrollbar-thumb:hover,
.notes-sidebar::-webkit-scrollbar-thumb:hover,
.notes-content::-webkit-scrollbar-thumb:hover {
  background: var(--red-600);
}

body::-webkit-scrollbar-track,
.notes-sidebar::-webkit-scrollbar-track,
.notes-content::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

/* Firefox */
body,
.notes-sidebar,
.notes-content {
  scrollbar-width: thin;
  scrollbar-color: var(--zinc-800) var(--bg-primary);
}

/* Notes Navigation Buttons */
.notes-navigation {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.nav-button {
  display: flex !important;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-color);
  background-color: rgba(220, 38, 38, 0.05);
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.2s ease;
  flex: 1;
  position: relative;
  overflow: hidden;
}

.nav-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: rgba(220, 38, 38, 0.1);
  transition: width 0.3s ease;
  z-index: -1;
}

.nav-button:hover::before {
  width: 100%;
}

.nav-button:hover,
.nav-button:focus {
  border-color: var(--red-600);
  background-color: rgba(220, 38, 38, 0.1);
  transform: translateY(-2px);
}

.nav-button i {
  font-size: 1.25rem;
  color: var(--red-600);
  flex-shrink: 0;
}

.nav-prev {
  justify-content: flex-start;
}

.nav-prev i {
  order: -1;
}

.nav-next {
  justify-content: flex-end;
}

.nav-text {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.nav-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--zinc-400);
}

.nav-breadcrumb {
  font-size: 0.85rem;
  color: var(--zinc-400);
  line-height: 1.3;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--zinc-500);
}

.nav-breadcrumb-item:last-child {
  color: var(--zinc-400);
}

.nav-breadcrumb-separator {
  font-size: 0.7rem;
  opacity: 0.5;
}

.nav-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.nav-button:hover .nav-title {
  color: var(--red-600);
}

.nav-button:hover .nav-breadcrumb {
  color: var(--zinc-300);
}

@media (max-width: 768px) {
  .notes-navigation {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-button {
    width: 100%;
  }

  .nav-button i {
    font-size: 1rem;
  }

  .nav-title {
    font-size: 0.9rem;
  }
}