/* style.css - Updated for dark mode support */
:root {
  /* Dark mode colors (default) */
  --bg-primary: #0d1117;
  --bg-secondary: #161b22;
  --bg-tertiary: #21262d;
  --text-primary: #e6edf3;
  --text-secondary: #7d8590;
  --accent-primary: #58a6ff;
  --accent-secondary: #388bfd;
  --border-color: #30363d;
  --shadow-color: rgba(0, 0, 0, 0.3);
  --code-bg: #161b22;
}

[data-theme="light"] {
  /* Light mode colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f6f8fa;
  --bg-tertiary: #ffffff;
  --text-primary: #24292f;
  --text-secondary: #656d76;
  --accent-primary: #0969da;
  --accent-secondary: #0550ae;
  --border-color: #d1d9e0;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --code-bg: #f6f8fa;
}

* {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 2em;
  min-height: 100vh;
}

h1, h2, h3 {
  color: var(--text-primary);
}

pre {
  background: var(--code-bg);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 1em;
  overflow-x: auto;
  white-space: pre-wrap;
  border-radius: 6px;
}

a {
  text-decoration: none;
  color: var(--accent-primary);
  font-weight: bold;
}

a:hover { 
  color: var(--accent-secondary);
  text-decoration: underline;
}

details { 
  margin-bottom: 1em;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 1em;
}

summary {
  cursor: pointer;
  font-weight: bold;
  color: var(--text-primary);
}

/* --- header styling for dashboard/subpages --- */
header {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: white;
  padding: 40px 20px;
  text-align: center;
  border-radius: 12px;
  margin-bottom: 2em;
}

header h1 {
  font-size: 3em;
  margin: 0 0 10px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

header p {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.5;
  opacity: 0.95;
}
