/*
 * Style sheet for the CYB 237 security assessment replica.
 *
 * This file defines a dark, dotted backdrop reminiscent of the
 * original Google Sites design. Accent colours are drawn from the
 * red and purple hues used throughout the report, and
 * typography leverages Google’s Open Sans and Oswald fonts for
 * clarity and emphasis. Components such as navigation, cards,
 * tables and tabbed content are styled here to provide a cohesive
 * and polished user experience.
 */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600&family=Open+Sans:wght@400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@700;900&family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

/* Colour palette */
:root {
  --primary-colour: #e74c3c;      /* vibrant red used for highlights */
  --secondary-colour: #9b59b6;    /* purple accent for headings */
  --background-colour: #0e0e12;   /* deep charcoal backdrop */
  --card-background: #14141a;     /* slightly lighter panels */
  --text-colour: #f8f8f8;         /* near‑white text */
  --muted-text: #b0b0b0;          /* subdued secondary text */
  --border-radius: 6px;

  /* New accent colours for upgraded design */
  --accent-red: #ef4444;
  --accent-glow: rgba(239, 68, 68, 0.4);
  --accent-gradient: linear-gradient(90deg, #6366f1, #a855f7);
  --accent-blue: #3b82f6;
  --accent-green: #10b981;
  --accent-purple: #8b5cf6;
  --accent-orange: #f97316;
  --warning-color: #fbbf24;
  --warning-bg: rgba(251, 191, 36, 0.05);
  --warning-border: rgba(251, 191, 36, 0.2);

  /* Pastel colours for STRIDE visualisation */
  --s-color: #fff7ed;
  --s-border: #ffedd5;
  --t-color: #f3f4f6;
  --t-border: #e5e7eb;
  --r-color: #ecfdf5;
  --r-border: #d1fae5;
  --i-color: #eff6ff;
  --i-border: #dbeafe;
  --d-color: #fef2f2;
  --d-border: #fee2e2;
  --e-color: #faf5ff;
  --e-border: #f3e8ff;

  /* Colour used for connecting lines in the team hierarchy */
  --connector-colour: rgba(255, 255, 255, 0.25);
}

/* Global resets */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding-top: 60px; /* Add padding to body to offset the fixed header */
  /* Use Inter for body text by default for a modern feel */
  font-family: 'Inter', sans-serif;
  color: var(--text-colour);
  background-color: var(--background-colour);
  /* dotted background pattern using radial gradients */
  background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px),
                    radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-position: 0 0, 25px 25px;
  background-size: 50px 50px;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Oswald', sans-serif;
  margin-top: 0;
  margin-bottom: 0.5em;
}

a {
  color: var(--primary-colour);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Navigation bar */
header {
  background-color: #050508;
  border-bottom: 2px solid var(--primary-colour);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.4rem;
  font-weight: 600;
  gap: 8px;
}

.logo i {
	  color: var(--primary-colour);
	  font-size: 1.5rem;
	}
	
	.logo-img {
	  width: 30px;
	  height: 30px;
	  object-fit: contain;
	  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
	}

.nav-links {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  gap: 10px;
}

.nav-links a {
  color: var(--text-colour);
  padding: 6px 14px;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: background-color 0.2s;
}

.nav-links a:hover, .nav-links a.active {
  background-color: var(--primary-colour);
  color: #fff;
}

/* New hero styles */
.hero-container {
	  text-align: center;
	  padding: 100px 20px 80px;
	  /* Make the hero background transparent to blend with the page */
	  background-color: transparent;
	  border-bottom: 2px solid var(--accent-red);
	  position: relative;
	
	  /* Ensure content layers above the parallax background */
	  overflow: hidden;
		}

/* Fullscreen navigation overlay (hidden by default) */
.nav-overlay {
  position: fixed;
  top: 0;
  right: 0; /* Change from left: 0 to right: 0 */
  width: 300px; /* Set a fixed width for the sidebar */
  height: 100%;
  background-color: var(--card-background); /* Use a darker background for elegance */
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5); /* Use a subtle shadow instead of a harsh border */
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Align items to the start (left) */
  justify-content: flex-start; /* Align content to the top */
  transform: translateX(100%); /* Start off-screen to the right */
  transition: transform 0.4s ease-in-out;
  z-index: 1000;
  padding: 40px 20px; /* Add padding */
}

.nav-overlay.open {
  transform: translateX(0); /* Slide in */
  pointer-events: all;
}

.nav-overlay ul {
  list-style: none;
  padding: 0;
  margin: 40px 0 0 0; /* Add top margin to separate from top edge */
  text-align: left; /* Align text to the left */
  width: 100%;
}

.nav-overlay li {
  margin: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

.nav-overlay a {
  font-size: 1.2rem; /* Smaller font size for elegance */
  color: var(--text-colour); /* Use primary text color for better visibility */
  text-decoration: none;
  transition: color 0.3s ease;
  display: block;
  padding: 5px 0;
  font-weight: 500;
}

.nav-overlay a:hover {
  color: var(--primary-colour); /* Use primary color for hover effect */
  padding-left: 5px;
}

/* Close button for the sidebar */
.close-menu-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  color: var(--muted-text);
  transition: color 0.2s, transform 0.2s;
  z-index: 1001;
}

.close-menu-btn svg {
  width: 24px;
  height: 24px;
  display: block;
}

.close-menu-btn:hover {
  color: var(--accent-red);
  transform: rotate(90deg);
}

/* Navigation toggle for mobile */
.menu-toggle {
  display: none; /* Hidden by default on desktop */
  font-size: 24px;
  cursor: pointer;
  margin-left: auto;
  color: var(--text-colour); /* Changed to text-colour for better visibility */
  transition: color 0.2s;
}

/* Responsive behaviour: show hamburger menu and hide nav-links on small screens */
@media (max-width: 768px) {
  nav .nav-links {
    display: none;
  }
.menu-toggle {
  display: block;
}

.menu-toggle:hover {
  color: var(--accent-red);
}
}









/* Ensure team members appear in a single row on large screens */
.team-hierarchy .members-row .card-member {
  flex: 0 0 calc(20% - 30px);
}

/* Parallax background inside hero */
.hero-container .parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* a subtle radial glow behind the hero text */
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  mix-blend-mode: overlay;
  z-index: -1;
  transform: translateY(0);
  transition: transform 0.1s linear;
}

.hero-overline {
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent-red);
  font-size: 14px;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: block;
  font-weight: 500;
  text-shadow: 0 0 15px var(--accent-glow);
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: 4rem;
  font-weight: 900;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.1;
  letter-spacing: -1px;
  background: linear-gradient(to bottom, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 4px rgba(0,0,0,0.3));
  animation: fadeInDown 0.8s ease-out forwards;
}

.hero-separator {
  height: 2px;
  width: 100%;
  max-width: 180px;
  margin: 30px auto;
  background: linear-gradient(90deg, transparent, var(--accent-red), transparent);
  position: relative;
  border-radius: 50%;
  box-shadow: 0 0 15px var(--accent-glow);
  animation: fadeInDown 1s ease-out forwards;
}

.hero-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 1.8rem;
  color: #ffffff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 6px;
  margin: 0;
  animation: fadeInDown 1.2s ease-out forwards;
}

/* Decorative vertical dots alongside the hero section */
.hero-dots {
	  display: none; /* Hide the decorative dots as they conflict with the new centered layout */
	}

@media (max-width: 768px) {
  .hero-title { font-size: 2.8rem; }
  .hero-subtitle { font-size: 1.2rem; letter-spacing: 3px; }
  .hero-separator { max-width: 120px; margin: 25px auto; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.2rem; }
  .hero-overline { font-size: 12px; letter-spacing: 2px; }
}

/* Fade in downward motion for hero elements */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll reveal base state */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal-on-scroll.active {
  opacity: 1;
  transform: translateY(0);
}

/* Section styling */
section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 20px;
}

section h2 {
  font-size: 1.8rem;
  border-bottom: 3px solid var(--primary-colour);
  display: inline-block;
  padding-bottom: 6px;
  margin-bottom: 20px;
}

.executive-summary p, .disclaimer p, .threat-analysis p, .conclusion p, .about p {
  max-width: 850px;
  margin: 0 auto 20px;
  color: var(--muted-text);
}

/* Analysis boxes */
.analysis-boxes {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.analysis-box {
  flex: 1 1 250px;
  background-color: var(--card-background);
  border-left: 5px solid var(--secondary-colour);
  padding: 20px;
  border-radius: var(--border-radius);
}

.analysis-box h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.3rem;
}

/* STRIDE section */
.stride-model .stride-letters {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 20px;
  margin-bottom: 30px;
}

.stride-model .stride-letters div {
  flex: 1 1 100px;
  text-align: center;
  padding: 20px 10px;
  margin: 5px;
  background-color: var(--card-background);
  border-radius: var(--border-radius);
}

.stride-model .stride-letters span {
  display: block;
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.stride-model .stride-letters small {
  font-size: 0.8rem;
  color: var(--muted-text);
  text-transform: uppercase;
}

/* Table styling */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

th, td {
  padding: 10px 12px;
  text-align: left;
}

th {
  background-color: var(--card-background);
  color: var(--text-colour);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
}

tr:nth-child(even) {
  background-color: #101014;
}

tr:nth-child(odd) {
  background-color: #0c0c10;
}

/* Bowtie diagram */
.bowtie-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.bowtie-grid > div {
  flex: 1 1 200px;
  background-color: var(--card-background);
  padding: 20px;
  border-radius: var(--border-radius);
  min-width: 200px;
}

.bowtie-grid h3 {
  margin-top: 0;
  font-size: 1.2rem;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.controls > div {
  flex: 1 1 300px;
  background-color: var(--card-background);
  padding: 20px;
  border-radius: var(--border-radius);
}

/* Vulnerabilities page */
/* Vulnerabilities page header */
.vulnerabilities-list h1 {
  font-size: 2.4rem;
  margin-bottom: 30px;
  text-align: center;
  position: relative;
  display: inline-block;
  font-weight: 800;
  background: linear-gradient(to right, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.vulnerabilities-list h1::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--accent-gradient);
  border-radius: 2px;
  margin: 12px auto 0 auto;
}

/* Updated vulnerability cards */
/*
 * Vulnerability cards
 *
 * The cards use a semi‑transparent panel with a coloured border on the left to
 * indicate the severity. A subtle shadow appears on hover for depth. Any
 * transform animations (e.g. 3D tilt) are handled via JavaScript rather than
 * CSS to avoid conflicting transitions.
 */
.vulnerability-card {
  display: flex;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid #272a36;
  border-left: 4px solid var(--accent-purple);
  padding: 24px;
  border-radius: 12px;
  margin-bottom: 25px;
  gap: 20px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  /* ensure the element has perspective for the 3D tilt effect */
  transform-style: preserve-3d;
}

.vulnerability-card:hover {
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.4); /* Subtle glow on hover */
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* risk modifiers */
.vulnerability-card.high-risk { border-left-color: var(--accent-red); }
.vulnerability-card.medium-risk { border-left-color: #f59e0b; }
.vulnerability-card.low-risk { border-left-color: var(--accent-blue); }

/* Icon image for vulnerability cards */
.vulnerability-card .icon-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex-shrink: 0;
  margin-top: 5px;
}

.vulnerability-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.2rem;
  color: var(--text-colour);
}

.vulnerability-card ul {
  margin: 0;
  padding-left: 20px;
  list-style-type: disc;
  color: var(--muted-text);
  font-size: 0.9rem;
}

.vulnerability-card .btn {
  display: inline-block;
  margin-top: 15px;
  background: var(--accent-gradient);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  transition: background 0.3s ease;
}

.vulnerability-card .btn:hover {
  background: linear-gradient(90deg, #7e46f2, #d946ef);
}

/* About page */
.about h1 {
  font-size: 2.4rem;
  text-align: center;
  position: relative;
  display: inline-block;
  font-weight: 800;
  background: linear-gradient(to right, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 40px;
}

.about h1::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--accent-gradient);
  border-radius: 2px;
  margin: 12px auto 0 auto;
}

.about .team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}

.about .member {
  flex: 1 1 250px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid #272a36;
  border-top: 3px solid var(--accent-purple);
  padding: 24px;
  border-radius: 12px;
  min-width: 200px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about .member:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.about .member h3 {
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--accent-purple);
  font-size: 1.2rem;
  font-weight: 700;
}

.about .member ul {
  margin: 0;
  padding-left: 20px;
  list-style-type: disc;
  color: var(--muted-text);
  font-size: 0.95rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  font-size: 0.8rem;
  color: var(--muted-text);
  border-top: 1px solid #1a1a20;
}

/*
 * Scroll progress bar
 *
 * A thin bar at the top of the viewport indicates how far the user has
 * scrolled down the page. Its width is updated via JavaScript on scroll.
 */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0;
  background: var(--accent-gradient);
  z-index: 2000;
  transition: width 0.2s ease-out;
}

/*
 * Scroll‑to‑top button
 *
 * A circular button appears when the user scrolls past a certain point. Clicking
 * it smoothly scrolls the page back to the top. It remains hidden until
 * activated via JavaScript.
 */
.scroll-top-btn {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 46px;
  height: 46px;
  background: var(--accent-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 2000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.scroll-top-btn.visible {
  opacity: 1;
  pointer-events: all;
}

.scroll-top-btn svg {
  width: 20px;
  height: 20px;
  color: #ffffff;
}

/*
 * About page redesign
 *
 * Provides a more polished presentation for the Team & Supervision page.
 * Cards for supervisor, leader and members use coloured top borders to
 * distinguish roles. A badge displays the university and course name.
 */
.about-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 20px;
}
.about-container {
  display: flex;
  flex-direction: column;
  gap: 50px;
}
.header-section {
  text-align: center;
}
.uni-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #272a36;
  border-radius: 50px;
  font-size: 0.75rem;
  letter-spacing: 1px;
  color: var(--muted-text);
  margin-bottom: 15px;
  text-transform: uppercase;
  font-weight: 600;
}
.main-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 15px;
  background: linear-gradient(to bottom, #ffffff, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.project-desc {
  max-width: 700px;
  margin: 0 auto;
  color: var(--muted-text);
  line-height: 1.8;
  font-size: 1rem;
}
.highlight {
  color: #fff;
  font-weight: 600;
}
.team-section {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.profile-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid #272a36;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}
.profile-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}
.card-supervisor {
  border-top: 3px solid var(--warning-color);
}
.card-supervisor:hover {
  border-color: var(--warning-color);
  box-shadow: 0 10px 40px -10px var(--warning-bg);
}
.card-leader {
  border-top: 3px solid var(--accent-purple);
}
.card-leader:hover {
  border-color: var(--accent-purple);
  box-shadow: 0 10px 40px -10px rgba(139, 92, 246, 0.3);
}
.card-member {
  border-top: 3px solid var(--accent-blue);
}
.card-member:hover {
  border-color: var(--accent-blue);
  box-shadow: 0 10px 30px -10px rgba(56, 189, 248, 0.3);
}
.icon-box {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 1.8rem;
}
.icon-supervisor {
  background: rgba(251, 191, 36, 0.1);
  color: var(--warning-color);
}
.icon-leader {
  background: rgba(139, 92, 246, 0.1);
  color: var(--accent-purple);
}
.icon-member {
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-blue);
}
.role-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  opacity: 0.8;
  margin-bottom: 5px;
}
.name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
}
.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

/* Team hierarchy layout for the about page */
.team-hierarchy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  position: relative;
}

.team-hierarchy .members-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  width: 100%;
}

/* Vertical connector lines between supervisor/leader and leader/members */
.team-hierarchy .card-supervisor::after,
.team-hierarchy .card-leader::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 40px;
  background: var(--connector-colour);
  z-index: -1;
}

.team-hierarchy .card-supervisor::after {
  top: 100%;
}

.team-hierarchy .card-leader::after {
  top: 100%;
}

.team-hierarchy .card-leader {
  margin-top: 0;
}

/* Stack supervisor and leader cards to occupy full width with a max size */
.team-hierarchy > .card-supervisor,
.team-hierarchy > .card-leader {
  width: 100%;
  max-width: 450px;
}
}
@media (max-width: 768px) {
  .main-title {
    font-size: 2rem;
  }
}

/*
 * STRIDE visualisation section
 *
 * Displays the six STRIDE threat categories as pastel‑coloured boxes in a row
 * with labels above or below the letter. Each box lifts slightly on hover to
 * provide interactivity. Colours are defined via CSS variables at the root.
 */
.stride-visual {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 20px;
  text-align: center;
}
.stride-visual .header h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 10px;
  background: linear-gradient(to right, #ffffff, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stride-visual .header::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--accent-gradient);
  border-radius: 2px;
  margin: 12px auto 30px;
}
.stride-visual .description {
  max-width: 700px;
  margin: 0 auto 40px;
  color: var(--muted-text);
  font-size: 1rem;
  line-height: 1.7;
}
.stride-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}
.stride-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 120px;
}
.stride-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-colour);
  margin-top: 8px;
  line-height: 1.3;
}
.stride-box {
  width: var(--box-size, 110px);
  height: var(--box-size, 110px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  font-weight: 800;
  color: #111827;
  border: 2px solid;
  border-radius: 12px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease;
  cursor: default;
}
.stride-box:hover {
  transform: translateY(-6px);
}
.s-box { background-color: var(--s-color); border-color: var(--s-border); }
.t-box { background-color: var(--t-color); border-color: var(--t-border); }
.r-box { background-color: var(--r-color); border-color: var(--r-border); }
.i-box { background-color: var(--i-color); border-color: var(--i-border); }
.d-box { background-color: var(--d-color); border-color: var(--d-border); }
.e-box { background-color: var(--e-color); border-color: var(--e-border); }

@media (max-width: 800px) {
  .stride-col { width: 100px; }
  .stride-box { width: 90px; height: 90px; font-size: 2.2rem; }
}

/* Exploit pages */
.exploit-container h1 {
  font-size: 2.2rem;
  margin-bottom: 30px;
  font-weight: 800;
  background: linear-gradient(to right, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 1px solid #272a36;
}

.tab {
  background: transparent;
  border: none;
  padding: 10px 16px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  color: var(--muted-text);
  font-weight: 600;
  position: relative;
  transition: color 0.2s ease;
}

.tab.active {
  color: var(--text-colour);
  font-weight: 700;
}

/* Add underlines for active tabs */
.tab.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: var(--accent-gradient);
  border-radius: 2px;
}

.tab-content {
  display: none;
  background: rgba(255, 255, 255, 0.03);
  padding: 24px;
  border-radius: 12px;
  border: 1px solid #272a36;
  margin-top: 20px;
}

.tab-content.active {
  display: block;
}

.tab-content ul {
  padding-left: 20px;
  list-style-type: disc;
  margin: 10px 0;
}

/* Code blocks for exploit pages */
pre {
  background: #0f0f17;
  padding: 12px;
  border-radius: 8px;
  overflow-x: auto;
}
code {
  font-family: 'JetBrains Mono', monospace;
  color: #f87171;
}

@media (max-width: 700px) {
  .nav-links {
    flex-direction: column;
    gap: 5px;
  }
  .analysis-boxes, .bowtie-grid, .controls, .about .team-grid {
    flex-direction: column;
  }
  .vulnerability-card {
    flex-direction: column;
  }
}

/* ------------------------------------------------------------
 * Enhanced UI styles for the professional redesign
 * These classes support the new executive summary, threat analysis,
 * STRIDE table, Bowtie diagram and conclusion sections defined in
 * index.html. They leverage the accent colours and modern fonts
 * imported at the top of this stylesheet. Existing classes remain
 * for backwards compatibility on other pages.
 * ------------------------------------------------------------ */

/* Executive Summary */
.summary-container { width: 100%; max-width: 900px; margin: 0 auto; }
.summary-container .header { margin-bottom: 30px; position: relative; }
.summary-container .header h1 {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 15px 0;
  color: var(--text-colour);
  letter-spacing: -0.5px;
  display: inline-block;
}
.summary-container .header::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--accent-gradient);
  border-radius: 2px;
}
.content-block {
  color: #cbd5e1;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 24px;
}
.highlight { color: var(--text-colour); font-weight: 600; }
.stat-highlight { color: var(--accent-red); font-weight: 700; }
.disclaimer-box {
  margin: 40px auto 0;
  max-width: 800px;
  padding: 20px 24px;
  border: 1px solid var(--warning-border);
  background-color: var(--warning-bg);
  border-radius: 10px;
  color: #e5e7eb;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  line-height: 1.6;
  text-align: center;
}
.warning-icon { color: var(--warning-color); flex-shrink: 0; margin-top: 2px; }

/* Threat Analysis */
.analysis-container { width: 100%; max-width: 900px; margin: 0 auto; }
.analysis-container .header { margin-bottom: 30px; }
.analysis-container .header h1 {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 15px 0;
  color: var(--text-colour);
  letter-spacing: -0.5px;
  display: inline-block;
}
.analysis-container .header::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--accent-gradient);
  border-radius: 2px;
}
.intro-text {
  color: var(--muted-text);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 32px;
}
.methods-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.method-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid #272a36;
  border-radius: 12px;
  padding: 24px;
  transition: background 0.3s ease, transform 0.3s ease;
}
.method-card:hover { background: rgba(255, 255, 255, 0.05); transform: translateY(-4px); }
.method-icon {
  color: #ffffff;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.method-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-colour);
  margin: 0;
}
.method-desc {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--muted-text);
  line-height: 1.6;
}
@media (max-width: 700px) { .methods-grid { grid-template-columns: 1fr; } }

/* STRIDE table */
.table-wrapper { width: 100%; max-width: 1000px; margin: 0 auto; overflow-x: visible; }
.stride-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 0.95rem; }
.stride-table th {
  color: var(--muted-text);
  font-weight: 700;
  padding: 20px;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}
.stride-table td {
  padding: 20px;
  color: var(--text-colour);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  vertical-align: middle;
  transition: background 0.2s ease;
}
.stride-table tr:last-child td { border-bottom: none; }
.stride-table tbody tr:hover {
  background-color: #1a1a20; /* Slightly lighter background on hover */
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1); /* Subtle white glow on hover */
}
.stride-cell { display: flex; align-items: center; gap: 16px; }
.letter-box {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 1.2rem;
  color: #000;
  flex-shrink: 0;
}
.s-type { background: #FFE9C6; border: 2px solid #E8C88A; }
.t-type { background: #E5E3E0; border: 2px solid #CFCBC8; }
.r-type { background: #D7EBD1; border: 2px solid #A7C89D; }
.i-type { background: #DDEAFF; border: 2px solid #AFCBFF; }
.d-type { background: #F3D3D3; border: 2px solid #E1A9A9; }
.e-type { background: #E8D9F1; border: 2px solid #C9B1DA; }
.threat-name { font-weight: 700; font-size: 1rem; }
.example-tag {
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: inline-block;
}
@media (max-width: 768px) {
  .stride-table th, .stride-table td { padding: 15px; }
  .letter-box { width: 32px; height: 32px; font-size: 1rem; }
}

/* Bowtie diagram */
.bowtie-card { width: 100%; max-width: 1000px; margin: 0 auto; border: none; box-shadow: none; padding: 0; }
.bowtie-card .header { text-align: center; margin-bottom: 50px; }
.bowtie-card .header h1 {
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0 0 10px 0;
  background: linear-gradient(to right, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.bowtie-card .header p {
  margin: 0;
  color: var(--muted-text);
  font-size: 0.9rem;
}
.diagram-flow { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 40px; }
.box {
  flex: 1;
  background: #1a1d24;
  border: 1px solid #2a2d36;
  border-radius: 12px;
  padding: 20px;
  position: relative;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.center-event {
  flex: 0.8;
  border: 2px solid var(--accent-purple);
  background: rgba(139, 92, 246, 0.05);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.1);
  justify-content: center;
  text-align: center;
}
.center-content {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
}
.arrow-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  color: var(--muted-text);
  opacity: 0.5;
}
.box ul { margin: 0; padding: 0; list-style: none; color: #cbd5e1; font-size: 0.9rem; }
.box ul li { margin-bottom: 8px; padding-left: 12px; position: relative; line-height: 1.5; }
.box ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--muted-text);
}
.box-header {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #2a2d36;
  display: flex;
  align-items: center;
  gap: 8px;
}
.t-accent { color: var(--accent-red); }
.i-accent { color: #f97316; }
.controls-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.control-box {
  background: #1a1d24;
  border: 1px solid #2a2d36;
  border-radius: 12px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.prev-box { border-top: 3px solid var(--accent-blue); }
.mit-box { border-top: 3px solid var(--accent-green); }
.control-title {
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.c-prev { color: var(--accent-blue); }
.c-mit { color: var(--accent-green); }
.control-box ul {
  margin: 0;
  padding-left: 20px;
  list-style-type: disc;
  color: #cbd5e1;
  font-size: 0.9rem;
  line-height: 1.6;
}
@media (max-width: 900px) {
  .diagram-flow { flex-direction: column; }
  .arrow-connector { transform: rotate(90deg); height: 40px; }
  .controls-wrapper { display: flex; flex-direction: column; gap: 20px; }
  .box { width: 100%; min-height: auto; }
}

/* Conclusion section */
.conclusion .header { margin-bottom: 30px; }
.conclusion .header h1 {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 15px 0;
  color: var(--text-colour);
  letter-spacing: -0.5px;
  display: inline-block;
}
.conclusion .header::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--accent-gradient);
  border-radius: 2px;
}
.conclusion p {
  max-width: 900px;
  color: var(--muted-text);
  font-size: 1rem;
  line-height: 1.7;
}

/*
 * Threat Modeling page
 *
 * Custom layouts and components used on the threat modeling page. Cards are
 * colour‑coded by STRIDE category, risk matrix tags indicate severity, and
 * analysis/recommendation boxes organise information into digestible pieces.
 */
.tm-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 20px;
}
.tm-section h1 {
  font-size: 2.4rem;
  margin-bottom: 20px;
  background: linear-gradient(to right, #ffffff, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.tm-section p.description {
  font-size: 1rem;
  margin-bottom: 30px;
  color: var(--muted-text);
}
.tm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 40px;
}
.tm-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 4px solid var(--accent-blue);
  border-radius: 16px;
  padding: 30px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}
.tm-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at top right, rgba(239, 68, 68, 0.05), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.tm-card:hover::before {
  opacity: 1;
}
.tm-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.3);
}
.tm-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.2rem;
  font-weight: 700;
}
.tm-card h4 {
  margin-bottom: 4px;
  font-size: 0.9rem;
  color: var(--primary-colour);
}
.tm-card ul {
  list-style: disc;
  padding-left: 20px;
  margin: 0 0 8px 0;
  font-size: 0.85rem;
}
.tm-card.spoofing { border-left-color: var(--accent-red); }
.tm-card.tampering { border-left-color: var(--accent-orange); }
.tm-card.repudiation { border-left-color: var(--warning-color); }
.tm-card.disclosure { border-left-color: var(--accent-green); }
.tm-card.dos { border-left-color: var(--accent-blue); }
.tm-card.elevation { border-left-color: var(--accent-purple); }

/* Risk matrix table */
.risk-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 30px;
}
.risk-table th,
.risk-table td {
  padding: 12px 16px;
  text-align: left;
}
.risk-table th {
  font-weight: 700;
  background-color: rgba(255, 255, 255, 0.04);
}
.risk-table tr:nth-child(odd) {
  background-color: rgba(255, 255, 255, 0.02);
}
.risk-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}
.risk-critical { background: rgba(236, 72, 153, 0.2); color: #ec4899; }
.risk-high     { background: rgba(239, 68, 68, 0.2); color: #ef4444; }
.risk-medium   { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
.risk-low      { background: rgba(34, 197, 94, 0.2); color: #22c55e; }

/* Attack surface analysis & recommendations */
.surface-grid, .recommendations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 40px;
}
.surface-box, .rec-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid #272a36;
  border-top: 4px solid var(--primary-colour);
  border-radius: 12px;
  padding: 20px;
}
.surface-box h3, .rec-box h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-colour);
}
.surface-box ul, .rec-box ul {
  list-style: disc;
  padding-left: 20px;
  margin: 0;
  font-size: 0.85rem;
}
.rec-box.immediate { border-top-color: var(--accent-red); }
.rec-box.short { border-top-color: var(--accent-orange); }
.rec-box.long { border-top-color: var(--accent-purple); }

/* Labs page styles */
.labs-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 20px;
}
.labs-container h1 {
  font-size: 2.4rem;
  margin-bottom: 10px;
  background: linear-gradient(to right, #ffffff, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.labs-container p.description {
  color: var(--muted-text);
  margin-bottom: 40px;
}
.lab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.lab-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid #272a36;
  border-radius: 12px;
  padding: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.lab-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.lab-card h3 {
  margin-top: 0;
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.lab-card p {
  font-size: 0.85rem;
  margin-bottom: 10px;
}
.lab-card pre {
  background: rgba(0, 0, 0, 0.5);
  padding: 10px;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.8rem;
}
.lab-card ul {
  list-style: disc;
  padding-left: 20px;
  margin: 0;
  font-size: 0.85rem;
}
.education-note {
  margin-top: 40px;
  font-size: 0.8rem;
  color: var(--muted-text);
  text-align: center;
}

/* ========================================
   Interactive Labs Styles
   ======================================== */

/* Labs Tabs Navigation */
.labs-tabs {
  display: flex;
  gap: 10px;
  margin: 30px 0;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
}

.lab-tab {
  background: transparent;
  border: none;
  color: var(--muted-text);
  padding: 15px 25px;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lab-tab i {
  font-size: 1.1rem;
}

.lab-tab:hover {
  color: var(--text-colour);
  background: rgba(239, 68, 68, 0.1);
}

.lab-tab.active {
  color: var(--accent-red);
  border-bottom-color: var(--accent-red);
  background: rgba(239, 68, 68, 0.05);
}

/* Labs Content */
.labs-content {
  margin-top: 30px;
}

.lab-panel {
  display: none;
  animation: fadeIn 0.4s ease;
}

.lab-panel.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Lab Header */
.lab-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid rgba(239, 68, 68, 0.3);
}

.lab-header i {
  font-size: 2rem;
  color: var(--accent-red);
}

.lab-header h2 {
  margin: 0;
  font-size: 1.8rem;
  background: linear-gradient(135deg, var(--accent-red), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lab-description {
  color: var(--muted-text);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 30px;
}

/* Lab Sections */
.lab-section {
  margin: 30px 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
}

.lab-section h3 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.3rem;
  color: var(--text-colour);
}

.lab-section .note {
  color: var(--muted-text);
  font-size: 0.9rem;
  font-style: italic;
  margin-top: 10px;
}

/* Code Blocks */
.code-block {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  padding: 15px;
  overflow-x: auto;
  margin: 15px 0;
}

.code-block code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  color: #e0e0e0;
  line-height: 1.6;
}

.code-block .highlight {
  color: var(--accent-red);
  font-weight: 600;
}

/* Interactive Lab Controls */
.lab-interactive {
  margin: 30px 0;
  padding: 25px;
  background: rgba(239, 68, 68, 0.05);
  border: 2px solid rgba(239, 68, 68, 0.2);
  border-radius: 12px;
}

.lab-interactive label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--text-colour);
  font-size: 1rem;
}

.lab-input {
  width: 100%;
  padding: 12px 15px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: var(--text-colour);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  margin-bottom: 15px;
}

.lab-input:focus {
  outline: none;
  border-color: var(--accent-red);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.lab-input::placeholder {
  color: var(--muted-text);
  opacity: 0.6;
}

/* Lab Buttons */
.lab-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-execute,
.btn-reset {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
}

.btn-execute {
  background: linear-gradient(135deg, var(--accent-red), #dc2626);
  color: white;
}

.btn-execute:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(239, 68, 68, 0.4);
}

.btn-reset {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-colour);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-reset:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Lab Output */
.lab-output {
  margin: 30px 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.output-header {
  background: rgba(0, 0, 0, 0.5);
  padding: 12px 20px;
  font-weight: 600;
  color: var(--text-colour);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.output-content {
  padding: 20px;
  background: rgba(0, 0, 0, 0.3);
  min-height: 100px;
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
}

.output-content.error {
  color: var(--muted-text);
}

.output-content.success {
  border-left: 4px solid var(--accent-green);
}

.output-content.warning {
  border-left: 4px solid var(--warning-color);
}

.output-content.danger {
  border-left: 4px solid var(--accent-red);
}

.output-content.info {
  border-left: 4px solid var(--accent-blue);
}

.output-content.neutral {
  border-left: 4px solid var(--muted-text);
}

.output-success,
.output-warning,
.output-danger,
.output-info,
.output-neutral {
  font-size: 0.95rem;
}

.output-success i,
.output-warning i,
.output-danger i,
.output-info i,
.output-neutral i {
  margin-right: 5px;
}

.output-content code {
  background: rgba(0, 0, 0, 0.5);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
}

/* Payload List */
.payload-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.payload-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.payload-item:hover {
  background: rgba(0, 0, 0, 0.6);
  border-color: rgba(239, 68, 68, 0.3);
}

.payload-item code {
  flex: 1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  color: var(--text-colour);
}

.btn-copy {
  padding: 8px 12px;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 6px;
  color: var(--text-colour);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}

.btn-copy:hover {
  background: var(--accent-red);
  transform: scale(1.05);
}

.btn-copy i {
  font-size: 0.9rem;
}

/* Credentials Grid */
.credentials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.credential-card {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.credential-card:hover {
  border-color: rgba(239, 68, 68, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.credential-header {
  background: rgba(239, 68, 68, 0.2);
  padding: 12px 15px;
  font-weight: 600;
  color: var(--text-colour);
  border-bottom: 1px solid rgba(239, 68, 68, 0.3);
}

.credential-body {
  padding: 15px;
}

.credential-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.credential-row:last-child {
  margin-bottom: 0;
}

.credential-label {
  font-weight: 600;
  color: var(--muted-text);
  min-width: 80px;
}

.credential-row code {
  flex: 1;
  background: rgba(0, 0, 0, 0.5);
  padding: 6px 10px;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
}

.btn-copy-small {
  padding: 6px 10px;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 6px;
  color: var(--text-colour);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-copy-small:hover {
  background: var(--accent-red);
}

.btn-copy-small i {
  font-size: 0.85rem;
}

/* Best Practices */
.best-practices {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.practice-item {
  display: flex;
  gap: 15px;
  padding: 15px;
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 8px;
  align-items: flex-start;
}

.practice-item i {
  font-size: 1.5rem;
  color: var(--accent-green);
  margin-top: 2px;
}

.practice-item strong {
  color: var(--text-colour);
}

/* Session Analysis */
.session-analysis {
  font-size: 0.95rem;
}

.analysis-header {
  margin-bottom: 20px;
  font-size: 1.1rem;
  font-weight: 600;
}

.analysis-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.token-display {
  padding: 15px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  word-break: break-all;
}

.token-display code {
  color: var(--accent-red);
  font-family: 'JetBrains Mono', monospace;
}

.strength-meter {
  padding: 15px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
}

.strength-label {
  margin-bottom: 10px;
  font-weight: 600;
}

.strength-bar {
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  overflow: hidden;
}

.strength-fill {
  height: 100%;
  transition: width 0.5s ease;
  border-radius: 5px;
}

.strength-weak {
  color: #ef4444;
  background: linear-gradient(90deg, #ef4444, #dc2626);
}

.strength-poor {
  color: #f97316;
  background: linear-gradient(90deg, #f97316, #ea580c);
}

.strength-fair {
  color: #fbbf24;
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.strength-good {
  color: #10b981;
  background: linear-gradient(90deg, #10b981, #059669);
}

.vulnerabilities {
  padding: 15px;
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 8px;
}

.vuln-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0 0;
}

.vuln-list li {
  padding: 8px 0;
  color: var(--accent-red);
}

.vuln-list i {
  margin-right: 8px;
}

.no-vuln {
  color: var(--accent-green);
  margin: 10px 0 0 0;
}

.recommendations {
  padding: 15px;
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 8px;
}

.recommendations ul {
  margin: 10px 0 0 0;
  padding-left: 25px;
}

.recommendations li {
  margin: 8px 0;
  color: var(--text-colour);
}

/* XSS Demo */
.xss-demo {
  padding: 15px;
  background: rgba(0, 0, 0, 0.6);
  border: 2px dashed rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  margin: 10px 0;
  font-family: 'Inter', sans-serif;
  color: var(--muted-text);
}

/* Educational Warning */
.education-warning {
  margin: 40px 0;
  padding: 25px;
  background: rgba(251, 191, 36, 0.05);
  border: 2px solid rgba(251, 191, 36, 0.3);
  border-radius: 12px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.warning-icon {
  font-size: 2.5rem;
  color: var(--warning-color);
}

.warning-content h3 {
  margin-top: 0;
  margin-bottom: 15px;
  color: var(--warning-color);
  font-size: 1.3rem;
}

.warning-content p {
  margin: 10px 0;
  color: var(--text-colour);
  line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
  .labs-tabs {
    flex-direction: column;
  }
  
  .lab-tab {
    width: 100%;
    justify-content: center;
  }
  
  .lab-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .lab-buttons {
    flex-direction: column;
  }
  
  .btn-execute,
  .btn-reset {
    width: 100%;
    justify-content: center;
  }
  
  .credentials-grid {
    grid-template-columns: 1fr;
  }
  
  .education-warning {
    flex-direction: column;
  }
  
  .payload-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .btn-copy {
    width: 100%;
    justify-content: center;
  }
}


/* ========================================
   Enhanced Interactive Elements
   ======================================== */

/* Loading Animation */
body {
  opacity: 0;
  animation: fadeInBody 0.5s ease-in forwards;
}

body.loaded {
  opacity: 1;
}

@keyframes fadeInBody {
  to {
    opacity: 1;
  }
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 1;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.mouse {
  width: 26px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 15px;
  position: relative;
}

.wheel {
  width: 4px;
  height: 8px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll-wheel 1.5s infinite;
}

@keyframes scroll-wheel {
  0%, 100% {
    opacity: 0;
    top: 8px;
  }
  50% {
    opacity: 1;
    top: 16px;
  }
}

.arrow-down {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.arrow-down span {
  width: 12px;
  height: 2px;
  background: rgba(255, 255, 255, 0.5);
  animation: arrow-bounce 1.5s infinite;
}

.arrow-down span:first-child {
  animation-delay: 0s;
}

.arrow-down span:last-child {
  animation-delay: 0.15s;
}

@keyframes arrow-bounce {
  0%, 100% {
    opacity: 0;
    transform: translateY(-5px);
  }
  50% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Quick Stats Section */
.quick-stats {
  max-width: 1200px;
  margin: -60px auto 60px;
  padding: 0 30px;
  position: relative;
  z-index: 10;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.stat-card {
  background: linear-gradient(135deg, rgba(20, 20, 26, 0.95), rgba(30, 30, 40, 0.95));
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-red), var(--accent-purple));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.stat-card:hover::before {
  transform: scaleX(1);
}

.stat-card:hover {
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.4); /* Subtle purple glow on hover */
  transform: translateY(-10px);
  border-color: var(--accent-red);
  box-shadow: 0 15px 40px rgba(239, 68, 68, 0.3);
}

.stat-icon {
  font-size: 3rem;
  color: var(--accent-red);
  margin-bottom: 15px;
  transition: all 0.4s ease;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  background: linear-gradient(135deg, var(--accent-red), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 10px 0;
  line-height: 1;
}

.stat-label {
  color: var(--muted-text);
  font-size: 0.95rem;
  font-weight: 500;
  margin-top: 10px;
}

/* Ripple Effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: scale(0);
  animation: ripple-animation 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Enhanced Button Styles */
.btn, .filter-btn, .btn-execute, .btn-reset {
  position: relative;
  overflow: hidden;
}

/* Vulnerabilities Page Enhancements */
.vuln-hero {
  background: linear-gradient(135deg, rgba(14, 14, 18, 0.95), rgba(30, 30, 40, 0.95));
  padding: 100px 30px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.vuln-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(239, 68, 68, 0.1), transparent 70%);
  pointer-events: none;
}

.vuln-hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-description {
  color: var(--muted-text);
  font-size: 1.1rem;
  margin-top: 15px;
}

/* Filter Controls */
.vuln-controls {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 30px;
}

.controls-container {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.search-box {
  flex: 1;
  min-width: 250px;
  position: relative;
}

.search-box i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-text);
  font-size: 1rem;
}

.search-box input {
  width: 100%;
  padding: 12px 15px 12px 45px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--text-colour);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.search-box input:focus {
  outline: none;
  border-color: var(--accent-red);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.filter-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-colour);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-red);
}

.filter-btn.active {
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: white;
}

/* Enhanced Vulnerability Cards */
.vulnerability-card {
  position: relative;
  transition: all 0.3s ease;
}

.risk-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  z-index: 2;
}

.risk-badge.high {
  background: rgba(239, 68, 68, 0.2);
  color: var(--accent-red);
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.risk-badge.medium {
  background: rgba(251, 191, 36, 0.2);
  color: var(--warning-color);
  border: 1px solid rgba(251, 191, 36, 0.4);
}

.risk-badge.low {
  background: rgba(59, 130, 246, 0.2);
  color: var(--accent-blue);
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.vuln-content {
  flex: 1;
}

.vuln-meta {
  display: flex;
  gap: 15px;
  margin: 10px 0;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted-text);
  font-size: 0.85rem;
}

.meta-item i {
  color: var(--accent-red);
}

.vuln-description {
  color: var(--text-colour);
  line-height: 1.6;
  margin: 15px 0;
}

.vuln-impact {
  background: rgba(239, 68, 68, 0.1);
  border-left: 3px solid var(--accent-red);
  padding: 10px 15px;
  margin: 15px 0;
  border-radius: 4px;
  font-size: 0.9rem;
}

/* No Results Message */
.no-results-message {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted-text);
}

.no-results-message i {
  font-size: 4rem;
  opacity: 0.3;
  margin-bottom: 20px;
}

.no-results-message h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--text-colour);
}

/* Threat Modeling Enhancements */
.tm-card-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  display: flex;
  justify-content: center;
  transition: all 0.3s ease;
}

.tm-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
  margin: 15px 0;
  opacity: 0.3;
}

.tm-card h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 1rem;
}

.tm-card h4 i {
  font-size: 0.9rem;
}

/* Risk Table Enhancements */
.table-container {
  overflow-x: visible;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.risk-table tbody tr {
  transition: all 0.3s ease;
}

.likelihood-badge,
.impact-badge {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-block;
}

.likelihood-badge.high,
.impact-badge.high {
  background: rgba(239, 68, 68, 0.2);
  color: var(--accent-red);
}

.likelihood-badge.medium,
.impact-badge.medium {
  background: rgba(251, 191, 36, 0.2);
  color: var(--warning-color);
}

.likelihood-badge.low,
.impact-badge.low {
  background: rgba(59, 130, 246, 0.2);
  color: var(--accent-blue);
}

/* Attack Surface Boxes */
.surface-box {
  position: relative;
  padding-top: 60px;
}

.surface-icon {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  color: var(--accent-red);
}

/* Recommendations Enhancements */
.rec-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.rec-header i {
  font-size: 1.5rem;
}

.rec-timeline {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: var(--muted-text);
  font-style: italic;
}

/* About Page Enhancements */
.project-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.info-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 25px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.3s ease;
}

.info-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-red);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.info-icon {
  font-size: 2rem;
  color: var(--accent-red);
  min-width: 50px;
  text-align: center;
}

.info-content h3 {
  font-size: 1rem;
  margin: 0 0 5px 0;
  color: var(--text-colour);
}

.info-content p {
  font-size: 0.9rem;
  color: var(--muted-text);
  margin: 0;
}

/* Profile Card Enhancements */
.profile-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.1), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.profile-card:hover .profile-glow {
  opacity: 1;
}

.hierarchy-connector {
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent-red), transparent);
  margin: 0 auto;
  opacity: 0.5;
}

.profile-details {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-details p {
  font-size: 0.85rem;
  color: var(--muted-text);
  margin: 0;
}

/* Objectives Section */
.objectives-section {
  margin: 60px 0;
}

.objectives-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  background: linear-gradient(135deg, var(--accent-red), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.objectives-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

@media (max-width: 1200px) {
  .objectives-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .objectives-grid {
    grid-template-columns: 1fr;
  }
}

.objective-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.objective-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent-red), var(--accent-purple));
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.objective-card:hover::before {
  transform: scaleY(1);
}

.objective-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-red);
  transform: translateX(10px);
}

.objective-number {
  font-size: 3rem;
  font-weight: 900;
  font-family: 'Outfit', sans-serif;
  background: linear-gradient(135deg, var(--accent-red), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 15px;
  opacity: 0.3;
}

.objective-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--text-colour);
}

.objective-card p {
  color: var(--muted-text);
  line-height: 1.6;
  margin: 0;
}

/* Acknowledgments */
.acknowledgments {
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  margin: 60px 0;
}

.ack-icon {
  font-size: 3rem;
  color: var(--accent-red);
  margin-bottom: 20px;
  animation: heartbeat 2s infinite;
}

@keyframes heartbeat {
  0%, 100% {
    transform: scale(1);
  }
  10%, 30% {
    transform: scale(1.1);
  }
  20%, 40% {
    transform: scale(1);
  }
}

.acknowledgments h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--text-colour);
}

.acknowledgments p {
  color: var(--muted-text);
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .quick-stats {
    margin: -40px auto 40px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr); /* Change to 2 columns for tablet */
    gap: 15px;
  }
  
  .controls-container {
    flex-direction: column;
  }
  
  .search-box {
    width: 100%;
  }
  
  .filter-buttons {
    width: 100%;
    justify-content: center;
  }
  
  .scroll-indicator {
    display: none;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr; /* Revert to single column on mobile */
  }
}


/* Enhanced Labs Styles */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.loading {
  color: var(--accent-blue) !important;
  animation: pulse 1.5s infinite;
}

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

.code-highlight {
  background: rgba(239, 68, 68, 0.1);
  border-left: 3px solid var(--accent-red);
  padding: 10px 15px;
  display: block;
  margin: 10px 0;
  border-radius: 4px;
  overflow-x: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
}

.impact-critical {
  background: rgba(239, 68, 68, 0.2);
  color: var(--accent-red);
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.85rem;
}

.impact-high {
  background: rgba(251, 191, 36, 0.2);
  color: var(--warning-color);
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.85rem;
}

.impact-medium {
  background: rgba(59, 130, 246, 0.2);
  color: var(--accent-blue);
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.85rem;
}

.xss-demo {
  background: linear-gradient(90deg, var(--accent-red), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  animation: rainbow 3s infinite;
}

@keyframes rainbow {
  0%, 100% {
    filter: hue-rotate(0deg);
  }
  50% {
    filter: hue-rotate(180deg);
  }
}

/* Session Analysis Styles */
.session-analysis {
  padding: 20px;
}

.strength-meter {
  margin-bottom: 25px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.strength-label {
  font-size: 1.1rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.strength-bar {
  width: 100%;
  height: 30px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  overflow: hidden;
  margin: 10px 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.strength-fill {
  height: 100%;
  transition: width 1s ease-out, background 0.5s ease;
  border-radius: 15px;
  position: relative;
  overflow: hidden;
}

.strength-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.strength-weak {
  background: linear-gradient(90deg, var(--accent-red), #dc2626);
}

.strength-moderate {
  background: linear-gradient(90deg, var(--warning-color), #f59e0b);
}

.strength-strong {
  background: linear-gradient(90deg, var(--accent-green), #059669);
}

.strength-percentage {
  text-align: right;
  font-size: 0.9rem;
  color: var(--muted-text);
  margin-top: 5px;
}

.analysis-section {
  margin: 20px 0;
  padding: 15px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  border-left: 3px solid var(--accent-blue);
}

.analysis-section h4 {
  margin: 0 0 10px 0;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.analysis-list,
.vuln-list,
.rec-list {
  list-style: none;
  padding: 0;
  margin: 10px 0;
}

.analysis-list li,
.vuln-list li,
.rec-list li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.analysis-list li:last-child,
.vuln-list li:last-child,
.rec-list li:last-child {
  border-bottom: none;
}

.vulnerabilities {
  border-left-color: var(--accent-red);
  background: rgba(239, 68, 68, 0.05);
}

.recommendations {
  border-left-color: var(--accent-green);
  background: rgba(16, 185, 129, 0.05);
}

.secure-token {
  display: block;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 12px;
  border-radius: 6px;
  color: var(--accent-green);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  margin-top: 10px;
}

/* Toast Notification */
.toast-notification {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, var(--accent-green), #059669);
  color: white;
  padding: 15px 25px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 10000;
}

.toast-notification.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-notification i {
  font-size: 1.2rem;
}

/* Enhanced button states */
.btn-execute,
.btn-reset,
.btn-copy,
.btn-copy-small {
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.btn-execute::before,
.btn-reset::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-execute:active::before,
.btn-reset:active::before {
  width: 300px;
  height: 300px;
}

/* Improved output animations */
.output-content {
  animation: fadeInUp 0.5s ease-out;
}

.output-success,
.output-warning,
.output-danger,
.output-info,
.output-neutral {
  padding: 20px;
  border-radius: 8px;
  line-height: 1.8;
}

.output-success {
  background: rgba(16, 185, 129, 0.1);
  border-left: 4px solid var(--accent-green);
}

.output-warning {
  background: rgba(251, 191, 36, 0.1);
  border-left: 4px solid var(--warning-color);
}

.output-danger {
  background: rgba(239, 68, 68, 0.1);
  border-left: 4px solid var(--accent-red);
}

.output-info {
  background: rgba(59, 130, 246, 0.1);
  border-left: 4px solid var(--accent-blue);
}

.output-neutral {
  background: rgba(255, 255, 255, 0.03);
  border-left: 4px solid rgba(255, 255, 255, 0.2);
}

/* Enhanced lab panel transitions */
.lab-panel {
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.lab-panel:not(.active) {
  opacity: 0;
  transform: translateY(20px);
}

/* Responsive improvements for labs */
@media (max-width: 768px) {
  .toast-notification {
    bottom: 20px;
    right: 20px;
    left: 20px;
    justify-content: center;
  }
  
  .strength-meter {
    padding: 15px;
  }
  
  .code-highlight {
    font-size: 0.8rem;
  }
}


/* ========================================


/* ========================================
   ULTIMATE LABS STYLES - PREMIUM EDITION
   ======================================== */

/* Animated Background */
.labs-bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: radial-gradient(ellipse at top, rgba(239, 68, 68, 0.15), transparent 50%),
              radial-gradient(ellipse at bottom, rgba(168, 85, 247, 0.15), transparent 50%);
  pointer-events: none;
}

.labs-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(239, 68, 68, 0.6);
  border-radius: 50%;
  animation: float 20s infinite;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.8);
}

.labs-particle:nth-child(1) {
  top: 20%;
  left: 20%;
  animation-delay: 0s;
  animation-duration: 15s;
}

.labs-particle:nth-child(2) {
  top: 60%;
  left: 80%;
  animation-delay: 2s;
  animation-duration: 18s;
  background: rgba(168, 85, 247, 0.6);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.8);
}

.labs-particle:nth-child(3) {
  top: 80%;
  left: 30%;
  animation-delay: 4s;
  animation-duration: 22s;
}

.labs-particle:nth-child(4) {
  top: 40%;
  left: 70%;
  animation-delay: 1s;
  animation-duration: 16s;
  background: rgba(59, 130, 246, 0.6);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.8);
}

.labs-particle:nth-child(5) {
  top: 10%;
  left: 50%;
  animation-delay: 3s;
  animation-duration: 20s;
  background: rgba(16, 185, 129, 0.6);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.8);
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.6;
  }
  25% {
    transform: translate(100px, -100px) scale(1.2);
    opacity: 0.8;
  }
  50% {
    transform: translate(-50px, -200px) scale(0.8);
    opacity: 0.4;
  }
  75% {
    transform: translate(-150px, -50px) scale(1.1);
    opacity: 0.7;
  }
}

/* Hero Section */
.labs-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 20px 60px;
  position: relative;
  overflow: hidden;
}

.labs-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(168, 85, 247, 0.1));
  backdrop-filter: blur(100px);
  z-index: -1;
}

.labs-hero-content {
  max-width: 1200px;
  text-align: center;
  z-index: 1;
}

.labs-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  backdrop-filter: blur(10px);
  margin-bottom: 30px;
  font-size: 0.9rem;
  color: var(--text-colour);
  animation: fadeInDown 0.8s ease;
}

.labs-badge i {
  color: var(--accent-red);
}

.labs-hero-title {
  font-size: 4rem;
  font-weight: 900;
  margin: 0 0 20px 0;
  line-height: 1.1;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.gradient-text {
  background: linear-gradient(135deg, #ef4444, #a855f7, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.labs-hero-subtitle {
  font-size: 1.3rem;
  color: var(--muted-text);
  margin: 0 0 50px 0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.labs-hero-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.labs-stat-item {
  text-align: center;
}

.labs-stat-number {
  font-size: 3.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent-red), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 10px;
}

.labs-stat-label {
  font-size: 0.9rem;
  color: var(--muted-text);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Main Container */
.labs-main-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px 80px;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: start;
}

/* Navigation */
.labs-nav-container {
  position: sticky;
  top: 100px;
}

.labs-nav-wrapper {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.labs-nav-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.labs-nav-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent-red), var(--accent-purple));
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.labs-nav-btn:hover::before,
.labs-nav-btn.active::before {
  transform: scaleY(1);
}

.labs-nav-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(239, 68, 68, 0.5);
  transform: translateX(5px);
}

.labs-nav-btn.active {
  background: rgba(239, 68, 68, 0.1);
  border-color: var(--accent-red);
  box-shadow: 0 10px 40px rgba(239, 68, 68, 0.2);
}

.labs-nav-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  position: relative;
  background: linear-gradient(135deg, var(--accent-red), var(--accent-purple));
  flex-shrink: 0;
}

.labs-nav-glow {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: inherit;
  filter: blur(10px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.labs-nav-btn:hover .labs-nav-glow,
.labs-nav-btn.active .labs-nav-glow {
  opacity: 0.6;
}

.labs-nav-content {
  flex: 1;
  text-align: left;
}

.labs-nav-content h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 5px 0;
  color: var(--text-colour);
}

.labs-nav-content p {
  font-size: 0.85rem;
  margin: 0;
  color: var(--muted-text);
}

.labs-nav-arrow {
  color: var(--muted-text);
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.labs-nav-btn:hover .labs-nav-arrow,
.labs-nav-btn.active .labs-nav-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Content Area */
.labs-content-area {
  min-height: 800px;
}

.labs-panel {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.labs-panel.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Panel Header */
.labs-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.labs-panel-title {
  display: flex;
  align-items: center;
  gap: 20px;
}

.labs-panel-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: white;
  position: relative;
}

.sql-gradient {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 10px 30px rgba(239, 68, 68, 0.3);
}

.xss-gradient {
  background: linear-gradient(135deg, #f97316, #ea580c);
  box-shadow: 0 10px 30px rgba(249, 115, 22, 0.3);
}

.session-gradient {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.labs-panel-title h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0 0 5px 0;
  color: var(--text-colour);
}

.labs-panel-title p {
  font-size: 1rem;
  margin: 0;
  color: var(--muted-text);
}

.labs-panel-actions {
  display: flex;
  gap: 10px;
}

.labs-action-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px 20px;
  color: var(--text-colour);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.labs-action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-red);
  transform: translateY(-2px);
}

/* Alerts */
.labs-alert {
  padding: 20px 25px;
  border-radius: 12px;
  margin-bottom: 30px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  backdrop-filter: blur(10px);
}

.labs-alert i {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.labs-alert-warning {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: var(--warning-color);
}

.labs-alert-info {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: var(--accent-blue);
}

.labs-alert-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent-green);
}

.labs-alert strong {
  display: block;
  margin-bottom: 5px;
  font-size: 1rem;
}

.labs-alert p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Workspace */
.labs-workspace {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-bottom: 40px;
}

.labs-workspace-section {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 25px;
  backdrop-filter: blur(10px);
}

.labs-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.labs-section-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-colour);
  display: flex;
  align-items: center;
  gap: 10px;
}

.labs-section-badge {
  padding: 4px 12px;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid var(--accent-red);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-red);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.labs-badge-pulse {
  animation: pulse 2s ease-in-out infinite;
}

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

/* Terminal */
.labs-terminal {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.labs-terminal-header {
  background: rgba(255, 255, 255, 0.05);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.labs-terminal-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.labs-terminal-dots span:nth-child(1) { background: #ef4444; }
.labs-terminal-dots span:nth-child(2) { background: #f59e0b; }
.labs-terminal-dots span:nth-child(3) { background: #10b981; }

.labs-terminal-title {
  font-size: 0.85rem;
  color: var(--muted-text);
  font-weight: 600;
}

.labs-terminal-actions button {
  background: none;
  border: none;
  color: var(--muted-text);
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.labs-terminal-actions button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-colour);
}

.labs-terminal-body {
  padding: 20px;
  min-height: 200px;
}

.labs-terminal-prompt {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.9rem;
}

.labs-prompt-symbol {
  color: var(--accent-red);
  font-weight: 700;
}

.labs-prompt-path {
  color: var(--accent-blue);
}

.labs-prompt-cursor {
  color: var(--accent-green);
  animation: blink 1s step-end infinite;
}

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

.labs-code-input {
  width: 100%;
  min-height: 120px;
  background: transparent;
  border: none;
  color: var(--text-colour);
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.95rem;
  resize: vertical;
  outline: none;
  line-height: 1.6;
}

.labs-terminal-footer {
  background: rgba(255, 255, 255, 0.05);
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.labs-terminal-info {
  display: flex;
  gap: 20px;
  font-size: 0.8rem;
  color: var(--muted-text);
}

.labs-terminal-buttons {
  display: flex;
  gap: 10px;
}

/* Buttons */
.labs-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.labs-btn-primary {
  background: linear-gradient(135deg, var(--accent-red), #dc2626);
  color: white;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.labs-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(239, 68, 68, 0.5);
}

.labs-btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-colour);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.labs-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* Output */
.labs-output {
  min-height: 300px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 25px;
}

.labs-output-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 250px;
  text-align: center;
}

.labs-empty-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.labs-empty-icon i {
  font-size: 2.5rem;
  color: var(--muted-text);
  opacity: 0.5;
}

.labs-output-empty h4 {
  font-size: 1.2rem;
  margin: 0 0 10px 0;
  color: var(--text-colour);
}

.labs-output-empty p {
  margin: 0;
  color: var(--muted-text);
  font-size: 0.95rem;
}

/* Loading Animation */
.labs-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 350px;
}

.labs-loading-spinner {
  position: relative;
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
}

.labs-spinner-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 3px solid transparent;
  border-top-color: var(--accent-red);
  border-radius: 50%;
  animation: spin 1.5s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.labs-spinner-ring:nth-child(2) {
  border-top-color: var(--accent-purple);
  animation-delay: -0.5s;
}

.labs-spinner-ring:nth-child(3) {
  border-top-color: var(--accent-blue);
  animation-delay: -1s;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.labs-loading h4 {
  font-size: 1.2rem;
  margin: 0 0 10px 0;
  color: var(--text-colour);
}

.labs-loading p {
  margin: 0 0 20px 0;
  color: var(--muted-text);
}

.labs-loading-progress {
  width: 200px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.labs-loading-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-red), var(--accent-purple));
  animation: progress 1.5s ease-in-out infinite;
}

@keyframes progress {
  0% { width: 0%; }
  50% { width: 70%; }
  100% { width: 100%; }
}

/* Result Container */
.labs-result-container {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
}

.labs-result-header {
  padding: 20px 25px;
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(0, 0, 0, 0.3);
}

.labs-result-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.labs-result-title {
  flex: 1;
}

.labs-result-title h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: var(--text-colour);
}

.labs-severity-tag {
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.labs-severity-tag.critical {
  background: rgba(239, 68, 68, 0.2);
  color: var(--accent-red);
  border: 1px solid var(--accent-red);
}

.labs-severity-tag.high {
  background: rgba(251, 191, 36, 0.2);
  color: var(--warning-color);
  border: 1px solid var(--warning-color);
}

.labs-severity-tag.medium {
  background: rgba(59, 130, 246, 0.2);
  color: var(--accent-blue);
  border: 1px solid var(--accent-blue);
}

.labs-severity-tag.info {
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-green);
  border: 1px solid var(--accent-green);
}

.labs-result-body {
  padding: 25px;
}

.labs-result-section {
  margin-bottom: 25px;
}

.labs-result-section:last-child {
  margin-bottom: 0;
}

.labs-result-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-red);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.labs-result-value,
.labs-result-text {
  color: var(--text-colour);
  line-height: 1.7;
  font-size: 0.95rem;
}

.labs-impact-text {
  background: rgba(239, 68, 68, 0.1);
  border-left: 3px solid var(--accent-red);
  padding: 15px;
  border-radius: 6px;
  margin-top: 10px;
}

.labs-code-display {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 15px;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.9rem;
  color: var(--accent-green);
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
  margin-top: 10px;
}

.labs-mitigation-list,
.labs-issues-list {
  margin: 10px 0 0 0;
  padding-left: 0;
  list-style: none;
}

.labs-mitigation-list li,
.labs-issues-list li {
  padding: 10px 15px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.6;
}

.labs-mitigation-list li i {
  color: var(--accent-green);
  margin-top: 3px;
  flex-shrink: 0;
}

.labs-issues-list li i {
  color: var(--accent-red);
  margin-top: 3px;
  flex-shrink: 0;
}

.labs-result-footer {
  padding: 20px 25px;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  gap: 10px;
}

/* Session Analysis */
.labs-strength-display {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 25px;
}

.labs-strength-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  font-size: 1.1rem;
  font-weight: 600;
}

.labs-strength-value {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.labs-strength-value.strength-strong { color: var(--accent-green); }
.labs-strength-value.strength-moderate { color: var(--warning-color); }
.labs-strength-value.strength-weak { color: var(--accent-red); }

.labs-strength-bar-container {
  width: 100%;
  height: 30px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.labs-strength-bar {
  height: 100%;
  border-radius: 15px;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.labs-strength-bar.strength-strong {
  background: linear-gradient(90deg, var(--accent-green), #059669);
}

.labs-strength-bar.strength-moderate {
  background: linear-gradient(90deg, var(--warning-color), #f59e0b);
}

.labs-strength-bar.strength-weak {
  background: linear-gradient(90deg, var(--accent-red), #dc2626);
}

.labs-strength-shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.labs-strength-score {
  text-align: right;
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--muted-text);
}

.labs-properties-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 10px;
}

.labs-property-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 15px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  font-size: 0.9rem;
}

.labs-property-item span:first-child {
  color: var(--muted-text);
  font-weight: 600;
}

.labs-property-item span:last-child {
  color: var(--text-colour);
}

.labs-secure-example {
  background: rgba(16, 185, 129, 0.1) !important;
  border: 1px solid rgba(16, 185, 129, 0.3) !important;
  color: var(--accent-green) !important;
}

.labs-example-note {
  margin: 10px 0 0 0;
  font-size: 0.85rem;
  color: var(--muted-text);
  font-style: italic;
}

/* Payload Library */
.labs-library {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 2px solid rgba(255, 255, 255, 0.1);
}

.labs-library-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.labs-library-header h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0;
  color: var(--text-colour);
  display: flex;
  align-items: center;
  gap: 12px;
}

.labs-library-subtitle {
  font-size: 0.95rem;
  color: var(--muted-text);
  margin: 8px 0 0 0;
}

.labs-library-filter {
  display: flex;
  gap: 10px;
}

.labs-filter-btn {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-colour);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.labs-filter-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-red);
}

.labs-filter-btn.active {
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: white;
}

/* Payload Grid */
.labs-payload-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.labs-payload-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.labs-payload-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.labs-payload-card:hover::before {
  opacity: 1;
}

.labs-payload-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(239, 68, 68, 0.5);
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.labs-payload-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}

.labs-severity-badge {
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.labs-severity-badge.critical {
  background: rgba(239, 68, 68, 0.2);
  color: var(--accent-red);
}

.labs-severity-badge.high {
  background: rgba(251, 191, 36, 0.2);
  color: var(--warning-color);
}

.labs-severity-badge.medium {
  background: rgba(59, 130, 246, 0.2);
  color: var(--accent-blue);
}

.labs-copy-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 6px 10px;
  color: var(--text-colour);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.85rem;
}

.labs-copy-btn:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: white;
  transform: scale(1.1);
}

.labs-payload-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 12px 0;
  color: var(--text-colour);
}

.labs-code-block {
  display: block;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px;
  margin: 12px 0;
  color: var(--accent-green);
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.85rem;
  overflow-x: auto;
  white-space: nowrap;
}

.labs-payload-card p {
  font-size: 0.9rem;
  color: var(--muted-text);
  line-height: 1.6;
  margin: 0 0 12px 0;
}

.labs-payload-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.labs-payload-meta span {
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--muted-text);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Credentials Grid */
.labs-credentials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.labs-credential-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.labs-credential-card:hover {
  border-color: rgba(239, 68, 68, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.labs-cred-header {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(168, 85, 247, 0.2));
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--text-colour);
}

.labs-cred-header i {
  font-size: 1.2rem;
  color: var(--accent-red);
}

.labs-cred-body {
  padding: 20px;
}

.labs-cred-field {
  margin-bottom: 15px;
}

.labs-cred-field:last-child {
  margin-bottom: 0;
}

.labs-cred-field label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted-text);
  margin-bottom: 8px;
  font-weight: 600;
}

.labs-cred-value {
  display: flex;
  align-items: center;
  gap: 10px;
}

.labs-cred-value code {
  flex: 1;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 10px 15px;
  color: var(--accent-green);
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.95rem;
}

.labs-cred-value button {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 8px 12px;
  color: var(--text-colour);
  cursor: pointer;
  transition: all 0.2s ease;
}

.labs-cred-value button:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: white;
}

.labs-cred-footer {
  padding: 15px 20px;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.labs-risk-badge {
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.labs-risk-badge.critical {
  background: rgba(239, 68, 68, 0.2);
  color: var(--accent-red);
  border: 1px solid var(--accent-red);
}

.labs-risk-badge.high {
  background: rgba(251, 191, 36, 0.2);
  color: var(--warning-color);
  border: 1px solid var(--warning-color);
}

.labs-risk-badge.medium {
  background: rgba(59, 130, 246, 0.2);
  color: var(--accent-blue);
  border: 1px solid var(--accent-blue);
}

/* Security Tips */
.labs-security-tips {
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 12px;
  padding: 30px;
  margin-top: 30px;
}

.labs-security-tips h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 20px 0;
  color: var(--accent-green);
  display: flex;
  align-items: center;
  gap: 10px;
}

.labs-tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.labs-tip-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.labs-tip-card:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-3px);
}

.labs-tip-card i {
  font-size: 2rem;
  color: var(--accent-green);
  margin-bottom: 15px;
  display: block;
}

.labs-tip-card h5 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 10px 0;
  color: var(--text-colour);
}

.labs-tip-card p {
  font-size: 0.85rem;
  color: var(--muted-text);
  line-height: 1.6;
  margin: 0;
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.labs-toast {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 15px 25px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateX(400px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 300px;
}

.labs-toast.show {
  opacity: 1;
  transform: translateX(0);
}

.labs-toast i {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.labs-toast-success {
  border-left: 4px solid var(--accent-green);
}

.labs-toast-success i {
  color: var(--accent-green);
}

.labs-toast-error {
  border-left: 4px solid var(--accent-red);
}

.labs-toast-error i {
  color: var(--accent-red);
}

.labs-toast-warning {
  border-left: 4px solid var(--warning-color);
}

.labs-toast-warning i {
  color: var(--warning-color);
}

.labs-toast-info {
  border-left: 4px solid var(--accent-blue);
}

.labs-toast-info i {
  color: var(--accent-blue);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .labs-main-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .labs-nav-container {
    position: relative;
    top: 0;
  }
  
  .labs-nav-wrapper {
    flex-direction: row;
    overflow-x: auto;
  }
  
  .labs-nav-btn {
    min-width: 250px;
  }
}

@media (max-width: 768px) {
  .labs-hero-title {
    font-size: 2.5rem;
  }
  
  .labs-hero-stats {
    flex-direction: column;
    gap: 30px;
  }
  
  .labs-workspace {
    grid-template-columns: 1fr;
  }
  
  .labs-payload-grid,
  .labs-credentials-grid,
  .labs-tips-grid {
    grid-template-columns: 1fr;
  }
  
  .labs-panel-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  
  .labs-library-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  #toast-container {
    left: 20px;
    right: 20px;
    bottom: 20px;
  }
  
  .labs-toast {
    min-width: auto;
  }
  
  .labs-properties-grid {
    grid-template-columns: 1fr;
  }
}

/* Animation Classes */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
 * ADVANCED FOOTER STYLES
 * ======================================== */
.main-footer {
  background-color: #050508;
  border-top: 2px solid var(--primary-colour);
  padding: 40px 20px 20px;
  color: var(--muted-text);
  font-size: 0.9rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section {
  flex: 1 1 250px;
  margin-bottom: 20px;
}

.footer-section h2 {
  font-size: 1.2rem;
  color: var(--text-colour);
  margin-bottom: 15px;
  border-bottom: none;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 8px;
}

.footer-section a {
  color: var(--muted-text);
  transition: color 0.2s;
}

.footer-section a:hover {
  color: var(--primary-colour);
  text-decoration: none;
}

.logo-footer {
  display: flex;
  align-items: center;
  font-size: 1.4rem;
  font-weight: 600;
  gap: 8px;
  color: var(--text-colour);
  margin-bottom: 15px;
}

.logo-footer img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

.social-links a {
  display: inline-block;
  margin-right: 15px;
  font-size: 1.5rem;
  color: var(--muted-text);
  transition: color 0.2s;
}

.social-links a:hover {
  color: var(--primary-colour);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-section {
    flex: 1 1 100%;
    margin-bottom: 30px;
  }

  .logo-footer {
    justify-content: center;
  }

  .footer-section ul {
    text-align: center;
  }
}
