/* Ensure logo container is visible and doesn't collapse */
.site-logo {
  min-width: 150px;
  min-height: 40px;
  display: flex;
  align-items: center;
}
/* SiteReport logo theme swap */
.logo-img {
  max-width: 150px;
  height: auto;
}
.logo-light {
  display: block;
}
.logo-dark {
  display: none;
}
body.dark-mode .logo-light {
  display: none !important;
}
body.dark-mode .logo-dark {
  display: block !important;
}
footer.site-footer {
  text-align: center;
  padding-top: 2rem;
  padding-bottom: 1rem;
  margin-top: auto;
  width: 100%;
}
header.site-header {
  padding-top: 1rem;
  padding-bottom: 1rem;
  margin-top: auto;
  width: 100%;
}
body.dark-mode header.site-header,
body.dark-mode footer.site-footer {
  background: #f1f1f1 !important;
  color: #181a1b !important;
}
body.light-mode header.site-header,
body.light-mode footer.site-footer {
  background: #181a1b !important;
  color: #ffffff !important;
}

body.dark-mode header.site-header .lead {
  color: #b0b3b8 !important;
}
body.light-mode header.site-header .lead {
  color: #6c757d !important;
}
/* Theme toggle button/icon visibility fixes */
body.light-mode #themeToggle.btn-outline-secondary {
  border-color: #212529;
  color: #212529;
  background: #fff;
}
body.light-mode #themeToggle #themeIcon.fa-sun {
  color: #212529 !important;
}
body.dark-mode #themeToggle.btn-outline-light {
  border-color: #212529;
  color: #212529;
  background: #fff;
}
body.dark-mode #themeToggle #themeIcon.fa-moon {
  color: #212529 !important;
}
/* --- Dark/Light Mode Theme Styles --- */
body.dark-mode {
  background-color: #181a1b !important;
  color: #f1f1f1 !important;
}
body.light-mode {
  background-color: #f8f9fa !important;
  color: #212529 !important;
}

body.dark-mode .card,
body.dark-mode .modal-content {
  background-color: #23272b !important;
  color: #f1f1f1 !important;
  border-color: #343a40 !important;
}
body.light-mode .card,
body.light-mode .modal-content {
  background-color: #fff !important;
  color: #212529 !important;
  border-color: #dee2e6 !important;
}

body.dark-mode .btn-primary {
  background-color: #375a7f;
  border-color: #375a7f;
}
body.light-mode .btn-primary {
  background-color: #0d6efd;
  border-color: #0d6efd;
}

body.dark-mode .btn-outline-light {
  color: #f1f1f1;
  border-color: #f1f1f1;
}
body.light-mode .btn-outline-dark {
  color: #212529;
  border-color: #212529;
}

body.dark-mode .text-muted {
  color: #b0b3b8 !important;
}
body.light-mode .text-muted {
  color: #6c757d !important;
}

body.dark-mode .table {
  color: #f1f1f1;
}
body.dark-mode .table thead {
  background-color: #23272b;
}
body.dark-mode .table-striped > tbody > tr:nth-of-type(odd) {
  background-color: #23272b;
}

body.light-mode .table {
  color: #212529;
}
body.light-mode .table thead {
  background-color: #f8f9fa;
}
body.light-mode .table-striped > tbody > tr:nth-of-type(odd) {
  background-color: #f8f9fa;
}
#landingScreen main {
  padding: 2rem;
}

#landingScreen .card {
  border-radius: 10px;
}

#landingScreen .card .card {
  border-radius: 8px;
}

#landingScreen .fab {
  color: #6c757d;
  transition: color 0.2s;
}

#landingScreen .fab:hover {
  color: #333;
}
html,
body {
  overflow-x: hidden; /* Prevent horizontal scrollbars */
}

main .card {
  margin-left: auto;
  margin-right: auto;
}
.stage-widget {
  border: 1px solid #e0e0e0;
}

.stage {
  flex: 1;
  position: relative;
}

.stage-circle {
  width: 40px;
  height: 40px;
  line-height: 40px;
  border-radius: 50%;
  background-color: #dee2e6;
  color: #495057;
  font-weight: bold;
  margin: 0 auto 8px auto;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.stage.active .stage-circle {
  background-color: #0d6efd;
  color: white;
}

.stage-label {
  font-size: 0.9rem;
  color: #6c757d;
}

.hero-section {
  border-radius: 10px;
}

.badge-preview {
  border: 1px solid #e9ecef;
  transition: transform 0.2s ease;
}

.badge-preview:hover {
  transform: scale(1.03);
}

.hero-section ul li {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}
#historyDropdown {
  min-width: 50%;
  max-width: 300px;
  left: 0;
  max-height: 200px;
  overflow-y: auto;
}
#historyDropdown button {
  text-align: left;
  padding: 8px 12px;
  font-size: 0.9rem;
}

#historyDropdown button:hover {
  background-color: #f1f1f1;
}

#progressModal .modal-content {
  background: transparent; /* Let the card provide background */
  box-shadow: none; /* Remove default modal shadow */
}

#progressModal .card {
  border-radius: 12px;
  background: #fff;
}

#progressModal .card-body h5 {
  font-size: 1.25rem;
  color: #333;
}

#progressModal .progress {
  background-color: #f1f1f1;
}
:root {
  --bg-color: #f8f9fa;
  --text-color: #212529;
  --accent-blue: #1e90ff;
}
.dashboard-cockpit {
  color: var(--text-color);
}
.cockpit-title a {
  color: var(--accent-blue);
  text-decoration: none;
}
.cockpit-gauges canvas {
  max-width: 150px;
  margin: 0 auto;
}
.metric-tile {
  position: relative;
}
.metric-tile .sparkline {
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 20px;
}
.insights-list li {
  padding: 4px 0;
  transition: color 0.3s;
}
.insights-list li:hover {
  color: var(--accent-blue);
}
.cockpit-radar {
  text-align: center;
  background: var(--bg-color);
  border-radius: 8px;
  overflow: hidden;
}

.radar-container {
  position: relative;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle at center, #1e90ff44 0%, transparent 70%);
  box-shadow: inset 0 0 20px #1e90ff, 0 0 20px #1e90ff44;
}

.radar-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  background: #1e90ff;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px #1e90ff, 0 0 15px #1e90ff;
  animation: pulseDot 1.5s infinite ease-in-out;
}

@keyframes pulseDot {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0.6;
  }
}
.hero-screenshot {
  width: 290px;
  height: 200px;
  overflow: hidden;
  border-radius: 10px; /* optional rounded corners */
  position: relative; /* for absolute positioning of placeholders if needed */
}

.hero-screenshot img {
  display: block; /* removes default inline gap */
  width: 100%;
  height: 100%;
  object-fit: cover; /* cover ensures it fills the box, cropping instead of stretching */
}

.logos-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  height: 2rem;
}

.logos-track {
  display: flex;
  gap: 3rem; /* same spacing as before */
  font-size: 1.5rem;
  animation: scroll 25s linear infinite; /* adjust speed */
}

.logos-track i {
  flex: 0 0 auto;
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  } /* scroll halfway to loop */
}

.site-footer {
  background: #111;
  color: #ccc;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.site-footer a {
  color: #1e90ff;
  text-decoration: none;
}
.site-footer a:hover {
  text-decoration: underline;
}
.footer-icons i {
  font-size: 1.2rem;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}
.footer-icons i:hover {
  opacity: 1;
}
.site-footer i:hover {
  color: #1e90ff;
  transform: scale(1.1);
  transition: all 0.2s ease;
}
.site-header .container {
  display: flex;
  align-items: center; /* Ensure vertical alignment */
  justify-content: space-between;
  padding: 0rem 0rem;
}

.site-header img.logo-img {
  max-height: 50px;
}

.site-header .lead {
  line-height: 1.2;
}
.site-header p {
  margin-bottom: 0;
}
.modal-divider {
  border: none;
  height: 2px;
  margin: 0.5rem 0 1rem 0;
  background: linear-gradient(to right, #ddd, #aaa, #ddd);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4),
    0 1px 2px rgba(0, 0, 0, 0.2);
  border-radius: 2px;
}

/* Custom column counts: 5, 7, 8 */
.row-cols-5 > * {
  flex: 0 0 auto;
  width: 20%; /* 100 / 5 */
}
.row-cols-7 > * {
  flex: 0 0 auto;
  width: 14.2857%; /* 100 / 7 */
}
.row-cols-8 > * {
  flex: 0 0 auto;
  width: 12.5%; /* 100 / 8 */
}

@media (min-width: 576px) {
  .row-cols-sm-5 > * {
    width: 20%;
  }
  .row-cols-sm-7 > * {
    width: 14.2857%;
  }
  .row-cols-sm-8 > * {
    width: 12.5%;
  }
}

@media (min-width: 768px) {
  .row-cols-md-5 > * {
    width: 20%;
  }
  .row-cols-md-7 > * {
    width: 14.2857%;
  }
  .row-cols-md-8 > * {
    width: 12.5%;
  }
}

@media (min-width: 992px) {
  .row-cols-lg-5 > * {
    width: 20%;
  }
  .row-cols-lg-7 > * {
    width: 14.2857%;
  }
  .row-cols-lg-8 > * {
    width: 12.5%;
  }
}

@media (min-width: 1200px) {
  .row-cols-xl-5 > * {
    width: 20%;
  }
  .row-cols-xl-7 > * {
    width: 14.2857%;
  }
  .row-cols-xl-8 > * {
    width: 12.5%;
  }
}

@media (min-width: 1400px) {
  .row-cols-xxl-5 > * {
    width: 20%;
  }
  .row-cols-xxl-7 > * {
    width: 14.2857%;
  }
  .row-cols-xxl-8 > * {
    width: 12.5%;
  }
}
/* HUD Dashboard Styles */
.hud-dashboard {
  margin: 24px auto;
  padding: 12px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 24px 0 rgba(0, 0, 0, 0.1);
  border: 1px solid #dee2e6;
  position: relative;
}

.hud-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.08);
  border: 1px solid #dee2e6;
  padding: 8px 12px;
  margin-bottom: 12px;
  color: #212529;
  position: relative;
  min-height: 120px;
  transition: background 0.3s, border 0.3s;
}

.hud-content {
  margin-top: 2px;
  max-height: 70px;
  overflow-y: auto;
  padding-right: 2px;
  font-size: 0.89rem;
  font-family: "Fira Mono", "Consolas", "Menlo", "Monaco", "Liberation Mono",
    monospace;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.hud-card .hud-icon {
  font-size: 1.2rem;
  margin-right: 8px;
  vertical-align: middle;
  color: #212529 !important;
  text-shadow: none !important;
}

.hud-card .hud-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 0.1rem;
  margin-left: 0;
  margin-top: 0;
  padding-left: 0;
  padding-top: 0;
  text-align: left;
  .hud-divider {
    width: 92%;
    margin: 0.15rem 0 0.5rem 0;
    border: none;
    border-top: 1.5px solid #e9ecef;
    box-shadow: 0 1px 0 #fff inset;
    height: 0;
    background: none;
  }
}

.hud-card .hud-value {
  font-size: 0.93rem;
  font-weight: 700;
  float: right;
  color: #212529;
  text-shadow: none;
  font-family: "Fira Mono", "Consolas", "Menlo", "Monaco", "Liberation Mono",
    monospace;
  letter-spacing: 0.01em;
}

.hud-card .hud-sub {
  font-size: 0.8rem;
  color: #aaa;
  margin-top: 2px;
}

.hud-card:hover {
  background: rgba(24, 26, 32, 1);
  border-color: #0ff;
  box-shadow: 0 0 16px 0 #0ff2;
}

.hud-section {
  margin-bottom: 6px;
}

.hud-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

@media (max-width: 900px) {
  .hud-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .hud-dashboard {
    padding: 4px;
  }

  .hud-grid {
    grid-template-columns: 1fr;
  }
}

/* Light mode overrides */
body.light-mode {
  --hud-bg: #f7f8fa;
  --hud-fg: #222;
}

body.light-mode .hud-dashboard {
  background: #fff;
  border-color: #dee2e6;
  box-shadow: 0 4px 24px 0 rgba(0, 0, 0, 0.1);
}
body.light-mode .hud-card {
  background: #fff;
  color: #212529;
  border-color: #dee2e6;
}
body.light-mode .hud-card .hud-value {
  color: #212529;
  text-shadow: none;
}
