:root {
  --opti-navy: #071244;
  --opti-navy-2: #101b4d;
  --opti-gold: #c99f33;
  --opti-gold-soft: #f7f0dc;
  --opti-bg: #f3f6fa;
}

body.optiskor-body {
  background: var(--opti-bg);
  color: #071426;
}

.hidden {
  display: none !important;
}

.fw-black {
  font-weight: 900;
}

.ls-1 {
  letter-spacing: .08em;
}

.btn.btn-primary,
.badge.badge-light-primary {
  --bs-primary: var(--opti-gold);
  --bs-primary-rgb: 201, 159, 51;
}

.btn.btn-primary {
  background-color: var(--opti-gold);
  border-color: var(--opti-gold);
}

.btn.btn-primary:hover,
.btn.btn-primary:focus {
  background-color: #b68d29;
  border-color: #b68d29;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 15% 12%, rgba(201, 159, 51, .18), transparent 27%),
    radial-gradient(circle at 85% 20%, rgba(7, 18, 68, .12), transparent 24%),
    linear-gradient(135deg, #fff 0%, #edf2f8 100%);
}

.login-card {
  width: min(500px, 100%);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(7, 18, 68, .15);
}

.opti-sidebar {
  width: 280px;
  min-width: 280px;
  background: var(--opti-navy);
  min-height: calc(100vh - 74px);
}

.bg-primary-dark {
  background: rgba(255, 255, 255, .06);
}

.nav-btn {
  width: 100%;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, .82);
  text-align: left;
  margin-bottom: 6px;
  cursor: pointer;
}

.nav-btn .menu-icon {
  color: rgba(255, 255, 255, .55);
}

.nav-btn.active,
.nav-btn:hover {
  color: #fff;
  background: rgba(201, 159, 51, .22);
}

.nav-btn.active .menu-icon,
.nav-btn:hover .menu-icon {
  color: var(--opti-gold);
}

.app-main {
  min-width: 0;
}

.card {
  border-radius: 8px;
  border-color: #dce3ec;
}

.opti-gauge {
  --score: 0;
  width: 214px;
  height: 214px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, #fff 0 58%, transparent 59%),
    conic-gradient(#15a06f calc(var(--score) * 1%), #e8eef5 0);
}

.opti-gauge div {
  text-align: center;
}

.opti-gauge span {
  font-size: 48px;
  line-height: 1;
  font-weight: 900;
  color: var(--opti-navy);
}

.opti-gauge small {
  font-weight: 800;
  color: #7d89a1;
}

.opti-flag {
  display: block;
  width: 44px;
  height: 9px;
  border-radius: 99px;
  margin-bottom: 18px;
}

.perspective-card {
  overflow: hidden;
  position: relative;
}

.perspective-card::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -34px;
  width: 104px;
  height: 104px;
  border-radius: 999px;
  background: rgba(201, 159, 51, .12);
}

.metric-list {
  display: grid;
  gap: 12px;
}

.metric-card {
  border: 1px solid #dce3ec;
  border-radius: 8px;
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) 130px 110px 110px 140px;
  align-items: center;
  gap: 12px;
  background: #fff;
}

.metric-title {
  min-width: 0;
}

.metric-title strong {
  display: block;
  font-weight: 900;
  color: var(--opti-navy);
}

.health {
  display: inline-flex;
  justify-content: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.health.green {
  color: #067a55;
  background: #dcf5ec;
}

.health.yellow {
  color: #9a6a00;
  background: #fff4d5;
}

.health.red {
  color: #b42318;
  background: #ffe5e5;
}

.health.unknown {
  color: #68758b;
  background: #eef2f7;
}

.connector-list {
  margin: 0;
}

.connector-card {
  border: 1px solid #dce3ec;
  border-radius: 8px;
  padding: 18px;
  background: #fff;
  height: 100%;
}

.segment.active {
  background: var(--opti-navy) !important;
  border-color: var(--opti-navy) !important;
  color: #fff !important;
}

@media (max-width: 991px) {
  .app-wrapper {
    display: block;
  }

  .opti-sidebar {
    width: 100%;
    min-width: 0;
    min-height: auto;
  }

  .opti-sidebar .menu {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .opti-sidebar .mx-6 {
    display: none;
  }

  .metric-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575px) {
  .opti-sidebar .menu {
    grid-template-columns: 1fr;
  }

  .app-container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .opti-gauge {
    width: 180px;
    height: 180px;
  }
}
