/* css/style.css */

body {
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #0f172a;
  color: #e5e7eb;
  line-height: 1.6;
}

header {
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  padding: 40px 20px;
  text-align: center;
  color: white;
}

header h1 {
  margin: 0;
  font-size: 3rem;
}

header p {
  margin-top: 10px;
  font-size: 1.2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* New Navigation Bar Styles */
nav {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

nav a {
  color: rgba(255, 255, 255, 0.8);
  font-weight: bold;
  font-size: 1.1rem;
  padding: 5px 10px;
  border-radius: 8px;
  transition: all 0.2s;
}

nav a:hover, nav a.active {
  color: white;
  background-color: rgba(255, 255, 255, 0.2);
  text-decoration: none;
}

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 30px 20px 60px;
}

.card {
  background-color: #020617;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

h2 {
  border-bottom: 1px solid #1e293b;
  padding-bottom: 8px;
}

ul { padding-left: 20px; }
li { margin-bottom: 8px; }

a { color: #38bdf8; text-decoration: none; }
a:hover { text-decoration: underline; }

.muted {
  color: #94a3b8;
  margin-top: -6px;
}

/* Prototype Grid */
.prototype-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.prototype-grid figure {
  margin: 0;
  background: #0b1224;
  border: 1px solid #1e293b;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 18px rgba(0,0,0,0.25);
}

.prototype-grid img { width: 100%; height: auto; display: block; }

.prototype-grid figcaption {
  padding: 12px 14px;
  font-size: 0.95rem;
  color: #cbd5e1;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #0b1224;
  border: 1px solid #1e293b;
  color: #cbd5e1;
  font-size: 0.85rem;
  margin-top: 6px;
}

/* Charts layout */
.results-grid {
  margin-top: 14px;
  display: grid;
    grid-template-columns: 1fr;
  gap: 16px;
}

.chart-card {
  background: #0b1224;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 0 18px rgba(0,0,0,0.25);
}

.chart-title {
  margin: 0 0 6px 0;
  font-size: 1rem;
  color: #e5e7eb;
}

.chart-subtitle {
  margin: 0 0 10px 0;
  font-size: 0.9rem;
  color: #94a3b8;
}

.chart-wrap {
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
}

svg.chart {
  width: 100%;
  height: 450px;
  display: block;
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 10px;
}

.small-note {
  margin-top: 10px;
  font-size: 0.85rem;
  color: #94a3b8;
}

/* Table */
.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 0.95rem;
}
.table th, .table td {
  border-bottom: 1px solid #1e293b;
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
}
.table th { color: #cbd5e1; font-weight: 600; }
.table td { color: #e5e7eb; }

footer {
  text-align: center;
  padding: 20px;
  color: #94a3b8;
  font-size: 0.9rem;
}

.table td:nth-child(3),
.table td:nth-child(4),
.table td:nth-child(5),
.table td:nth-child(6),
.table th:nth-child(3),
.table th:nth-child(4),
.table th:nth-child(5),
.table th:nth-child(6) {
    text-align: right;
}

#time-rate-table-body td:nth-child(2),
#time-rate-table-body td:nth-child(3),
#time-rate-table-body td:nth-child(4),
#time-rate-table-body td:nth-child(5) {
    text-align: right;
}
