/**
 * InfoTech Backup web UI theme.
 * Tokens aligned with workspace _assets/design/tokens/infotech-core.json
 */
:root {
  --infotech-blue-primary: #006bac;
  --infotech-blue-hover: #00568e;
  --infotech-blue-pressed: #004a7d;
  --infotech-navy-black: #00153b;
  --infotech-navy-blue: #003b68;
  --infotech-gold-accent: #e2b927;
  --infotech-white: #ffffff;
  --infotech-off-white: #f9fafc;
  --infotech-blue-tint-10: #e6f1f8;
  --infotech-border: #d6e6f0;
  --infotech-success: #3db67b;
  --infotech-warning: #ebbc43;
  --infotech-error: #d66c7b;
  --infotech-navbar-height: 64px;
}

body.infotech-backup-ui {
  padding-top: var(--infotech-navbar-height) !important;
}

.navbar.infotech-navbar-light {
  background-color: var(--infotech-white) !important;
  border-color: var(--infotech-border) !important;
  border-bottom: 1px solid var(--infotech-border);
  box-shadow: 0 1px 4px rgba(0, 21, 59, 0.08);
  min-height: var(--infotech-navbar-height);
  margin-bottom: 0;
}

.navbar.infotech-navbar-light .container-fluid {
  min-height: var(--infotech-navbar-height);
}

.navbar.infotech-navbar-light .navbar-brand,
.navbar.infotech-navbar-light .navbar-nav > li > a {
  color: var(--infotech-navy-black) !important;
}

.navbar.infotech-navbar-light .navbar-brand.infotech-navbar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 4px;
  padding-bottom: 4px;
  margin-top: 0;
  margin-bottom: 0;
  height: auto;
}

.navbar.infotech-navbar-light .navbar-nav > li > a {
  padding-top: 22px;
  padding-bottom: 22px;
}

.infotech-navbar-wordmark {
  height: 56px;
  width: auto;
  max-width: min(420px, 72vw);
  display: block;
}

.infotech-product-name {
  color: var(--infotech-navy-blue);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.02em;
  line-height: 1;
  padding-left: 14px;
  border-left: 1px solid rgba(0, 21, 59, 0.18);
  white-space: nowrap;
}

.navbar.infotech-navbar-light .navbar-nav > li > a:hover,
.navbar.infotech-navbar-light .navbar-nav > li > a:focus {
  color: var(--infotech-blue-primary) !important;
  background-color: var(--infotech-blue-tint-10) !important;
}

.navbar.infotech-navbar-light .navbar-nav > .active > a,
.navbar.infotech-navbar-light .navbar-nav > .active > a:hover,
.navbar.infotech-navbar-light .navbar-nav > .active > a:focus {
  background-color: var(--infotech-blue-primary) !important;
  color: var(--infotech-white) !important;
}

.navbar.infotech-navbar-light .navbar-toggle {
  border-color: var(--infotech-border);
  margin-top: 15px;
  margin-bottom: 15px;
}

.navbar.infotech-navbar-light .navbar-toggle .icon-bar {
  background-color: var(--infotech-navy-black);
}

.navbar.infotech-navbar-light .navbar-toggle:hover,
.navbar.infotech-navbar-light .navbar-toggle:focus {
  background-color: var(--infotech-blue-tint-10);
}

.btn-primary,
.btn-primary:focus {
  background-color: var(--infotech-blue-primary);
  border-color: var(--infotech-blue-hover);
}

.btn-primary:hover,
.btn-primary:active,
.btn-primary.active {
  background-color: var(--infotech-blue-hover);
  border-color: var(--infotech-blue-pressed);
}

a {
  color: var(--infotech-blue-primary);
}

a:hover,
a:focus {
  color: var(--infotech-blue-hover);
}

.panel-primary > .panel-heading {
  background-color: var(--infotech-navy-blue);
  border-color: var(--infotech-navy-blue);
  color: var(--infotech-white);
}

.panel-default > .panel-heading {
  background-color: var(--infotech-blue-tint-10);
  border-color: var(--infotech-border);
  color: var(--infotech-navy-black);
}

.nav-pills > li.active > a,
.nav-pills > li.active > a:hover,
.nav-pills > li.active > a:focus {
  background-color: var(--infotech-blue-primary);
}

.progress-bar {
  background-color: var(--infotech-blue-primary);
}

#nprogress .bar {
  background: var(--infotech-gold-accent);
}

#nprogress .peg {
  box-shadow: 0 0 10px var(--infotech-gold-accent), 0 0 5px var(--infotech-gold-accent);
}

.well {
  background-color: var(--infotech-off-white);
}

#content .btn-default[type="submit"] {
  color: var(--infotech-white);
  background-color: var(--infotech-blue-primary);
  border-color: var(--infotech-blue-hover);
}

#content .btn-default[type="submit"]:hover,
#content .btn-default[type="submit"]:focus {
  color: var(--infotech-white);
  background-color: var(--infotech-blue-hover);
  border-color: var(--infotech-blue-pressed);
}

/* Phase C — Status above-the-fold protection overview (Cove/Datto-class) */
.infotech-status-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 16px;
}

.infotech-status-summary-tile {
  flex: 1 1 140px;
  min-width: 140px;
  max-width: 240px;
  background: var(--infotech-off-white);
  border: 1px solid var(--infotech-border);
  border-left: 4px solid var(--infotech-blue-primary);
  border-radius: 2px;
  padding: 12px 14px;
}

.infotech-status-summary-protected {
  border-left-color: var(--infotech-success);
}

.infotech-status-summary-attention {
  border-left-color: var(--infotech-error);
}

.infotech-status-summary-ok {
  border-left-color: var(--infotech-success);
}

.infotech-status-summary-label {
  color: var(--infotech-navy-blue);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.infotech-status-summary-value {
  color: var(--infotech-navy-black);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.15;
}

.infotech-status-summary-of {
  color: var(--infotech-navy-blue);
  font-size: 18px;
  font-weight: 500;
}

.infotech-status-summary-time {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  word-break: break-word;
}

@media (max-width: 767px) {
  .infotech-status-summary-tile {
    max-width: none;
  }
}

/* Phase C — Recovery Launchpad (Cove/Datto-class restore entry) */
.infotech-recovery-launchpad {
  background: var(--infotech-off-white);
  border: 1px solid var(--infotech-border);
  border-left: 4px solid var(--infotech-blue-primary);
  border-radius: 2px;
  padding: 14px 16px;
  margin: 0 0 16px;
}

.infotech-recovery-launchpad-title {
  color: var(--infotech-navy-black);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 4px;
}

.infotech-recovery-launchpad-blurb {
  color: var(--infotech-navy-blue);
  font-size: 13px;
  margin: 0 0 12px;
  max-width: 52em;
}

.infotech-recovery-launchpad-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 16px;
}

.infotech-recovery-launchpad-picker {
  flex: 1 1 220px;
  max-width: 320px;
}

.infotech-recovery-launchpad-picker-label {
  display: block;
  color: var(--infotech-navy-blue);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.infotech-recovery-launchpad-select {
  max-width: 100%;
}

.infotech-recovery-launchpad-device {
  color: var(--infotech-navy-black);
  font-size: 14px;
  padding-bottom: 2px;
}

.infotech-recovery-launchpad-device-label {
  display: block;
  color: var(--infotech-navy-blue);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.infotech-recovery-launchpad-device-id {
  color: var(--infotech-navy-blue);
  font-size: 12px;
  margin-left: 8px;
}

.infotech-recovery-launchpad-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.infotech-recovery-btn .glyphicon {
  margin-right: 6px;
}

.infotech-recovery-launchpad-hint {
  color: var(--infotech-navy-blue);
  font-size: 12px;
  margin-top: 12px;
  opacity: 0.9;
}

/* Phase C — light Protection plans strip from status JSON */
.infotech-protection-plans {
  margin: 0 0 16px;
}

.infotech-protection-plans-title {
  color: var(--infotech-navy-blue);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.infotech-protection-plans-tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.infotech-protection-plans-tile {
  flex: 1 1 160px;
  min-width: 160px;
  max-width: 280px;
  background: var(--infotech-off-white);
  border: 1px solid var(--infotech-border);
  border-radius: 2px;
  padding: 10px 12px;
}

.infotech-protection-plans-label {
  color: var(--infotech-navy-blue);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.infotech-protection-plans-value {
  color: var(--infotech-navy-black);
  font-size: 16px;
  font-weight: 600;
}

.infotech-protection-plans-meta {
  color: var(--infotech-navy-blue);
  font-size: 12px;
  margin-top: 4px;
}

.infotech-protection-plans-cta a {
  color: var(--infotech-blue-primary);
  font-weight: 600;
  text-decoration: none;
}

.infotech-protection-plans-cta a:hover,
.infotech-protection-plans-cta a:focus {
  color: var(--infotech-blue-hover);
  text-decoration: underline;
}

@media (max-width: 767px) {
  .infotech-protection-plans-tile {
    max-width: none;
  }
}
