/* ===== CSS Custom Properties - Light Theme (Default) ===== */
:root {
  /* Primary Colors */
  --color-primary: hsl(210, 100%, 50%);
  --color-primary-light: hsl(210, 100%, 60%);
  --color-primary-dark: hsl(210, 100%, 40%);
  
  /* Secondary Colors */
  --color-secondary: hsl(210, 50%, 30%);
  --color-accent: hsl(30, 100%, 60%);
  
  /* Background Colors */
  --color-background: hsl(0, 0%, 100%);
  --color-surface: hsl(0, 0%, 98%);
  --color-surface-alt: hsl(0, 0%, 95%);
  
  /* Text Colors */
  --color-text: hsl(0, 0%, 10%);
  --color-text-secondary: hsl(0, 0%, 40%);
  --color-text-muted: hsl(0, 0%, 60%);
  
  /* Border Colors */
  --color-border: hsl(0, 0%, 85%);
  --color-border-light: hsl(0, 0%, 90%);
  
  /* Status Colors */
  --color-success: hsl(120, 60%, 50%);
  --color-warning: hsl(45, 100%, 50%);
  --color-error: hsl(0, 70%, 50%);
  
  /* Shadows */
  --shadow-sm: 0 1px 2px hsla(0, 0%, 0%, 0.1);
  --shadow-md: 0 4px 6px hsla(0, 0%, 0%, 0.1);
  --shadow-lg: 0 10px 15px hsla(0, 0%, 0%, 0.1);
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
}

/* ===== Dark Theme ===== */
[data-theme="dark"] {
  --color-primary: hsl(210, 80%, 60%);
  --color-primary-light: hsl(210, 80%, 70%);
  --color-primary-dark: hsl(210, 80%, 50%);
  
  --color-secondary: hsl(210, 30%, 70%);
  --color-accent: hsl(30, 80%, 70%);
  
  --color-background: hsl(220, 15%, 8%);
  --color-surface: hsl(220, 15%, 12%);
  --color-surface-alt: hsl(220, 15%, 16%);
  
  --color-text: hsl(0, 0%, 95%);
  --color-text-secondary: hsl(0, 0%, 70%);
  --color-text-muted: hsl(0, 0%, 50%);
  
  --color-border: hsl(220, 15%, 25%);
  --color-border-light: hsl(220, 15%, 20%);
  
  --shadow-sm: 0 1px 2px hsla(0, 0%, 0%, 0.3);
  --shadow-md: 0 4px 6px hsla(0, 0%, 0%, 0.3);
  --shadow-lg: 0 10px 15px hsla(0, 0%, 0%, 0.3);
}

/* ===== High Contrast Theme ===== */
[data-theme="high-contrast"] {
  --color-primary: hsl(210, 100%, 45%);
  --color-primary-light: hsl(210, 100%, 55%);
  --color-primary-dark: hsl(210, 100%, 35%);
  
  --color-background: hsl(0, 0%, 100%);
  --color-surface: hsl(0, 0%, 100%);
  --color-surface-alt: hsl(0, 0%, 98%);
  
  --color-text: hsl(0, 0%, 0%);
  --color-text-secondary: hsl(0, 0%, 20%);
  --color-text-muted: hsl(0, 0%, 30%);
  
  --color-border: hsl(0, 0%, 0%);
  --color-border-light: hsl(0, 0%, 30%);
}

/* ===== Sepia Theme (Easy on Eyes) ===== */
[data-theme="sepia"] {
  --color-primary: hsl(25, 70%, 45%);
  --color-primary-light: hsl(25, 70%, 55%);
  --color-primary-dark: hsl(25, 70%, 35%);
  
  --color-background: hsl(45, 40%, 95%);
  --color-surface: hsl(45, 30%, 92%);
  --color-surface-alt: hsl(45, 25%, 88%);
  
  --color-text: hsl(25, 20%, 15%);
  --color-text-secondary: hsl(25, 15%, 35%);
  --color-text-muted: hsl(25, 10%, 50%);
  
  --color-border: hsl(25, 20%, 75%);
  --color-border-light: hsl(25, 15%, 80%);
}

/* ===== Auto Theme (System Preference) ===== */
@media (prefers-color-scheme: dark) {
  [data-theme="auto"] {
    --color-primary: hsl(210, 80%, 60%);
    --color-primary-light: hsl(210, 80%, 70%);
    --color-primary-dark: hsl(210, 80%, 50%);
    
    --color-secondary: hsl(210, 30%, 70%);
    --color-accent: hsl(30, 80%, 70%);
    
    --color-background: hsl(220, 15%, 8%);
    --color-surface: hsl(220, 15%, 12%);
    --color-surface-alt: hsl(220, 15%, 16%);
    
    --color-text: hsl(0, 0%, 95%);
    --color-text-secondary: hsl(0, 0%, 70%);
    --color-text-muted: hsl(0, 0%, 50%);
    
    --color-border: hsl(220, 15%, 25%);
    --color-border-light: hsl(220, 15%, 20%);
    
    --shadow-sm: 0 1px 2px hsla(0, 0%, 0%, 0.3);
    --shadow-md: 0 4px 6px hsla(0, 0%, 0%, 0.3);
    --shadow-lg: 0 10px 15px hsla(0, 0%, 0%, 0.3);
  }
}

/* ===== Base Styles ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  background-color: var(--color-background);
  color: var(--color-text);
  transition: background-color var(--transition-normal), color var(--transition-normal);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== Header Styles ===== */
.header {
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.nav-logo:hover {
  color: var(--color-primary-light);
}

.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition-fast);
  padding: 0.5rem 0;
}

.nav-link:hover {
  color: var(--color-primary);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle {
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--color-text);
}

.theme-toggle:hover {
  background-color: var(--color-surface-alt);
  border-color: var(--color-primary);
}

.theme-icon {
  font-size: 1.2rem;
}

/* ===== Main Content ===== */
.main {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  width: 100%;
}

/* ===== Footer Styles ===== */
.footer {
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
  margin-top: auto;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-section h3 {
  color: var(--color-text);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-section a:hover {
  color: var(--color-primary);
}

.footer-section p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* ---------- */
/* Tab Navigation */
.tabs {
    display: flex;
    border-bottom: 2px solid var(--color-border-light);
    background-color: var(--color-background);
    border-radius: 8px 8px 0 0;
}

.tab {
    flex: 1;
}

.tab-link {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: #666;
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 3px solid transparent;
}

.tab-link:hover {
    background-color: var(--color-background);
    color: var(--color-text);
}

.tab.active .tab-link {
    color: var(--color-primary);
    background-color: var(--color-surface);
    border-bottom-color: var(--color-border);
}

/* Tab Content */
.tab-content {
    padding: 0;
}

.tab-pane {
    display: none;
    padding: 30px;
    animation: fadeIn 0.3s ease-in-out;
}

.tab-pane.show {
    display: block;
}
@keyframes fadeIn {
  from {
      opacity: 0;
      transform: translateY(10px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

/* Content Styling */
/* .content-section {
    margin-bottom: 20px;
}

.content-section h3 {
    color: #333;
    margin-bottom: 10px;
}

.content-section p {
    color: #666;
    line-height: 1.6;
} */

/* Basic styling for the tabs */
/* .tabs {
    display: flex;
    justify-content: flex-start;
    padding: 10px 0;
    border-bottom: 2px solid #ddd;
}

.tab {
    margin-right: 20px;
}

.tab-link {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    padding: 10px 20px;
    display: inline-block;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.tab-link:hover {
    background-color: #f0f0f0;
}

.tab.active .tab-link {
    background-color: #007bff;
    color: white;
}

.tab-content {
    margin-top: 20px;
}

.tab-pane {
    display: none;
}

.tab-pane.show {
    display: block;
} */

/* Optional: Add styles to the tab content */
/* .tab-pane p {
    font-size: 16px;
} */


/* ===== Responsive Design ===== */
@media (max-width: 768px) {
  .nav-container {
    padding: 0 0.5rem;
  }
  
  .nav-menu {
    gap: 1rem;
  }
  
  .nav-link {
    font-size: 0.9rem;
  }
  
  .main {
    padding: 1rem 0.5rem;
  }
  
  .footer-container {
    padding: 1.5rem 0.5rem;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .tabs {
      flex-direction: column;
  }

  .tab-link {
      text-align: left;
      border-bottom: 1px solid #e0e0e0;
      border-right: none;
  }

  .tab.active .tab-link {
      border-bottom-color: transparent;
      border-left: 3px solid #007bff;
  }
}