
:root {
  --light-bg: #f4f4f4;
  --dark-bg: #1f1f1f;
  --light-box: #ffffff;
  --dark-box: #2a2a2a;
  --light-text: #000000;
  --dark-text: #ffffff;
}

body {
  display: flex;
  font-size: 1.1rem;
  height: 100vh;
  margin: 0;
  background-color: var(--pico-background-color);
}

aside {
  width: 150px;
  background-color: var(--light-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0;
  gap: 2rem;
  border-right: 1px solid #ddd;
  transition: width 0.3s ease, background-color 0.3s ease;
}

html[data-theme='dark'] aside {
  background-color: var(--dark-bg);
}

aside a {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.8rem;
  color: #555;
  text-decoration: none;
  white-space: nowrap;
}

aside a span {
  margin-top: 0.25rem;
}

aside a.active {
  font-weight: bold;
  color: var(--primary);
}

html[data-theme='dark'] aside a.active {
  color: white;
}

main {
  flex-grow: 1;
  padding: 2rem;
  overflow-y: auto;
  color: var(--light-text);
}

html[data-theme='dark'] main {
  color: var(--dark-text);
}

.score-box {
  background-color: var(--light-box);
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  transition: background-color 0.3s ease;
  min-width: 0;
}

html[data-theme='dark'] .score-box {
  background-color: var(--dark-box);
}

.score-box h2 {
  margin-top: 0;
}

.score-number {
  font-size: clamp(1.5rem, 5vw, 3rem);
  font-weight: bold;
  color: green;
  word-break: break-word;
}

.score-description {
  color: #777;
}

.metrics ul {
  list-style: none;
  padding-left: 0;
}

.metrics li {
  margin-bottom: 0.75rem;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.status-badge {
  background: #f0ad4e;
  color: white;
  padding: 0.3rem 0.7rem;
  border-radius: 1rem;
  font-size: 0.9rem;
}

.top-bar button {
  margin-left: 1rem;
}

@media (max-width: 600px) {
  aside {
    width: 90px;
  }

  aside a span {
    display: none;
  }

  .top-bar img {
    height: 50px !important;
    margin-right: 0.25rem;
  }

  .top-bar strong {
    font-size: 0.95rem;
  }
}
.alert {
  border-left: 5px solid var(--primary);
  background-color: var(--pico-background-muted, #f5f5f5);
  padding: 1rem;
  margin: 1rem 0;
  border-radius: var(--pico-border-radius, 0.5rem);
  font-size: 1rem;
}

.alert.warning {
  border-left-color: orange;
  background-color: #fff8e1;
}

.alert.success {
  border-left-color: green;
  background-color: #e6f9ea;
}

.alert.error {
  border-left-color: red;
  background-color: #fbeaea;
}
.timeline.horizontal {
  display: flex;
  justify-content: space-between;
  list-style: none;
  padding: 0;
  counter-reset: stage;
  margin: 0 0 1rem 0;
}
.timeline.horizontal li {
  position: relative;
  text-align: center;
  flex: 1;
  color: #ccc;
}
.timeline.horizontal li::before {
  counter-increment: stage;
  content: counter(stage);
  background: #ccc;
  color: #fff;
  border-radius: 50%;
  width: 2.2rem;
  height: 2.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.5rem auto;
  font-weight: bold;
}
.timeline.horizontal li.active {
  color: #000;
}
.timeline.horizontal li.active::before {
  background: green;
}
.score-number {
  font-size: 4rem;
  font-weight: bold;
  margin: 0.5rem 0;
}

.score-good {
  color: green;
}

.score-warning {
  color: orange;
}

.score-danger {
  color: red;
}

.score-empty {
  color: grey;
}
.status-cell {
  white-space: nowrap;
  text-align: left;
}

.badge-ok {
  color: green;
  font-weight: bold;
}

.badge-fail {
  color: red;
  font-weight: bold;
}
.admin-bar {
  background-color: #f6f6f6;
  border-bottom: 1px solid #ccc;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.admin-bar-header {
  cursor: pointer;
  font-weight: bold;
  text-align: right;
}

.admin-dropdown {
  display: none;
  margin-top: 0.5rem;
}

.admin-dropdown ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.admin-dropdown ul li {
  margin: 0.2rem 0;
}

.admin-dropdown ul li a {
  color: #333;
  text-decoration: none;
}

.admin-dropdown ul li a:hover {
  text-decoration: underline;
}
.credit-pill {
  display: inline-block;
  font-size: 0.8rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background-color: var(--pico-muted-border-color);
  color: var(--pico-color);
  text-decoration: none;
  font-weight: 500;
  border: 1px solid var(--pico-muted-border-color);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.credit-pill:hover {
  background-color: var(--pico-muted-color);
  border-color: var(--pico-muted-color);
  color: var(--pico-contrast);
}