/* layout.css -- Overall page layout: header, container, footer, stats-bar, tabs, progress */

/* Top accent stripe */
.brand-stripe {
  height: 4px;
  background: linear-gradient(90deg, var(--brand-primary) 0%, var(--brand-primary) 70%, var(--brand-accent) 70%, var(--brand-accent) 100%);
}

/* Header */
.header {
  background: var(--brand-primary);
  color: #fff;
  padding: 24px 40px 20px;
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.header h1 {
  font-family: 'Inter', sans-serif;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.3px;
}
.header-links {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.header-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
}

/* Container */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 40px 60px;
}

/* Stats bar */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

/* Overall progress bar */
.overall-progress {
  margin-bottom: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
}
.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.progress-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.progress-pct {
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  font-weight: 700;
  color: var(--brand-primary);
}
.progress-track {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.progress-fill.blue {
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-primary-light));
}
.time-marker {
  position: absolute;
  top: -2px;
  width: 3px;
  height: 12px;
  background: var(--brand-accent);
  border-radius: 2px;
  transition: left 0.3s;
}

/* View tabs */
.tabs {
  display: flex;
  gap: 2px;
  margin-bottom: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px;
}
.tab {
  padding: 9px 18px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
  font-family: inherit;
}
.tab.active {
  background: var(--brand-primary);
  color: #fff;
}
.tab:hover:not(.active) {
  background: rgba(10, 61, 145, 0.06);
  color: var(--text);
}

/* Footer */
.footer {
  background: var(--brand-primary);
  padding: 16px 40px;
  text-align: center;
}
.footer p {
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
}
.footer .brand-mark {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}

/* Responsive */
@media (max-width: 768px) {
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .container {
    padding: 16px;
  }
  .header {
    padding: 20px 16px;
  }
  .header-top {
    flex-wrap: wrap;
  }
}
