/* SANE-PT Cybersecurity Training Platform Custom Styles */

[v-cloak] {
  display: none !important;
}

:root {
  --bg-primary: #0b0f19;
  --bg-secondary: #111827;
  --bg-card: #1f2937;
  --bg-input: #111827;
  --border-color: #374151;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-purple: #8b5cf6;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --text-primary: #f9fafb;
  --text-muted: #9ca3af;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #0f172a;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Terminal Console Emulation */
.terminal-window {
  background: #050811;
  border: 1px solid #1e293b;
  border-radius: 8px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.6), 0 8px 10px -6px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.terminal-header {
  background: #0f172a;
  border-bottom: 1px solid #1e293b;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.terminal-body {
  padding: 16px;
  min-height: 220px;
  color: #38bdf8;
  font-size: 0.9rem;
  line-height: 1.6;
}

.terminal-prompt {
  color: #10b981;
  font-weight: 600;
  margin-right: 8px;
}

.cursor-blink {
  display: inline-block;
  width: 8px;
  height: 15px;
  background-color: #38bdf8;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}

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

/* Socratic Tutor Slide-out Drawer */
.tutor-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 480px;
  max-width: 90vw;
  background: #0f172a;
  border-left: 1px solid #1e293b;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.7);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 60;
  display: flex;
  flex-direction: column;
}

.tutor-drawer.open {
  transform: translateX(0);
}

.tutor-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.tutor-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* Card Glow and Hover Effects */
.challenge-card {
  transition: all 0.2s ease-in-out;
  border: 1px solid #1e293b;
  background: #111827;
}

.challenge-card:hover {
  border-color: #0ea5e9;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -10px rgba(14, 165, 233, 0.2);
}

/* Difficulty Badges */
.badge-beginner {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-intermediate {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-advanced {
  background: rgba(244, 63, 94, 0.15);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.3);
}

/* Domain Badges */
.badge-domain {
  background: rgba(56, 189, 248, 0.1);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

/* Status Icons */
.status-pass {
  color: #34d399;
}
.status-partial {
  color: #fbbf24;
}
.status-fail {
  color: #fb7185;
}

/* Artifact Table Styling */
.artifact-box {
  background: #090d16;
  border: 1px solid #1e293b;
  border-radius: 6px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.82rem;
}

