/* LAB & SIMULATION ENVIRONMENT STYLES */
:root {
  --lab-bg: #0B0F19;
  --lab-card: #111827;
  --lab-border: #1F2937;
  --lab-accent: #3B82F6;
  --lab-success: #10B981;
  --lab-warning: #F59E0B;
  --lab-danger: #EF4444;
  --lab-text: #F3F4F6;
  --lab-muted: #9CA3AF;
  --code-font: 'JetBrains Mono', 'Fira Code', Consolas, Monaco, monospace;
}

body.lab-body {
  background-color: var(--lab-bg);
  color: var(--lab-text);
  font-family: var(--font-sans);
}

.lab-navbar {
  background: #111827;
  border-bottom: 1px solid var(--lab-border);
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lab-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.1rem;
  color: #FFF;
}

.lab-badge {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid #EF4444;
  color: #F87171;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.lab-nav-links {
  display: flex;
  gap: 16px;
  list-style: none;
}

.lab-nav-links a {
  color: var(--lab-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 4px;
}

.lab-nav-links a:hover, .lab-nav-links a.active {
  color: #FFF;
  background: #1F2937;
}

/* WORKSTATION DESKTOP STYLES */
.workstation-container {
  max-width: 1300px;
  margin: 24px auto;
  padding: 0 16px;
}

.desktop-frame {
  background: #1E293B;
  border: 1px solid #334155;
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.window-header {
  background: #0F172A;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #334155;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot-red { background: #EF4444; }
.dot-yellow { background: #F59E0B; }
.dot-green { background: #10B981; }

.window-title {
  font-size: 0.85rem;
  color: #94A3B8;
  font-family: var(--code-font);
}

.workstation-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: 600px;
  background: #0F172A;
}

.inbox-sidebar {
  background: #111827;
  border-right: 1px solid #1F2937;
  display: flex;
  flex-direction: column;
}

.inbox-header {
  padding: 16px;
  border-bottom: 1px solid #1F2937;
}

.mail-item {
  padding: 14px 16px;
  border-bottom: 1px solid #1F2937;
  cursor: pointer;
  transition: background 0.15s ease;
}

.mail-item:hover {
  background: #1F2937;
}

.mail-item.selected {
  background: #1E293B;
  border-left: 3px solid var(--lab-accent);
}

.mail-item.phish {
  border-left: 3px solid var(--lab-danger);
  background: rgba(239, 68, 68, 0.05);
}

.mail-sender {
  font-weight: 600;
  font-size: 0.85rem;
  color: #F3F4F6;
  margin-bottom: 2px;
}

.mail-subject {
  font-size: 0.82rem;
  color: #9CA3AF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mail-time {
  font-size: 0.7rem;
  color: #6B7280;
  margin-top: 4px;
}

.mail-view-pane {
  padding: 24px;
  overflow-y: auto;
  background: #0F172A;
}

.email-meta-box {
  background: #1E293B;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
}

.email-meta-row {
  display: flex;
  margin-bottom: 6px;
  font-size: 0.88rem;
}

.email-meta-label {
  width: 90px;
  color: #94A3B8;
  font-weight: 600;
}

.email-body {
  background: #111827;
  border: 1px solid #1F2937;
  border-radius: 8px;
  padding: 20px;
  font-size: 0.95rem;
  line-height: 1.7;
  white-space: pre-line;
  margin-bottom: 24px;
}

.phish-warning-card {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  padding: 16px;
  margin-top: 20px;
}

.phish-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

/* VAULT & AUTHORIZATION EXPLORER */
.vault-header-banner {
  background: #1E293B;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.policy-badge {
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.policy-badge.vulnerable {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid #EF4444;
  color: #FCA5A5;
}

.policy-badge.patched {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid #10B981;
  color: #6EE7B7;
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  background: #111827;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--lab-border);
}

.doc-table th, .doc-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--lab-border);
  font-size: 0.9rem;
}

.doc-table th {
  background: #1F2937;
  color: #9CA3AF;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}

.doc-tag {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}
.tag-pub { background: #374151; color: #E5E7EB; }
.tag-restricted { background: rgba(239, 68, 68, 0.2); color: #F87171; border: 1px solid rgba(239, 68, 68, 0.4); }

.code-viewer {
  background: #090D16;
  border: 1px solid #1E293B;
  border-radius: 8px;
  padding: 16px;
  font-family: var(--code-font);
  font-size: 0.85rem;
  color: #38BDF8;
  overflow-x: auto;
  line-height: 1.5;
}

/* NETWORK TOPOLOGY VISUALIZATION */
.viz-container {
  background: #0F172A;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.topology-canvas-wrap {
  width: 100%;
  height: 480px;
  position: relative;
}

.stage-tracker-bar {
  display: flex;
  background: #1E293B;
  border-radius: 8px;
  padding: 8px;
  gap: 8px;
  margin-bottom: 24px;
  overflow-x: auto;
}

.stage-step {
  flex: 1;
  min-width: 120px;
  padding: 8px 12px;
  border-radius: 6px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  background: #0F172A;
  color: #64748B;
  border: 1px solid #334155;
  transition: all 0.2s ease;
}

.stage-step.active {
  background: #2563EB;
  color: #FFF;
  border-color: #3B82F6;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.5);
}

.stage-step.completed {
  background: #064E3B;
  color: #A7F3D0;
  border-color: #059669;
}
