/* Code Hoarder — minimal clean stylesheet */

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Navbar */
.navbar {
  background: #1a1a2e;
  color: #fff;
  padding: 0.75rem 0;
  margin-bottom: 2rem;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar .logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.navbar .logo:hover {
  text-decoration: none;
}

.nav-links a {
  color: #cfd8dc;
  margin-left: 1.25rem;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: #fff;
}

/* Main content */
main h1 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #1a1a2e;
}

main p {
  color: #4a4a6a;
  margin-bottom: 1rem;
}

.placeholder {
  color: #9e9e9e;
  font-style: italic;
}

/* Cards / project rows */
.card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
}

.card h2 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.card .meta {
  font-size: 0.85rem;
  color: #757575;
}

/* Footer */
footer {
  margin-top: 3rem;
  padding: 1.5rem 0;
  border-top: 1px solid #e0e0e0;
  font-size: 0.85rem;
  color: #9e9e9e;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.875rem;
  color: #757575;
  margin-bottom: 1.25rem;
}
.breadcrumb a {
  color: #4361ee;
}
.breadcrumb .sep {
  margin: 0 0.4rem;
  color: #bdbdbd;
}

/* Project meta card */
.project-meta-card {
  margin-bottom: 1.5rem;
}
.project-meta-card h2 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: #1a1a2e;
}
.project-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1rem;
  font-size: 0.9rem;
}
.project-meta dt {
  color: #757575;
  font-weight: 600;
}
.project-meta dd {
  margin: 0;
}
.project-meta code {
  background: #f1f5f9;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.85rem;
}
.meta-dim {
  color: #9e9e9e;
  font-size: 0.85rem;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}
.badge-direction,
.badge-pull {
  background: #dbeafe;
  color: #1d4ed8;
}
.badge-push {
  background: #fce7f3;
  color: #be185d;
}
.badge-both {
  background: #e0e7ff;
  color: #4338ca;
}
.badge-action {
  background: #f0f4f8;
  color: #475569;
}
.badge-action.badge-pull {
  background: #dbeafe;
  color: #1d4ed8;
}
.badge-action.badge-push {
  background: #fce7f3;
  color: #be185d;
}
.badge-status {
  background: #f0f4f8;
  color: #475569;
}
.badge-status.badge-success {
  background: #dcfce7;
  color: #15803d;
}
.badge-status.badge-failure {
  background: #fee2e2;
  color: #b91c1c;
}
.badge-status.badge-skipped {
  background: #fef9c3;
  color: #a16207;
}

/* Log sections */
.log-section {
  margin-bottom: 2rem;
}
.log-section h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #1a1a2e;
}

/* Event table */
.event-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.event-table th,
.event-table td {
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #e2e8f0;
}
.event-table th {
  font-weight: 600;
  color: #64748b;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.event-table tbody tr:hover {
  background: #f8fafc;
}
.event-table .cell-ts {
  white-space: nowrap;
  color: #64748b;
}
.event-table .cell-error {
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #94a3b8;
}
.event-table .event-failure .cell-error {
  color: #b91c1c;
}

/* htmx indicator */
.htmx-indicator {
  display: none;
}

.htmx-request .htmx-indicator {
  display: inline-block;
}
