/* =========================================================
   BB'S CYBER ELITE THEME - CORE TOKENS
========================================================= */

@import url('/css/shared/font-standard.css') ;

:root {
  --bb-bg-deep: var(--theme-learning-surface-247);
  --bb-bg-surface: var(--theme-component-surface-31);
  --bb-panel: var(--theme-learning-surface-249);
  --bb-text-main: var(--theme-component-ink-18);
  --bb-text-muted: var(--theme-component-muted-13);
  --bb-kelly: var(--theme-component-primary-1);
  --bb-green: var(--theme-component-primary-100);
  --bb-cyan: var(--theme-component-info-16);
  --bb-error: var(--theme-component-error-1);
  --bb-red: var(--theme-component-error-27);
  --bb-gold: var(--theme-learning-warning-257);
  --bb-yellow: var(--theme-learning-warning-258);
  --bb-glow-primary: 0 0 20px var(--theme-component-primary-35);
  --bb-radius: 12px;
  --bb-shadow: 0 14px 50px var(--theme-learning-shadow-color-260);
  --font-tech: 'Ultra', Georgia, serif;
  --font-body: 'Geist', sans-serif;
  --font-code: 'JetBrains Mono', monospace;
  --easeOut: cubic-bezier(.16,1,.3,1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bb-bg-deep);
  color: var(--bb-text-main);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
  cursor: none;
  padding: 10px 20px;
}

/* Hide default cursor on interactive elements */

button, a, select, input, label, summary, .step-card {
  cursor: none !important;
}

/* --- TACTICAL RETICLE SYSTEM --- */

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 50px;
  height: 50px;
  border: 2px solid var(--bb-kelly);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 2147483646;
  transition: width 0.2s, height 0.2s, border-color 0.2s;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 4px var(--theme-learning-success-111);
  background-image: linear-gradient(90deg, var(--bb-kelly) 25%, transparent 25%, transparent 75%, var(--bb-kelly) 75%),
                    linear-gradient(180deg, var(--bb-kelly) 25%, transparent 25%, transparent 75%, var(--bb-kelly) 75%);
  background-position: center;
  background-size: 100% 2px, 2px 100%;
  background-repeat: no-repeat;
}

.cursor::before, .cursor::after {
  content: '';
  position: absolute;
  opacity: 0.8;
}

.cursor::before {
  width: 50%;
  height: 1px;
  border-top: 2px dotted var(--bb-kelly);
}

.cursor::after {
  height: 50%;
  width: 1px;
  border-left: 2px dotted var(--bb-kelly);
}

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 4px;
  height: 4px;
  background: var(--theme-catalog-surface-31);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 2147483647;
  box-shadow: 0 0 4px var(--theme-component-border-7);
}

.cursor.active {
  width: 70px;
  height: 70px;
  border-color: var(--theme-component-border-7);
  box-shadow: 0 0 15px var(--bb-kelly);
  background-color: var(--theme-learning-success-bg-21);
}

/* Background Grid Animation */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(var(--theme-learning-success-bg-21) 1px, transparent 1px), 
    linear-gradient(90deg, var(--theme-learning-success-bg-21) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -1;
  pointer-events: none;
}

/* =========================================================
   DASHBOARD & NAVIGATION
========================================================= */

.bb-lab {
  max-width: 1400px;
  margin: 10px auto;
  padding-bottom: 40px;
}

.bb-dashboard {
  background: var(--theme-learning-page-266);
  border: 1px solid var(--theme-learning-success-267);
  border-radius: var(--bb-radius);
  box-shadow: var(--bb-shadow);
  backdrop-filter: blur(12px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.bb-dash-head {
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--theme-learning-success-bg-268);
  border-bottom: 1px solid var(--theme-learning-success-269);
  flex-wrap: wrap;
  gap: 15px;
}

.bb-brand {
  display: flex;
  align-items: center;
  gap: 15px;
}

.bb-brand img {
  height: 45px;
  width: auto;
  filter: drop-shadow(0 0 5px var(--bb-kelly));
}

.bb-titlewrap .bb-title {
  font-family: var(--font-tech);
  font-size: 1.5rem;
  text-transform: uppercase;
  color: var(--theme-component-ink-5);
  letter-spacing: 1px;
  margin: 0;
}

.bb-titlewrap .bb-subtitle {
  font-size: 15px;
  color: var(--bb-text-muted);
}

.bb-dash-body {
  padding: 24px;
  min-height: 600px;
}

/* KPIs */

.kpi-row {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}

.bb-pill {
  font-family: var(--font-code);
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 4px;
  background: var(--theme-component-page-50);
  border: 1px solid var(--theme-component-border-15);
  color: var(--bb-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.bb-pill strong {
  color: var(--bb-kelly);
}

/* Navigation Buttons */

.lab-btn {
  background: transparent;
  border: 1px solid var(--bb-kelly);
  color: var(--bb-kelly);
  padding: 8px 20px;
  font-family: var(--font-tech);
  text-transform: uppercase;
  font-weight: 700;
  transition: 0.2s;
  letter-spacing: 1px;
  border-radius: 4px;
  font-size: max(14px, 0.9rem);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.lab-btn:hover:not(:disabled) {
  background: var(--bb-kelly);
  color: var(--theme-component-on-primary-3);
  box-shadow: 0 0 15px var(--theme-learning-success-6);
}

.lab-btn:disabled {
  opacity: 0.3;
  border-color: var(--bb-text-dim);
  color: var(--bb-text-dim);
}

.lab-btn.secondary {
  border-color: var(--bb-text-muted);
  color: var(--bb-text-muted);
}

.lab-btn.secondary:hover {
  border-color: var(--theme-component-border-7);
  color: var(--theme-component-ink-5);
  background: var(--theme-catalog-surface-541);
}

.lab-btn.danger {
  border-color: var(--bb-red);
  color: var(--bb-red);
}

.lab-btn.danger:hover {
  background: var(--bb-red);
  color: var(--theme-component-ink-5);
}

/* Tabs */

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 25px;
  border-bottom: 1px solid var(--theme-component-border-15);
  padding-bottom: 10px;
  flex-wrap: wrap;
}

.tab-button {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--bb-text-dim);
  background: var(--theme-component-page-47);
  font-family: var(--font-tech);
  font-size: max(14px, 0.9rem);
  text-transform: uppercase;
  color: var(--bb-text-muted);
  transition: 0.2s;
}

.tab-button:hover:not(:disabled) {
  border-color: var(--bb-kelly);
  color: var(--theme-component-ink-5);
}

.tab-button.active {
  background: var(--bb-kelly);
  color: var(--theme-component-on-primary-3);
  border-color: var(--bb-kelly);
  font-weight: 700;
  box-shadow: 0 0 15px var(--theme-learning-success-2);
}

.tab-button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  border-style: dotted;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease-out;
}

/* =========================================================
   COMPONENTS & DRAG-DROP
========================================================= */

.section-title {
  font-family: var(--font-tech);
  font-size: 1.4rem;
  color: var(--bb-cyan);
  text-transform: uppercase;
  margin-bottom: 5px;
}

.section-subtitle {
  font-size: 15px;
  color: var(--bb-text-muted);
  margin-bottom: 20px;
}

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

.card-column {
  flex: 1 1 350px;
  background: var(--theme-component-page-50);
  padding: 15px;
  border-radius: 8px;
  border: 1px solid var(--theme-component-border-15);
}

.col-header {
  font-family: var(--font-tech);
  font-size: 1rem;
  color: var(--theme-component-ink-5);
  margin-bottom: 12px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--theme-component-border-15);
  padding-bottom: 5px;
}

.step-card {
  background: var(--theme-learning-page-285);
  border: 1px solid var(--theme-learning-success-453);
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 6px;
  font-size: max(14px, 0.88rem);
  transition: 0.2s;
  box-shadow: 0 4px 10px var(--theme-learning-shadow-color-14);
  user-select: none;
}

.step-card:hover {
  border-color: var(--bb-kelly);
  transform: translateY(-2px);
}

.dropzone {
  background: var(--theme-component-page-47);
  border: 2px dashed var(--theme-learning-border-49);
  min-height: 60px;
  margin-bottom: 12px;
  border-radius: 8px;
  padding: 10px;
  position: relative;
  display: flex;
  align-items: center;
  transition: 0.2s;
}

.dropzone.hovered {
  border-color: var(--bb-kelly);
  background: var(--theme-catalog-success-bg-132);
}

.dropzone.correct {
  border-color: var(--bb-kelly);
  background: var(--theme-learning-success-bg-21);
}

.dropzone.incorrect {
  border-color: var(--bb-red);
  background: var(--theme-learning-error-bg-13);
}

.dropzone-label {
  position: absolute;
  left: 12px;
  top: -10px;
  font-size: 14px;
  background: var(--bb-bg-deep);
  color: var(--bb-kelly);
  padding: 2px 8px;
  border-radius: 10px;
  font-family: var(--font-code);
  font-weight: bold;
}

/* Scenarios */

.scenario-box {
  background: radial-gradient(circle at top left, var(--theme-learning-page-455) 0, var(--theme-learning-page-456) 60%);
  border: 1px solid var(--theme-learning-success-307);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.scenario-title {
  font-family: var(--font-tech);
  color: var(--theme-component-ink-5);
  font-size: 1.1rem;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.scenario-text {
  font-size: max(14px, 0.9rem);
  color: var(--bb-text-muted);
  line-height: 1.6;
}

.step-block {
  background: var(--theme-catalog-surface-130);
  border-left: 3px solid var(--bb-text-dim);
  padding: 15px;
  margin-bottom: 15px;
  border-radius: 0 6px 6px 0;
}

.step-block.correct {
  border-left-color: var(--bb-kelly);
  background: var(--theme-learning-success-bg-121);
}

.step-block.incorrect {
  border-left-color: var(--bb-red);
  background: var(--theme-learning-error-bg-458);
}

.step-label {
  font-family: var(--font-code);
  font-size: 14px;
  color: var(--bb-kelly);
  margin-bottom: 8px;
  display: block;
}

.step-q {
  font-weight: 700;
  color: var(--theme-component-ink-5);
  margin-bottom: 12px;
  font-size: max(14px, 0.95rem);
}

.options-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.option-label {
  background: var(--theme-catalog-surface-70);
  padding: 10px 15px;
  border-radius: 4px;
  font-size: 14px;
  border: 1px solid transparent;
  transition: 0.2s;
  display: flex;
  align-items: center;
  gap: 10px;
}

.option-label:hover {
  border-color: var(--bb-kelly);
}

.option-label input {
  accent-color: var(--bb-kelly);
}

/* Cut Sheet */

.cut-sheet-card {
  background: var(--theme-component-page-51);
  border: 1px solid var(--theme-component-border-15);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 15px;
}

.cut-sheet-card h3 {
  color: var(--bb-kelly);
  font-family: var(--font-tech);
  text-transform: uppercase;
  margin-bottom: 15px;
}

.cut-sheet-card h4 {
  color: var(--theme-component-ink-5);
  font-size: 1rem;
  margin: 15px 0 10px;
  text-transform: uppercase;
}

.cut-sheet-card p, .cut-sheet-card li {
  font-size: 15px;
  color: var(--bb-text-muted);
  line-height: 1.6;
  margin-bottom: 8px;
}

.cut-sheet-card ul {
  margin-left: 20px;
}



.answer-path {
  border-left: 3px solid var(--bb-kelly);
  padding-left: 14px;
  margin: 12px 0;
}
.answer-path strong {
  color: var(--theme-component-ink-5);
}

#matrix-success-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: none;
  background: var(--theme-component-page-19);
  pointer-events: none;
  z-index: 2147483000;
}

@keyframes fadeIn {

  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- TACTICAL RETICLE HUD --- */

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 55px;
  height: 55px;
  border: 1px solid var(--bb-kelly);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 2147483646;
  transition: width 0.3s, height 0.3s, border-color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px var(--theme-learning-success-111);
  background-image: linear-gradient(90deg, var(--bb-kelly) 20%, transparent 20%, transparent 80%, var(--bb-kelly) 80%),
                        linear-gradient(180deg, var(--bb-kelly) 20%, transparent 20%, transparent 80%, var(--bb-kelly) 80%);
  background-position: center;
  background-size: 100% 1px, 1px 100%;
  background-repeat: no-repeat;
}

.cursor::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 1px;
  border-top: 1px dotted var(--bb-kelly);
  opacity: 0.4;
}

.cursor::after {
  content: '';
  position: absolute;
  height: 100%;
  width: 1px;
  border-left: 1px dotted var(--bb-kelly);
  opacity: 0.4;
}

.cursor-coords {
  position: absolute;
  right: -85px;
  top: -15px;
  font-family: var(--font-code);
  font-size: 14px;
  color: var(--bb-kelly);
  line-height: 1.4;
  text-transform: uppercase;
  text-shadow: 0 0 5px var(--theme-learning-success-246);
}

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 4px;
  height: 4px;
  background: var(--theme-catalog-surface-31);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 2147483647;
  pointer-events: none;
  box-shadow: 0 0 12px var(--theme-component-border-7);
}

.cursor.active {
  width: 85px;
  height: 85px;
  background: var(--theme-learning-success-bg-198);
  border-color: var(--theme-component-border-7);
}

/* Border geometry retained from the retired palette layer. */
html.bb-page-87431e6f0f[data-bb-theme="patriotic"] .bb-dashboard{border-width:1px;border-style:solid;}
html.bb-page-87431e6f0f[data-bb-theme="patriotic"] .bb-dash-head{border-bottom-width:1px;border-bottom-style:solid;}
html.bb-page-87431e6f0f[data-bb-theme="patriotic"] .bb-pill{border-width:1px;border-style:solid;}
html.bb-page-87431e6f0f[data-bb-theme="patriotic"] .tabs{border-bottom-width:1px;border-bottom-style:solid;}
html.bb-page-87431e6f0f[data-bb-theme="patriotic"] .card-column{border-width:1px;border-style:solid;}
html.bb-page-87431e6f0f[data-bb-theme="patriotic"] .col-header{border-bottom-width:1px;border-bottom-style:solid;}
html.bb-page-87431e6f0f[data-bb-theme="patriotic"] .step-card{border-width:1px;border-style:solid;}
html.bb-page-87431e6f0f[data-bb-theme="patriotic"] .dropzone{border-width:2px;border-style:dashed;}
html.bb-page-87431e6f0f[data-bb-theme="patriotic"] .scenario-box{border-width:1px;border-style:solid;}
html.bb-page-87431e6f0f[data-bb-theme="patriotic"] .cut-sheet-card{border-width:1px;border-style:solid;}
html.bb-page-87431e6f0f[data-bb-theme="patriotic"] .debrief-callout{border-width:1px;border-style:solid;}
