/* 1. Define Color Variables for Light & Dark Themes */
:root {
  --bg-color: #f9f9f9;
  --text-color: #333;
  --border-color: #ddd;
  --header-border-color: #eee;
  --table-bg-color: #fff;
  --table-header-bg-color: #f8f8f8;
  --accent-color: #007bff;
  --shadow-color: rgba(0, 0, 0, 0.1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --border-color: #444;
    --header-border-color: #333;
    --table-bg-color: #1e1e1e;
    --table-header-bg-color: #2a2a2a;
    --accent-color: #3a9cff;
    --shadow-color: rgba(0, 0, 0, 0.4);
  }
}

/* 2. Apply Variables to General Styles */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  line-height: 1.6;
  max-width: 900px;
  margin: 20px auto;
  padding: 0 20px;
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.3s, color 0.3s;
}

h1,
h2 {
  border-bottom: 2px solid var(--header-border-color);
  padding-bottom: 10px;
}

h1 {
  text-align: center;
}

.tab-container {
  display: flex;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border-color);
}

.tab-button {
  padding: 10px 20px;
  cursor: pointer;
  border: none;
  background-color: transparent;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-color);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  opacity: 0.7;
  transition: opacity 0.2s, color 0.2s, border-bottom 0.2s;
}

.tab-button:hover {
  opacity: 1;
}

.tab-button.active {
  color: var(--accent-color);
  border-bottom: 3px solid var(--accent-color);
  opacity: 1;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
  background-color: var(--table-bg-color);
  box-shadow: 0 1px 3px var(--shadow-color);
  border: 1px solid var(--border-color);
}

th,
td {
  border: 1px solid var(--border-color);
  padding: 12px;
  text-align: left;
}

th {
  background-color: var(--table-header-bg-color);
  font-weight: bold;
}

td:nth-child(1) {
  width: 15%;
  font-weight: 500;
}
td:nth-child(3) {
  width: 10%;
  text-align: center;
}

input[type="checkbox"] {
  transform: scale(1.5);
  cursor: pointer;
  accent-color: var(--accent-color);
}
/* styles.css */

/* --- Add these new styles to the end of the file --- */

/* Purpose Section Styles */
.project-purpose {
  margin-top: 20px; /* Adds space below the main header */
  padding: 25px;
  border: 1px solid var(--border-color);
  background-color: var(--table-header-bg-color); /* A slightly different background */
  border-radius: 8px; /* Rounded corners */
  margin-bottom: 40px; /* Space before the main checklist starts */
}

.project-purpose h3 {
  border-bottom: none; /* No underline on these subheadings */
  margin-top: 0;
  margin-bottom: 8px;
  color: var(--accent-color); /* Use the theme's accent color */
  font-size: 1.1em;
}

/* Add a little space between the two paragraphs if needed */
.project-purpose h3 + p {
  margin-bottom: 15px; 
}

.project-purpose p {
  margin-top: 0;
  margin-bottom: 0;
  opacity: 0.9;
  font-size: 1em;
}

.subtitle {
  font-size: 1.1em;
  line-height: 1.5; /* Improves readability of the paragraph */
  max-width: 75ch; /* Limits line length for better typography on wide screens */
  margin: 10px auto 0; /* Adds some space above and centers the text block */
  color: var(--text-color);
  opacity: 0.9;
}

/* Style for the links within the subtitle */
.subtitle a {
  color: var(--accent-color); /* Use the theme's accent color to make links stand out */
  text-decoration: none; /* Remove the default underline for a cleaner look */
  transition: text-decoration 0.2s ease-in-out; /* Add a subtle transition */
}

/* Add the underline back when the user hovers over a link */
.subtitle a:hover {
  text-decoration: underline;
}