/* ------------------------------
   LIGHT THEME (default)
------------------------------ */
:root {
  --bg-color: #ffffff;
  --text-color: #1a1a1a;
  --link-color: #1e88e5;
  --sidebar-bg: #f5f5f5;
  --sidebar-text: #333333;
  --accent: #3ddc84;
}

/* ------------------------------
   DARK THEME
------------------------------ */
[data-theme="dark"] {
  --bg-color: #121212;
  --text-color: #e0e0e0;
  --link-color: #64b5f6;
  --sidebar-bg: #1e1e1e;
  --sidebar-text: #cccccc;
  --accent: #3ddc84;
}

/* ------------------------------
   Apply Variables
------------------------------ */
html,
body {
  background: var(--bg-color);
  color: var(--text-color);
  transition:
    background-color 0.35s ease,
    color 0.35s ease;
}

.sidebar {
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
}

.sidebar a {
  color: var(--sidebar-text);
}

a {
  color: var(--link-color);
}

.markdown-section h1,
.markdown-section h2,
.markdown-section h3 {
  color: var(--accent);
}

/* Toggle Button */
#theme-toggle {
  position: fixed;
  top: 15px;
  right: 20px;
  background: var(--accent);
  color: #000;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  z-index: 999;
  user-select: none;
}
/* Customize Prism copy button */
.prism-toolbar {
  background: rgba(0, 0, 0, 0.8);
  border-radius: 4px;
}

.prism-toolbar-item button {
  background: #007bff;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 12px;
}

.prism-toolbar-item button:hover {
  background: #0056b3;
}

/* Code block styling */
pre {
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  background: #f5f5f5;
}

code {
  font-family: "Courier New", monospace;
}
