/* CyberSafe - Additional styles (Tailwind via CDN handles most) */
:root {
  --primary: #0ea5e9;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Navbar */
.nav-link {
  transition: color 0.2s, border-color 0.2s;
}
.nav-link:hover, .nav-link.active {
  color: #0ea5e9;
  border-bottom-color: #0ea5e9;
}

/* Card styles */
.glass {
  background: rgba(255,255,255, 0.06);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(148, 163, 184, 0.15);
}

.dark .glass {
  background: rgba(15, 23, 42, 0.6);
}

/* Email simulator */
.email-container {
  font-family: system-ui, sans-serif;
  border: 1px solid #334155;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.email-header {
  background: #1e2937;
}

.phish-part {
  cursor: pointer;
  transition: background-color 0.15s, outline 0.15s;
  border-radius: 2px;
}
.phish-part:hover {
  background-color: rgba(251, 191, 36, 0.15);
  outline: 2px solid #f59e0b;
}
.phish-part.suspicious {
  background-color: rgba(248, 113, 113, 0.2);
  outline: 2px solid #ef4444;
}
.phish-part.safe {
  background-color: rgba(52, 211, 153, 0.15);
  outline: 2px solid #22c55e;
}

.flag {
  font-size: 0.75rem;
  padding: 1px 6px;
  border-radius: 9999px;
  background: #fee2e2;
  color: #b91c1c;
  display: inline-block;
}

/* Quiz */
.quiz-option {
  transition: all 0.1s ease;
}
.quiz-option:hover {
  transform: translateX(4px);
  border-color: #0ea5e9;
}
.quiz-option.selected {
  border-color: #0ea5e9;
  background-color: rgba(14, 165, 233, 0.1);
}
.quiz-option.correct {
  border-color: #22c55e;
  background-color: rgba(34, 197, 94, 0.15);
}
.quiz-option.incorrect {
  border-color: #ef4444;
  background-color: rgba(239, 68, 68, 0.15);
}

/* Risk meter */
.risk-bar {
  height: 12px;
  background: linear-gradient(to right, #22c55e, #eab308, #ef4444);
  border-radius: 9999px;
  transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Password strength */
.strength-weak { background: #ef4444; width: 25%; }
.strength-medium { background: #f59e0b; width: 60%; }
.strength-strong { background: #22c55e; width: 100%; }

/* Checklist */
.check-item {
  transition: all 0.2s;
}
.check-item.checked {
  opacity: 0.85;
}

/* Video player simulation */
.video-frame {
  background: #0f172a;
  position: relative;
  overflow: hidden;
}
.video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, rgba(15,23,42,0.6));
}

/* Callouts */
.callout {
  border-left: 4px solid #0ea5e9;
}
.callout.warning {
  border-left-color: #f59e0b;
}
.callout.danger {
  border-left-color: #ef4444;
}

/* Buttons */
.btn-primary {
  background-color: #0ea5e9;
  color: white;
  transition: all 0.1s;
}
.btn-primary:hover {
  background-color: #0284c8;
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: #334155;
  color: #e2e8f0;
}
.btn-secondary:hover {
  background-color: #475569;
}

/* Responsive table for resources */
.resource-table tr:hover {
  background-color: rgba(14, 165, 233, 0.05);
}

/* Toast */
.toast {
  animation: slideUp 0.2s ease forwards;
}
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Print styles for checklists */
@media print {
  .no-print { display: none !important; }
  .print-break { page-break-after: always; }
}