/* VR Network Topology Explorer Stylesheet */

:root {
  --bg-dark: #0b0f1a;
  --bg-card: rgba(15, 23, 42, 0.94);
  --border-cyan: #00f3ff;
  --text-primary: #f8fafc;
  --text-muted: #94a3b8;
  --accent-cyan: #38bdf8;
  --accent-green: #10b981;
  --accent-red: #ef4444;
  --accent-yellow: #facc15;
  --accent-purple: #a855f7;
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-dark);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  color: var(--text-primary);
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* =========================================
   DESKTOP UI OVERLAY
   ========================================= */
#desktop-ui {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 20px;
  z-index: 1000;
}

/* Top App Header & Controls */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 243, 255, 0.35);
  padding: 8px 16px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  pointer-events: auto;
}

.brand-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(0, 243, 255, 0.45);
  flex-shrink: 0;
}

.brand-icon {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border-cyan);
  box-shadow: 0 0 10px var(--border-cyan);
}

.brand-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.brand-subtitle {
  font-size: 10.5px;
  color: var(--text-muted);
}

.header-control-group {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 6px 12px;
  border-radius: 10px;
  pointer-events: auto;
}

.group-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.select-input {
  background: rgba(11, 15, 26, 0.9);
  color: #a5f3fc;
  border: 1px solid rgba(0, 243, 255, 0.3);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

.select-input:focus {
  border-color: var(--border-cyan);
}

.proto-btn-group {
  display: flex;
  gap: 4px;
}

.proto-btn {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.proto-btn:hover {
  background: rgba(51, 65, 85, 0.9);
  color: #ffffff;
}

.proto-btn.active {
  background: var(--border-cyan);
  color: #0b0f1a;
  border-color: #ffffff;
  box-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.header-action-pills {
  display: flex;
  gap: 8px;
  pointer-events: auto;
}

.pill-btn {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #ffffff;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pill-btn:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: var(--border-cyan);
  box-shadow: 0 0 12px rgba(0, 243, 255, 0.3);
  transform: translateY(-1px);
}

.pill-btn.pill-primary {
  background: rgba(16, 185, 129, 0.25);
  border-color: var(--accent-green);
  color: #6ee7b7;
}

.pill-btn.pill-accent {
  background: rgba(168, 85, 247, 0.25);
  border-color: var(--accent-purple);
  color: #c084fc;
}

.pill-btn.pill-accent:hover {
  background: rgba(168, 85, 247, 0.4);
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.4);
}

.modal-preview-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(11, 15, 26, 0.85);
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.icon-preview-canvas {
  width: 60px;
  height: 60px;
  border-radius: 8px;
}

.modal-preview-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.modal-preview-text strong {
  font-size: 14px;
  color: #ffffff;
  letter-spacing: 0.04em;
}

.modal-preview-text span {
  font-size: 11.5px;
  color: var(--accent-cyan);
}

.pill-btn.active {
  background: rgba(0, 243, 255, 0.3);
  border-color: var(--border-cyan);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(0, 243, 255, 0.4);
}

/* Elevated Status Strip */
#status-strip-container {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

#status-strip {
  width: 100%;
  max-width: 860px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 243, 255, 0.35);
  border-radius: 12px;
  padding: 9px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  pointer-events: auto;
}

#status-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-cyan);
  box-shadow: 0 0 8px var(--border-cyan);
  flex-shrink: 0;
}

#status-message {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.02em;
}

.status-info { color: #f8fafc; }
.status-warning { color: var(--accent-yellow); }
.status-danger { color: #fca5a5; }
.status-success { color: #6ee7b7; }

/* Control Toolbars */
.control-sidebar {
  position: absolute;
  left: 20px;
  top: 135px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: auto;
}

.action-btn {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--text-primary);
  font-size: 12.5px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.16s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.action-btn:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: var(--border-cyan);
  box-shadow: 0 0 14px rgba(0, 243, 255, 0.3);
  transform: translateX(4px);
}

.action-btn:active {
  transform: scale(0.97);
}

.action-btn.active {
  background: rgba(0, 243, 255, 0.25);
  border-color: var(--border-cyan);
  box-shadow: 0 0 14px rgba(0, 243, 255, 0.4);
}

.action-btn.btn-accent {
  border-color: rgba(168, 85, 247, 0.4);
}
.action-btn.btn-accent:hover {
  border-color: var(--accent-purple);
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.4);
}

.action-btn.btn-danger:hover {
  border-color: var(--accent-red);
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.4);
}

/* =========================================
   NEW JOINEE TOUR DESKTOP CARD
   ========================================= */
.tour-card {
  position: absolute;
  top: 135px;
  right: 20px;
  width: 420px;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 2px solid var(--border-cyan);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.65);
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.2s ease;
}

.tour-card.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
}

.tour-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tour-badge {
  font-size: 11px;
  font-weight: 800;
  color: var(--border-cyan);
  letter-spacing: 0.06em;
}

.tour-progress {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
}

.tour-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

.tour-content {
  font-size: 12.5px;
  line-height: 1.5;
  color: #cbd5e1;
}

.tour-concept {
  background: rgba(16, 185, 129, 0.15);
  border-left: 3px solid var(--accent-green);
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #6ee7b7;
}

.tour-btn-row {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.btn-tour {
  flex: 1;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #ffffff;
  padding: 7px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}

.btn-tour:hover {
  background: rgba(51, 65, 85, 0.95);
  border-color: var(--border-cyan);
}

.btn-tour.btn-tour-primary {
  background: var(--border-cyan);
  color: #0b0f1a;
  border: none;
  font-weight: 700;
}

.btn-tour.btn-tour-primary:hover {
  background: #ffffff;
  box-shadow: 0 0 12px rgba(0, 243, 255, 0.6);
}

/* =========================================
   ADD NODE MODAL
   ========================================= */
.modal-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 2px solid var(--accent-purple);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.8);
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 2000;
}

.modal-card.hidden {
  display: none;
}

.modal-header {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  border-bottom: 1px solid rgba(168, 85, 247, 0.3);
  padding-bottom: 8px;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-form label {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  gap: 4px;
}

.modal-form input, .modal-form select {
  background: rgba(11, 15, 26, 0.9);
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 6px;
  padding: 8px 10px;
  color: #ffffff;
  font-size: 12.5px;
  outline: none;
}

.modal-form input:focus, .modal-form select:focus {
  border-color: var(--border-cyan);
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 6px;
}

.btn-primary-action {
  background: var(--accent-purple) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
}

.btn-primary-action:hover {
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.6) !important;
}

/* Bottom Hint Strip & Keybindings */
.bottom-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
}

.keybind-hints {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  padding: 8px 16px;
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  gap: 14px;
  pointer-events: auto;
  flex-wrap: wrap;
}

.key-tag {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  font-family: monospace;
}

/* Performance Overlay (F Key) */
#perf-overlay {
  position: absolute;
  top: 90px;
  right: 20px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 243, 255, 0.4);
  border-radius: 10px;
  padding: 10px 16px;
  font-family: monospace;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--border-cyan);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  pointer-events: auto;
}

#perf-overlay.hidden {
  display: none;
}

/* JSON Drawer */
#json-drawer {
  position: absolute;
  right: 20px;
  bottom: 60px;
  width: 380px;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 243, 255, 0.4);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

#json-drawer.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 13px;
  color: #ffffff;
}

#json-input {
  width: 100%;
  height: 160px;
  background: rgba(11, 15, 26, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 8px;
  color: #a5f3fc;
  font-family: monospace;
  font-size: 11px;
  padding: 8px;
  resize: vertical;
}

#json-input:focus {
  outline: none;
  border-color: var(--border-cyan);
}

.drawer-btn-row {
  display: flex;
  gap: 8px;
}

.btn-secondary {
  flex: 1;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #ffffff;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}

.btn-secondary:hover {
  background: rgba(51, 65, 85, 0.9);
  border-color: var(--border-cyan);
}

.file-input-label {
  display: block;
  text-align: center;
  background: rgba(56, 189, 248, 0.15);
  border: 1px dashed rgba(56, 189, 248, 0.5);
  border-radius: 6px;
  padding: 6px;
  font-size: 11px;
  cursor: pointer;
  color: var(--accent-cyan);
}

.file-input-label:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: var(--border-cyan);
}

#file-upload {
  display: none;
}

/* Official Three.js VR Button */
.vr-button, #VRButton {
  position: absolute !important;
  bottom: 24px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  background: #00f3ff !important;
  color: #0b0f1a !important;
  font-family: inherit !important;
  font-weight: 800 !important;
  font-size: 14px !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  border: none !important;
  border-radius: 30px !important;
  padding: 14px 34px !important;
  cursor: pointer !important;
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.6) !important;
  transition: all 0.2s ease !important;
  z-index: 85 !important;
  opacity: 1 !important;
}

.vr-button:hover, #VRButton:hover {
  background: #ffffff !important;
  box-shadow: 0 0 30px rgba(0, 243, 255, 0.9) !important;
  transform: translateX(-50%) scale(1.05) !important;
}


/* =========================================
   CYBER DEFENSE & WAF SHIELD BUTTONS
   ========================================= */
.action-btn.btn-shield {
  border-color: rgba(16, 185, 129, 0.4);
}
.action-btn.btn-shield:hover {
  border-color: var(--accent-green);
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.4);
}
.action-btn.btn-shield.active {
  background: rgba(16, 185, 129, 0.3);
  border-color: var(--accent-green);
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.5);
}

/* =========================================
   WIRESHARK-LITE PACKET SNIFFER DRAWER
   ========================================= */
.wireshark-card {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 60px;
  height: 250px;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-cyan);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  z-index: 50;
  transition: all 0.2s ease;
}

.wireshark-card.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(30px);
}

.wireshark-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: rgba(11, 15, 26, 0.9);
  border-bottom: 1px solid rgba(0, 243, 255, 0.3);
  border-radius: 12px 12px 0 0;
}

.wireshark-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wireshark-logo {
  font-size: 13px;
  font-weight: 800;
  color: var(--border-cyan);
  letter-spacing: 0.05em;
}

.wireshark-tag {
  font-size: 10px;
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-family: monospace;
}

.btn-tool-sm {
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.btn-tool-sm:hover {
  background: rgba(51, 65, 85, 0.95);
  border-color: var(--border-cyan);
}

.wireshark-table-wrapper {
  flex: 1;
  overflow-y: auto;
  padding: 4px;
}

.wireshark-table {
  width: 100%;
  border-collapse: collapse;
  font-family: monospace;
  font-size: 11px;
}

.wireshark-table th {
  background: rgba(30, 41, 59, 0.85);
  color: var(--text-muted);
  text-align: left;
  padding: 6px 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  font-weight: 700;
  position: sticky;
  top: 0;
}

.wireshark-table td {
  padding: 5px 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  color: #cbd5e1;
}

.wireshark-table tr:hover {
  background: rgba(56, 189, 248, 0.15);
}

.badge-proto {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 700;
}

.proto-row-tcpsyn {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5 !important;
}

.proto-row-tcprst {
  background: rgba(16, 185, 129, 0.12);
  color: #86efac !important;
}

/* =========================================
   CIDR SUBNET CALCULATOR MODAL
   ========================================= */
.subnet-results-box {
  background: rgba(11, 15, 26, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: monospace;
  font-size: 11.5px;
}

.calc-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  padding-bottom: 4px;
}

.calc-row span {
  color: var(--text-muted);
}

.calc-row strong {
  color: #ffffff;
}

.calc-error {
  color: var(--accent-red);
  font-weight: 700;
}

/* =========================================
   CCNA 200-301 VISUAL ACADEMY MODAL
   ========================================= */
.ccna-modal-card {
  width: 920px;
  max-width: 94vw;
  max-height: 88vh;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ccna-tabs-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  padding-bottom: 8px;
}

.ccna-tab-btn {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.ccna-tab-btn:hover {
  background: rgba(56, 189, 248, 0.15);
  color: #ffffff;
  border-color: var(--accent-cyan);
}

.ccna-tab-btn.active {
  background: rgba(0, 243, 255, 0.2);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
}

.ccna-section-intro {
  margin-bottom: 12px;
}

.ccna-section-intro h3 {
  color: #ffffff;
  font-size: 16px;
  margin-bottom: 4px;
}

.ccna-section-intro p {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.4;
}

/* OSI 7-Layer Stack */
.osi-stack-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.osi-layer-card {
  background: rgba(11, 15, 26, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-left-width: 6px;
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  gap: 16px;
  align-items: center;
}

.osi-num {
  font-weight: 800;
  font-size: 15px;
  color: #ffffff;
  min-width: 65px;
}

.osi-info {
  flex: 1;
}

.osi-info h4 {
  font-size: 13.5px;
  color: #ffffff;
  margin-bottom: 2px;
}

.osi-info p {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.osi-pdu-badge {
  display: inline-block;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  font-size: 11px;
  font-family: monospace;
  padding: 2px 8px;
  border-radius: 4px;
}

/* TCP 3-Way Handshake Box */
.handshake-visual-box {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 14px;
}

.handshake-visual-box h4 {
  color: #10b981;
  font-size: 14px;
  margin-bottom: 10px;
}

.handshake-steps-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.handshake-step {
  flex: 1;
  background: rgba(11, 15, 26, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 8px;
  padding: 10px;
}

.step-num {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-cyan);
  text-transform: uppercase;
}

.step-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  margin: 2px 0 4px 0;
}

.step-desc {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.35;
}

.handshake-arrow {
  color: var(--accent-cyan);
  font-size: 20px;
  font-weight: bold;
}

/* CCNA Tables */
.comparison-table-wrapper {
  overflow-x: auto;
}

.ccna-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.ccna-table th, .ccna-table td {
  padding: 8px 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  text-align: left;
}

.ccna-table th {
  background: rgba(30, 41, 59, 0.85);
  color: #ffffff;
  font-size: 12.5px;
}

.ccna-table tr:nth-child(even) {
  background: rgba(15, 23, 42, 0.5);
}

/* Cabling Grid & Cards */
.cable-specs-grid, .hypervisor-comparison-grid, .vpn-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.cable-card, .hyp-card, .vpn-step-card {
  background: rgba(11, 15, 26, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 8px;
  padding: 12px;
}

.cable-badge, .hyp-tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.cable-card h4, .hyp-card h4, .vpn-step-card h4 {
  font-size: 13.5px;
  color: #ffffff;
  margin-bottom: 6px;
}

.cable-card p, .hyp-card p, .vpn-step-card p {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.vpn-step-card ul {
  padding-left: 18px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Pinouts */
.pinout-box {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 8px;
  padding: 12px;
}

.pinout-row {
  display: flex;
  gap: 24px;
}

.pinout-col {
  flex: 1;
}

.pinout-col strong {
  display: block;
  font-size: 12.5px;
  color: #ffffff;
  margin-bottom: 6px;
}

.pinout-list {
  padding-left: 20px;
  font-size: 12px;
  color: #e2e8f0;
  line-height: 1.5;
}

.color-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
}

/* CCNA Practice Quiz */
.quiz-box {
  background: rgba(11, 15, 26, 0.9);
  border: 1px solid rgba(0, 243, 255, 0.3);
  border-radius: 10px;
  padding: 16px;
}

.quiz-header-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.quiz-step-badge, .quiz-score-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-cyan);
}

.quiz-question-text {
  font-size: 15px;
  color: #ffffff;
  margin-bottom: 14px;
  line-height: 1.4;
}

.quiz-options-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.quiz-opt-btn {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 8px;
  padding: 10px 14px;
  color: #ffffff;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  transition: all 0.2s ease;
}

.quiz-opt-btn:hover:not(:disabled) {
  background: rgba(56, 189, 248, 0.2);
  border-color: var(--accent-cyan);
}

.quiz-opt-btn.correct {
  background: rgba(16, 185, 129, 0.35) !important;
  border-color: #10b981 !important;
  color: #a7f3d0 !important;
}

.quiz-opt-btn.incorrect {
  background: rgba(239, 68, 68, 0.35) !important;
  border-color: #ef4444 !important;
  color: #fca5a5 !important;
}

.opt-letter {
  background: rgba(0, 0, 0, 0.4);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 11px;
}

.quiz-explanation {
  background: rgba(15, 23, 42, 0.85);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 12.5px;
  color: #cbd5e1;
  margin-bottom: 12px;
  line-height: 1.4;
}

.quiz-completed-card {
  text-align: center;
  padding: 24px;
}

/* =========================================
   REAL-TIME EXPLAINER & NARRATION HUD
   ========================================= */
.explainer-modal-card {
  width: 900px;
  max-width: 94vw;
  max-height: 86vh;
  overflow-y: auto;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.explainer-hero {
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  padding-bottom: 12px;
}

.explainer-badge {
  display: inline-block;
  background: rgba(0, 243, 255, 0.15);
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.explainer-title {
  font-size: 20px;
  color: #ffffff;
  margin: 4px 0;
  font-weight: 800;
}

.explainer-tagline {
  font-size: 13.5px;
  color: var(--text-muted);
}

.explainer-analogy-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(250, 204, 21, 0.4);
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.analogy-header {
  font-size: 12.5px;
  font-weight: 800;
  color: #facc15;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.analogy-text {
  font-size: 13.5px;
  color: #f8fafc;
  line-height: 1.5;
}

.explainer-section h3 {
  font-size: 15px;
  color: #ffffff;
  margin-bottom: 8px;
}

.explainer-steps-list {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.explainer-steps-list li {
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.45;
}

.explainer-device-chips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.explainer-device-chip {
  background: rgba(11, 15, 26, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 8px;
  padding: 10px;
  transition: all 0.2s ease;
}

.explainer-device-chip:hover {
  border-color: var(--accent-cyan);
  background: rgba(30, 41, 59, 0.9);
}

.explainer-device-chip strong {
  display: block;
  font-size: 12.5px;
  color: #ffffff;
}

.device-role-tag {
  display: inline-block;
  font-size: 10px;
  font-family: monospace;
  color: var(--accent-cyan);
  background: rgba(0, 243, 255, 0.12);
  padding: 1px 6px;
  border-radius: 4px;
  margin-top: 2px;
}

.explainer-callout-box {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-left: 5px solid #10b981;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  color: #e2e8f0;
  line-height: 1.4;
}

/* Floating Real-Time Play-by-Play Narration Toast */
.narration-toast {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(11, 15, 26, 0.96);
  backdrop-filter: blur(12px);
  border: 1px solid var(--accent-cyan);
  border-radius: 30px;
  padding: 10px 24px;
  color: #ffffff;
  font-size: 13px;
  box-shadow: 0 8px 32px rgba(0, 243, 255, 0.35);
  z-index: 1000;
  pointer-events: none;
  animation: toastFadeIn 0.25s ease-out;
  text-align: center;
  max-width: 80vw;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.narration-toast strong {
  color: var(--accent-cyan);
}

@keyframes toastFadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, 15px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* ==========================================================================
   TOPIC-WISE CCNA & CCNP STUDY ACADEMY MODAL
   ========================================================================== */

.pill-glow {
  box-shadow: 0 0 12px rgba(0, 243, 255, 0.45);
  border-color: #00f3ff !important;
  animation: pulsePill 2.5s infinite;
}

@keyframes pulsePill {
  0%, 100% { box-shadow: 0 0 10px rgba(0, 243, 255, 0.3); }
  50% { box-shadow: 0 0 20px rgba(0, 243, 255, 0.7); }
}

.study-academy-modal {
  width: 94vw;
  max-width: 1360px;
  height: 88vh;
  max-height: 920px;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(0, 243, 255, 0.35);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 243, 255, 0.2);
}

.study-modal-layout {
  display: flex;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Left Sidebar */
.study-sidebar {
  width: 360px;
  min-width: 320px;
  background: rgba(11, 15, 26, 0.95);
  border-right: 1px solid rgba(148, 163, 184, 0.2);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.study-sidebar-header {
  padding: 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.study-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.study-icon {
  font-size: 24px;
}

.study-brand strong {
  font-size: 14px;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.study-subtitle {
  font-size: 11px;
  color: var(--accent-cyan);
}

.study-progress-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.study-progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(148, 163, 184, 0.2);
  border-radius: 4px;
  overflow: hidden;
}

.study-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #00f3ff, #10b981);
  transition: width 0.3s ease;
  border-radius: 4px;
}

.study-progress-label {
  font-size: 11px;
  color: #cbd5e1;
  text-align: right;
  font-weight: 600;
}

.study-track-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.study-track-pill {
  flex: 1;
  min-width: 60px;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #94a3b8;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.study-track-pill:hover {
  background: rgba(56, 189, 248, 0.2);
  color: #ffffff;
}

.study-track-pill.active {
  background: rgba(0, 243, 255, 0.2);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.study-search-input {
  width: 100%;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 6px;
  padding: 8px 12px;
  color: #ffffff;
  font-size: 12px;
  outline: none;
}

.study-search-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 8px rgba(0, 243, 255, 0.3);
}

.study-topic-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.study-module-header {
  font-size: 11px;
  font-weight: 700;
  color: #38bdf8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 8px 4px 8px;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  margin-top: 6px;
}

.study-module-header:first-child {
  border-top: none;
  margin-top: 0;
}

.study-sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.study-sidebar-item:hover {
  background: rgba(30, 41, 59, 0.7);
}

.study-sidebar-item.selected {
  background: rgba(0, 243, 255, 0.15);
  border-color: rgba(0, 243, 255, 0.5);
}

.study-item-status {
  font-size: 13px;
  width: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.status-check {
  color: #10b981;
  font-weight: bold;
}

.status-pending {
  color: #64748b;
}

.study-item-info {
  flex: 1;
  min-width: 0;
}

.study-item-badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-cyan);
  font-family: monospace;
}

.study-item-title {
  font-size: 12px;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.study-empty-search {
  padding: 24px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
}

/* Right Main Viewport */
.study-main-viewport {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: rgba(15, 23, 42, 0.95);
  overflow: hidden;
}

.study-main-topbar {
  padding: 12px 20px;
  background: rgba(11, 15, 26, 0.9);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.study-detail-panel {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.study-detail-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 24px 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.study-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.study-breadcrumb {
  font-size: 13px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 4px;
}

.study-badge-tag {
  background: rgba(0, 243, 255, 0.15);
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  font-family: monospace;
}

.btn-complete-active {
  background: rgba(16, 185, 129, 0.25) !important;
  border-color: #10b981 !important;
  color: #10b981 !important;
}

.study-lesson-title {
  font-size: 24px;
  color: #ffffff;
  margin: 0;
  line-height: 1.3;
}

.study-lesson-summary {
  font-size: 14.5px;
  color: #cbd5e1;
  line-height: 1.5;
  margin: 0;
}

/* Analogy Box */
.study-analogy-box {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-left: 6px solid #38bdf8;
  border-radius: 8px;
  padding: 16px 20px;
}

.study-analogy-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #38bdf8;
  font-size: 14px;
  margin-bottom: 6px;
}

.study-analogy-text {
  font-size: 13.5px;
  color: #f1f5f9;
  line-height: 1.5;
  margin: 0;
}

/* Diagram Box */
.study-diagram-box {
  background: rgba(11, 15, 26, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 8px;
  padding: 16px;
}

.study-box-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.study-svg-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(15, 23, 42, 0.6);
  border-radius: 6px;
  padding: 12px;
  overflow-x: auto;
}

.study-svg {
  max-width: 100%;
  height: auto;
  max-height: 260px;
  display: block;
}

/* Worked Example & Scenario Box */
.study-example-box {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-left: 6px solid #10b981;
  border-radius: 8px;
  padding: 16px 20px;
}

.study-example-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #10b981;
  font-size: 14px;
  margin-bottom: 8px;
}

.study-example-scenario {
  font-size: 13.5px;
  color: #f8fafc;
  font-weight: 600;
  line-height: 1.5;
  margin: 0 0 10px 0;
}

.study-example-steps {
  padding-left: 20px;
  margin: 0 0 10px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.study-example-steps li {
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.5;
}

.study-example-takeaway {
  background: rgba(0, 0, 0, 0.35);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 12.5px;
  color: #6ee7b7;
  border-left: 3px solid #10b981;
}

/* Real-World Hardware Photo Box */
.study-hardware-box {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(0, 243, 255, 0.35);
  border-left: 6px solid #00f3ff;
  border-radius: 8px;
  padding: 16px 20px;
}

.study-hardware-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.hardware-icon {
  font-size: 20px;
}

.study-hardware-caption {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 3px;
  line-height: 1.4;
}

.study-photo-container {
  background: #020617;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 6px;
  padding: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.8);
}

.study-hardware-img {
  max-width: 100%;
  height: auto;
  max-height: 160px;
  display: block;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.9));
  transition: transform 0.2s ease;
}

.study-hardware-img:hover {
  transform: scale(1.02);
}

/* Deep Dive Box */
.study-deepdive-box {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  padding: 16px 20px;
}

.study-theory-content {
  font-size: 13.5px;
  color: #cbd5e1;
  line-height: 1.6;
}

.study-theory-content h4 {
  color: #ffffff;
  font-size: 14px;
  margin: 12px 0 6px 0;
}

.study-theory-content ul, .study-theory-content ol {
  padding-left: 20px;
  margin: 6px 0;
}

.study-theory-content li {
  margin-bottom: 4px;
}

.study-theory-content code {
  background: rgba(0, 0, 0, 0.4);
  color: var(--accent-cyan);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: monospace;
}

/* Cisco CLI Box */
.study-cli-box {
  background: #020617;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 8px;
  overflow: hidden;
}

.study-cli-header {
  background: rgba(30, 41, 59, 0.8);
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.study-cli-header strong {
  font-size: 13px;
  color: #ffffff;
}

.study-cli-code {
  padding: 16px;
  margin: 0;
  font-family: 'Consolas', 'Fira Code', monospace;
  font-size: 12.5px;
  color: #38bdf8;
  line-height: 1.5;
  overflow-x: auto;
  white-space: pre-wrap;
}

/* Exam Tip Box */
.study-exam-tip-box {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-left: 6px solid #ef4444;
  border-radius: 8px;
  padding: 14px 18px;
}

.study-exam-tip-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f87171;
  font-size: 13.5px;
  margin-bottom: 4px;
}

.study-exam-tip-text {
  font-size: 13px;
  color: #fecaca;
  line-height: 1.5;
  margin: 0;
}

/* Sticky Action Footer */
.study-action-footer {
  padding: 12px 24px;
  background: rgba(11, 15, 26, 0.95);
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
}

.btn-launch-lab-primary {
  background: linear-gradient(135deg, #0284c7, #0d9488) !important;
  color: #ffffff !important;
  border-color: #38bdf8 !important;
  font-weight: 700 !important;
  box-shadow: 0 0 15px rgba(2, 132, 199, 0.4);
  margin-right: auto;
}

.btn-launch-lab-primary:hover {
  background: linear-gradient(135deg, #0369a1, #0f766e) !important;
  box-shadow: 0 0 20px rgba(13, 148, 136, 0.6);
}

@media (max-width: 900px) {
  .study-modal-layout {
    flex-direction: column;
  }
  .study-sidebar {
    width: 100%;
    height: 240px;
    border-right: none;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  }
}

/* ==========================================================================
   NETWORK BUILDER STUDIO, DIAGNOSTICS & REAL MAP BLUEPRINT MODAL
   ========================================================================== */

.builder-modal {
  width: 95vw;
  max-width: 1360px;
  height: 90vh;
  max-height: 940px;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85), 0 0 35px rgba(0, 243, 255, 0.2);
  background: #0b0f1a;
  z-index: 1050;
}

.builder-modal-header {
  padding: 16px 24px;
  background: rgba(11, 15, 26, 0.98);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.builder-modal-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.builder-logo-icon {
  font-size: 26px;
}

.builder-modal-title strong {
  font-size: 16px;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.builder-subtitle {
  font-size: 11.5px;
  color: var(--accent-cyan);
  margin-top: 2px;
}

/* Tab Bar */
.builder-tab-bar {
  display: flex;
  gap: 6px;
  padding: 10px 24px;
  background: rgba(15, 23, 42, 0.8);
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  overflow-x: auto;
}

.builder-tab-btn {
  padding: 8px 16px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 6px;
  color: #cbd5e1;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.builder-tab-btn:hover {
  background: rgba(56, 189, 248, 0.15);
  color: #ffffff;
  border-color: rgba(56, 189, 248, 0.4);
}

.builder-tab-btn.active {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.4), rgba(13, 148, 136, 0.4));
  border-color: #00f3ff;
  color: #00f3ff;
  box-shadow: 0 0 12px rgba(0, 243, 255, 0.25);
}

/* Modal Body */
.builder-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  background: #090d16;
}

.builder-tab-panel {
  display: none;
  height: 100%;
}

.builder-tab-panel.active {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Step Bubbles Workflow */
.step-bubbles-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 8px;
}

.step-track-label {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.5px;
}

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

.step-bubble {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(30, 41, 59, 0.8);
  color: #94a3b8;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.step-bubble:hover {
  border-color: #38bdf8;
  color: #ffffff;
}

.step-bubble.active {
  border-color: #00f3ff;
  background: #0284c7;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(0, 243, 255, 0.5);
  transform: scale(1.1);
}

.step-bubble.completed {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

/* Step Hero & Theory */
.builder-step-hero h3 {
  font-size: 19px;
  color: #ffffff;
  margin-bottom: 4px;
}

.builder-step-hero p {
  font-size: 13px;
  color: #94a3b8;
}

.theory-callout {
  padding: 14px 18px;
  background: rgba(2, 132, 199, 0.1);
  border-left: 4px solid #00f3ff;
  border-radius: 0 8px 8px 0;
}

.theory-callout strong {
  display: block;
  font-size: 13px;
  color: #00f3ff;
  margin-bottom: 6px;
}

.theory-callout p {
  font-size: 12.5px;
  color: #cbd5e1;
  line-height: 1.5;
  margin: 0;
}

/* Step Recommendations Grid */
.builder-rec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.step-rec-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s ease;
}

.step-rec-card:hover {
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.step-rec-card.added {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.05);
}

.rec-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rec-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
}

.rec-status {
  font-size: 11px;
  color: #94a3b8;
}

.rec-title {
  font-size: 14px;
  color: #ffffff;
}

.rec-ip {
  font-size: 12px;
  color: #94a3b8;
}

.rec-ip code {
  color: #00f3ff;
  font-family: Consolas, monospace;
}

.rec-desc {
  font-size: 11.5px;
  color: #94a3b8;
  line-height: 1.4;
  flex: 1;
}

.btn-rec-action {
  margin-top: 8px;
  padding: 8px 14px;
  border-radius: 6px;
  border: none;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-already-added {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.builder-step-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  margin-top: auto;
}

/* Interactive step box */
.step-interactive-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
}

.step-interactive-box h4 {
  font-size: 17px;
  color: #ffffff;
  margin-bottom: 6px;
}

.step-interactive-box p {
  font-size: 13px;
  color: #94a3b8;
  max-width: 600px;
  margin: 0 auto;
}

/* Device Tab Layout */
.builder-form-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

.builder-preview-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
}

/* Cabling Studio Grid */
.cabling-studio-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 24px;
  height: 100%;
}

.cabling-control-card, .cabling-table-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.table-scroll-container {
  flex: 1;
  overflow-y: auto;
  max-height: 480px;
  margin-top: 14px;
}

.builder-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.builder-table th {
  background: rgba(30, 41, 59, 0.8);
  color: #cbd5e1;
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.builder-table td {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  color: #ffffff;
}

.media-badge {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
}

.btn-delete-link {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 14px;
  opacity: 0.7;
}

.btn-delete-link:hover {
  opacity: 1;
}

/* Testing Studio Grid */
.testing-studio-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
}

.testing-ping-card, .testing-audit-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.terminal-box {
  margin-top: 14px;
  background: #020617;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 6px;
  padding: 14px;
  font-family: Consolas, monospace;
  font-size: 11.5px;
  min-height: 140px;
  max-height: 220px;
  overflow-y: auto;
}

.terminal-line {
  color: #e2e8f0;
  margin-bottom: 4px;
  line-height: 1.4;
}

.terminal-line.muted { color: #64748b; }
.terminal-line.success { color: #10b981; }
.terminal-line.err { color: #ef4444; }
.terminal-line.info { color: #38bdf8; }

.audit-score-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  background: rgba(30, 41, 59, 0.6);
  border-radius: 8px;
  margin: 12px 0;
}

.audit-score-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 3px solid #10b981;
  background: rgba(16, 185, 129, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: #10b981;
}

.audit-checks-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 340px;
  overflow-y: auto;
}

.audit-check-card {
  padding: 10px 14px;
  border-radius: 6px;
  background: rgba(11, 15, 26, 0.6);
  border-left: 3px solid #10b981;
}

.audit-check-card.warn { border-left-color: #f59e0b; }
.audit-check-card.fail { border-left-color: #ef4444; }

.audit-check-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
}

.badge-pass { font-size: 9px; font-weight: bold; padding: 1px 6px; border-radius: 3px; background: #10b981; color: #fff; }
.badge-warn { font-size: 9px; font-weight: bold; padding: 1px 6px; border-radius: 3px; background: #f59e0b; color: #fff; }
.badge-fail { font-size: 9px; font-weight: bold; padding: 1px 6px; border-radius: 3px; background: #ef4444; color: #fff; }

.audit-check-desc {
  font-size: 11.5px;
  color: #94a3b8;
}

/* Real Map Blueprint Canvas */
.real-map-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.real-map-canvas-wrapper {
  flex: 1;
  overflow: auto;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 8px;
  background: #090d16;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.real-schematic-canvas {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
}

/* PDF Export Form Box */
.pdf-export-config-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  padding: 24px;
}

.pdf-included-checklist {
  margin: 14px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  color: #cbd5e1;
}

/* Footer */
.builder-modal-footer {
  padding: 14px 24px;
  background: rgba(11, 15, 26, 0.98);
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}


