/* ==================================================
   NOVA — Command Bridge
   File: bridge.css
   Path: /var/www/nova.30thparallellabs.com/public_html/assets/css/bridge.css
   Version: v0.1.0-FRESH
   Created: 2026-05-09
================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  background: #02040a;
  color: #edf2ff;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.bridge-background {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at top left, rgba(75, 127, 255, 0.28), transparent 34%),
    radial-gradient(circle at top right, rgba(255, 217, 102, 0.18), transparent 28%),
    linear-gradient(135deg, #02040a 0%, #071124 45%, #02040a 100%);
}

.bridge-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 28px;
}

.bridge-header {
  text-align: center;
  padding: 44px 24px 34px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 28px;
  background: rgba(7, 17, 36, 0.72);
  box-shadow: 0 24px 90px rgba(0,0,0,0.45);
  backdrop-filter: blur(14px);
}

.eyebrow {
  margin: 0 0 10px;
  color: #ffd966;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1 {
  margin: 0;
  font-size: clamp(3.8rem, 10vw, 8rem);
  line-height: 0.9;
  letter-spacing: 0.08em;
}

h2 {
  margin: 14px 0 0;
  color: #cdd8ff;
  font-size: clamp(1.25rem, 3vw, 2.2rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.subtitle {
  margin: 18px auto 0;
  max-width: 620px;
  color: #b8c4e6;
  font-size: 1.05rem;
}

.status-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}

.status-bar > div,
.panel {
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(12, 26, 54, 0.68);
  box-shadow: 0 20px 60px rgba(0,0,0,0.28);
  backdrop-filter: blur(12px);
}

.status-bar > div {
  display: grid;
  gap: 3px;
  padding: 16px;
  border-radius: 18px;
}

.status-bar strong {
  font-size: 0.95rem;
}

.status-bar small {
  color: #aebbe0;
}

.status-dot {
  width: 11px;
  height: 11px;
  display: inline-block;
  border-radius: 50%;
  margin-bottom: 4px;
}

.status-dot.online {
  background: #6dffb3;
  box-shadow: 0 0 18px rgba(109, 255, 179, 0.85);
}

.status-dot.standby {
  background: #ffd966;
  box-shadow: 0 0 18px rgba(255, 217, 102, 0.65);
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.panel {
  padding: 22px;
  border-radius: 22px;
}

.panel h3 {
  margin: 0 0 12px;
  color: #ffd966;
}

.panel p {
  margin: 0;
  color: #d8e0ff;
  line-height: 1.55;
}

.primary-panel {
  grid-column: span 2;
}

.wide-panel {
  margin-top: 16px;
}

.anchor {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.86rem;
  color: #ffffff !important;
  word-break: break-word;
}

code {
  display: block;
  margin: 8px 0 18px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(0,0,0,0.35);
  color: #dfe8ff;
  overflow-x: auto;
}

.bridge-footer {
  margin-top: 26px;
  text-align: center;
  color: #9faed4;
  font-size: 0.85rem;
}

@media (max-width: 900px) {
  .status-bar,
  .panel-grid {
    grid-template-columns: 1fr 1fr;
  }

  .primary-panel {
    grid-column: span 2;
  }
}

@media (max-width: 620px) {
  .status-bar,
  .panel-grid {
    grid-template-columns: 1fr;
  }

  .primary-panel {
    grid-column: span 1;
  }

  .bridge-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 18px;
  }
}

/* ---------- HEALTH + MODULE REGISTRY ---------- */

.health-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.health-grid strong {
  display: block;
  margin-bottom: 4px;
  color: #ffd966;
}

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

.module-row {
  padding: 16px;
  border-radius: 16px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.1);
}

.module-row strong {
  display: block;
  color: #edf2ff;
}

.module-row span {
  display: inline-block;
  margin: 8px 0;
  color: #ffd966;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.module-row p {
  color: #b8c4e6;
}

@media (max-width: 720px) {
  .health-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- BRIDGE NAV ---------- */

.bridge-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 20px 0 22px;
}

.bridge-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 11px 16px;
  border-radius: 999px;
  color: #dfe8ff;
  text-decoration: none;
  background: rgba(12, 26, 54, 0.68);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 12px 35px rgba(0,0,0,0.2);
}

.bridge-nav a:hover,
.bridge-nav a.active {
  color: #071124;
  background: #ffd966;
}

.danger-panel {
  border-color: rgba(255, 115, 115, 0.45);
  background: rgba(70, 12, 24, 0.55);
}

.danger-panel h3 {
  color: #ffb3b3;
}

/* ---------- LOGIN FORM ---------- */

.login-form {
  display: grid;
  gap: 16px;
  margin-top: 20px;
  max-width: 460px;
}

.login-form label {
  display: grid;
  gap: 8px;
  color: #ffd966;
  font-weight: 700;
}

.login-form input {
  width: 100%;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.35);
  color: #edf2ff;
  font: inherit;
}

.login-form button,
.button-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  border: 0;
  background: #ffd966;
  color: #071124;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.form-error {
  margin-top: 16px !important;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 115, 115, 0.14);
  border: 1px solid rgba(255, 115, 115, 0.38);
  color: #ffd4d4 !important;
}

/* ---------- AUDIT TABLE ---------- */

.audit-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-top: 18px;
}

.audit-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.audit-table th,
.audit-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  text-align: left;
}

.audit-table th {
  color: #ffd966;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.audit-table td {
  color: #d8e0ff;
  font-size: 0.9rem;
}

/* ---------- SESSION NOTE ---------- */

.session-note {
  margin-top: 18px !important;
  color: #aebbe0 !important;
  font-size: 0.92rem;
}

/* ---------- DIAGNOSTICS GRID ---------- */

.diagnostics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.diagnostic-card {
  padding: 16px;
  border-radius: 16px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.1);
}

.diagnostic-card strong {
  display: block;
  color: #ffd966;
  margin-bottom: 8px;
}

.diagnostic-pre {
  white-space: pre-wrap;
  overflow-x: auto;
  padding: 16px;
  border-radius: 16px;
  background: rgba(0,0,0,0.32);
  color: #d8e0ff;
  border: 1px solid rgba(255,255,255,0.1);
  line-height: 1.5;
}

@media (max-width: 760px) {
  .diagnostics-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- ADMIN CARD GRID ---------- */

.admin-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.admin-card-value {
  margin: 0 0 10px !important;
  color: #ffd966 !important;
  font-size: 1.4rem;
  font-weight: 800;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 9px 13px;
  border-radius: 999px;
  color: #071124;
  background: #ffd966;
  font-weight: 800;
}

@media (max-width: 760px) {
  .admin-card-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- LEDGER GRID ---------- */

.ledger-grid {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.ledger-card {
  overflow: hidden;
}

.ledger-source {
  margin-bottom: 12px !important;
  color: #ffd966 !important;
  font-size: 0.9rem;
}

.ledger-pre {
  max-height: 420px;
  overflow: auto;
  white-space: pre-wrap;
  padding: 16px;
  border-radius: 16px;
  background: rgba(0,0,0,0.32);
  color: #d8e0ff;
  border: 1px solid rgba(255,255,255,0.1);
  line-height: 1.5;
}

/* ---------- BAY GRID ---------- */

.bay-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.bay-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.bay-category {
  margin-bottom: 12px !important;
  color: #ffd966 !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
}

.bay-meta {
  display: grid;
  gap: 6px;
  margin-top: 18px;
}

.bay-meta strong {
  color: #ffd966;
}

@media (max-width: 840px) {
  .bay-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- BAY DETAIL GRID ---------- */

.bay-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.bay-card-actions {
  margin-top: 18px !important;
}

.bay-list {
  color: #d8e0ff;
  line-height: 1.65;
}

.bay-list li {
  margin-bottom: 8px;
}

@media (max-width: 840px) {
  .bay-detail-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- READINESS TABLE ---------- */

.readiness-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-top: 18px;
}

.readiness-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 920px;
}

.readiness-table th,
.readiness-table td {
  padding: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  text-align: left;
  vertical-align: top;
}

.readiness-table th {
  color: #ffd966;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.readiness-table td {
  color: #d8e0ff;
  font-size: 0.92rem;
}

.readiness-table a {
  color: #ffd966;
  font-weight: 700;
}

.compact-list {
  margin: 0;
  padding-left: 18px;
}

.compact-list li {
  margin-bottom: 6px;
}

.policy-list {
    margin: 1rem 0 0;
    padding-left: 1.5rem;
}

.policy-list li {
    margin: 0.45rem 0;
    line-height: 1.5;
}

code {
    display: inline-block;
    padding: 0.75rem 1rem;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.28);
    color: #f7dc63;
    font-weight: 700;
    letter-spacing: 0.04em;
}

/* NOVA v0.16.0 Protected Ops Queue */
.ops-queue-panel strong,
.ops-table strong {
  color: var(--nova-gold, #f5d45d);
}

.ops-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-top: 1.25rem;
}

.ops-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

.ops-table th,
.ops-table td {
  text-align: left;
  vertical-align: top;
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

.ops-table th {
  color: var(--nova-gold, #f5d45d);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.ops-pill,
.ops-risk {
  display: inline-block;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(245, 212, 93, 0.16);
  color: var(--nova-gold, #f5d45d);
  font-weight: 700;
}

.ops-list {
  margin: 0;
  padding-left: 1.2rem;
}

.ops-list li {
  margin-bottom: 0.35rem;
}

/* Command Bridge stable module launches */
.module-launch-card{
  margin-top:1rem;
}

.module-launch-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:1rem;
  margin-top:1rem;
}

.module-launch{
  display:flex;
  flex-direction:column;
  gap:.45rem;
  padding:1rem;
  border:1px solid rgba(255,255,255,.12);
  border-radius:1rem;
  background:rgba(255,255,255,.045);
  color:inherit;
  text-decoration:none;
  transition:transform .18s ease, border-color .18s ease, background .18s ease;
}

.module-launch:hover{
  transform:translateY(-2px);
  border-color:rgba(255,217,102,.55);
  background:rgba(255,255,255,.075);
}

.module-launch-kicker{
  width:max-content;
  padding:.22rem .55rem;
  border-radius:999px;
  background:rgba(255,217,102,.14);
  color:var(--gold);
  font-size:.75rem;
  font-weight:800;
  letter-spacing:.06em;
}

.module-launch strong{
  font-size:1.1rem;
}

.module-launch span:last-child{
  color:var(--muted);
  line-height:1.45;
}

@media (max-width:760px){
  .module-launch-grid{
    grid-template-columns:1fr;
  }
}


/* Command Bridge module launch visual correction */
.module-launch-card .module-launch-grid{
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:1rem !important;
  margin-top:1rem !important;
}

.module-launch-card .module-launch{
  display:flex !important;
  flex-direction:column !important;
  gap:.45rem !important;
  padding:1rem !important;
  border:1px solid rgba(255,255,255,.14) !important;
  border-radius:1rem !important;
  background:rgba(255,255,255,.055) !important;
  color:var(--text) !important;
  text-decoration:none !important;
  box-shadow:0 12px 34px rgba(0,0,0,.18) !important;
}

.module-launch-card .module-launch:hover{
  transform:translateY(-2px);
  border-color:rgba(255,217,102,.6) !important;
  background:rgba(255,255,255,.085) !important;
}

.module-launch-card .module-launch-kicker{
  display:inline-flex !important;
  width:max-content !important;
  padding:.22rem .55rem !important;
  border-radius:999px !important;
  background:rgba(255,217,102,.16) !important;
  color:var(--gold) !important;
  font-size:.75rem !important;
  font-weight:800 !important;
  letter-spacing:.06em !important;
  text-transform:uppercase !important;
}

.module-launch-card .module-launch strong{
  color:var(--text) !important;
  font-size:1.15rem !important;
}

.module-launch-card .module-launch span:last-child{
  color:var(--muted) !important;
  line-height:1.45 !important;
}

@media (max-width:760px){
  .module-launch-card .module-launch-grid{
    grid-template-columns:1fr !important;
  }
}

/* STEP 127 - Readiness responsive cleanup */
.readiness-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 18px;
}

.readiness-table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}

.readiness-table th,
.readiness-table td {
  vertical-align: top;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  line-height: 1.45;
}

.readiness-table th:nth-child(1),
.readiness-table td:nth-child(1) {
  min-width: 150px;
}

.readiness-table th:nth-child(2),
.readiness-table td:nth-child(2),
.readiness-table th:nth-child(3),
.readiness-table td:nth-child(3) {
  min-width: 130px;
}

.readiness-table th:nth-child(4),
.readiness-table td:nth-child(4) {
  min-width: 80px;
  text-align: left;
}

.readiness-table th:nth-child(5),
.readiness-table td:nth-child(5) {
  min-width: 160px;
}

.readiness-table th:nth-child(6),
.readiness-table td:nth-child(6) {
  min-width: 240px;
}

.readiness-table ul {
  margin: 0;
  padding-left: 1.2rem;
}

.readiness-table li {
  margin-bottom: 0.35rem;
}

@media (max-width: 900px) {
  .readiness-table {
    min-width: 780px;
  }

  .readiness-table th,
  .readiness-table td {
    font-size: 0.95rem;
  }
}

@media (max-width: 640px) {
  .readiness-table-wrap {
    border: 1px solid rgba(255,255,255,0.08);
  }

  .readiness-table {
    min-width: 720px;
  }
}
/* END STEP 127 */
