:root {
  /* Light theme (default) */
  --bg-color: #ffffff;
  --bg-secondary: #f8f9fa;
  --header-bg: #ffffff;
  --footer-bg: #f8f9fa;
  --text-color: #333333;
  --text-secondary: #555555;
  --text-muted: #777777;
  --accent-color: #3b82f6;
  --accent-color-light: #93c5fd;
  --accent-color-dark: #2563eb;
  --accent-color-darker: #1d4ed8;
  --heading-color: #111827;
  --border-color: #e5e7eb;
  --card-bg: #ffffff;
  --hover-bg: #f1f5f9;
  --success-color: #10b981;
  --error-color: #ef4444;
  --warning-color: #f59e0b;
  --info-color: #3b82f6;
  --code-bg: #282c34;
  --code-header-bg: #24292e;
  --shadow-color: rgba(0, 0, 0, 0.1);
}

/* Dark theme */
.dark-theme {
  --bg-color: #111827;
  --bg-secondary: #1e293b;
  --header-bg: #0f172a;
  --footer-bg: #0f172a;
  --text-color: #e5e7eb;
  --text-secondary: #d1d5db;
  --text-muted: #9ca3af;
  --accent-color: #60a5fa;
  --accent-color-light: #93c5fd;
  --accent-color-dark: #3b82f6;
  --accent-color-darker: #2563eb;
  --heading-color: #f3f4f6;
  --border-color: #374151;
  --card-bg: #1e293b;
  --hover-bg: #2d3748;
  --success-color: #34d399;
  --error-color: #f87171;
  --warning-color: #fbbf24;
  --info-color: #60a5fa;
  --code-bg: #1a1a1a;
  --code-header-bg: #2a2a2a;
  --shadow-color: rgba(0, 0, 0, 0.3);
}

/* Global styles */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  color: var(--accent-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--heading-color);
  margin-top: 1.5em;
  margin-bottom: 0.75em;
  line-height: 1.3;
}

h1 {
  font-size: 2.25rem;
  font-weight: 700;
}

h2 {
  font-size: 1.75rem;
  font-weight: 600;
}

h3 {
  font-size: 1.5rem;
}

hr {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 2rem 0;
}

/* Button styles */
button, .button {
  background-color: var(--accent-color);
  color: white;
  border: none;
  border-radius: 0.375rem;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

button:hover, .button:hover {
  background-color: #2563eb;
}

button:disabled, .button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Form elements */
input, textarea, select {
  background-color: var(--bg-color);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: 0.375rem;
  padding: 0.625rem;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

/* Section styles */
.section {
  margin-bottom: 2.5rem;
}

/* Card styles */
.card {
  background-color: var(--card-bg);
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px var(--shadow-color);
  padding: 1.5rem;
}

/* Code syntax highlight theme overrides */
.dark-theme .token.comment,
.dark-theme .token.prolog,
.dark-theme .token.doctype,
.dark-theme .token.cdata {
  color: #6a9955;
}

.dark-theme .token.punctuation {
  color: #d4d4d4;
}

.dark-theme .token.property,
.dark-theme .token.tag,
.dark-theme .token.boolean,
.dark-theme .token.number,
.dark-theme .token.constant,
.dark-theme .token.symbol,
.dark-theme .token.deleted {
  color: #b5cea8;
}

.dark-theme .token.selector,
.dark-theme .token.attr-name,
.dark-theme .token.string,
.dark-theme .token.char,
.dark-theme .token.builtin,
.dark-theme .token.inserted {
  color: #ce9178;
}

.dark-theme .token.operator,
.dark-theme .token.entity,
.dark-theme .token.url,
.dark-theme .language-css .token.string,
.dark-theme .style .token.string {
  color: #d4d4d4;
}

.dark-theme .token.atrule,
.dark-theme .token.attr-value,
.dark-theme .token.keyword {
  color: #c586c0;
}

.dark-theme .token.function,
.dark-theme .token.class-name {
  color: #dcdcaa;
}

/* Transition styles */
.page-transition-enter {
  opacity: 0;
  transform: translateY(20px);
}

.page-transition-enter-active {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 300ms, transform 300ms;
}

.page-transition-exit {
  opacity: 1;
}

.page-transition-exit-active {
  opacity: 0;
  transition: opacity 300ms;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  .card {
    padding: 1rem;
  }
} 