:root {
  --bg-color: #0f172a;
  --card-bg: rgba(30, 41, 59, 0.7);
  --text-main: #f8fafc;
  --accent: #38bdf8;
  --border: rgba(255, 255, 255, 0.1);
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  margin: 0;
  padding: 20px;
  display: flex;
  justify-content: center;
}

.container {
  width: 100%;
  max-width: 1200px;
}

h1 {
  text-align: center;
  margin: 20px 0 40px 0;
  font-weight: 300;
  font-size: 2.5rem;
}

/* --- Navigation Grid --- Locked at 2x3*/
.nav-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* FORCED 3 columns */
  grid-template-rows: repeat(2, 1fr); /* FORCED 2 rows */
  gap: 12px;
  margin-bottom: 40px;
  width: 100%;
}

.nav-btn {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: white;
  /* Scales font based on screen width so it fits on mobile */
  font-size: clamp(0.7rem, 1.8vw, 1rem);
  padding: 15px 5px;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.2s ease;

  /* Critical for 3-columns on small screens */
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-btn:hover {
  border-color: var(--accent);
  background: rgba(56, 189, 248, 0.1);
}

.active-btn {
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

/* --- Issue Category Sections --- */
.issue-section {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 25px;
  margin-bottom: 40px;
}

.section-title {
  color: var(--accent);
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 25px;
  text-transform: uppercase;
  border-left: 4px solid var(--accent);
  padding-left: 15px;
}

/* --- The 3-Column Status Grid --- */
.status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Exactly 1/3 width */
  gap: 20px;
}

.column-label {
  font-size: 0.8rem;
  font-weight: 900;
  margin-bottom: 15px;
  text-align: center;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- Responsive Logic --- */

/* 2 Columns for Tablet/Half-Screen */
@media (max-width: 900px) {
  .status-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .status-grid {
    grid-template-columns: 1fr;
  }

  /* On very small phones, we reduce the gap to save space */
  .nav-grid {
    gap: 6px;
  }
  .nav-btn {
    padding: 10px 2px;
    font-size: 0.65rem;
  }
}