/* ========================================
   BRAINERY - Technical School Design System
   
   Color Palette:
   - Primary: #0f172a (Deep Slate)
   - Secondary: #0891b2 (Teal/Cyan)
   - Accent: #65a30d (Lime Green)
   - Background: #f8fafc (Off-white)
======================================== */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Urbanist:wght@400;500;600;700;800&display=swap');

/* CSS Variables */
:root {
  /* Core Colors */
  --color-primary: #0f172a;
  --color-primary-light: #1e293b;
  --color-secondary: #0891b2;
  --color-secondary-light: #22d3ee;
  --color-secondary-dark: #0e7490;
  --color-accent: #65a30d;
  --color-accent-light: #84cc16;
  --color-accent-dark: #4d7c0f;
  
  /* Neutrals */
  --color-background: #f8fafc;
  --color-surface: #ffffff;
  --color-text: #0f172a;
  --color-text-light: #64748b;
  --color-text-muted: #94a3b8;
  --color-border: #e2e8f0;
  
  /* Destructive */
  --color-destructive: #ef4444;
  
  /* Typography */
  --font-heading: 'Urbanist', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Spacing & Sizing */
  --border-radius: 0.75rem;
  --border-radius-lg: 1rem;
  --border-radius-xl: 1.5rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-glow: 0 0 40px -10px rgba(8, 145, 178, 0.5);
  --shadow-accent: 0 4px 14px 0 rgba(101, 163, 13, 0.3);
  
  /* Gradients */
  --gradient-tech: linear-gradient(135deg, #0891b2 0%, #22d3ee 100%);
  --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  --gradient-hero: linear-gradient(135deg, #0f172a 0%, #0e7490 100%);
  --gradient-accent: linear-gradient(135deg, #65a30d 0%, #84cc16 100%);
  
  /* Transitions */
  --transition: all 0.3s ease;
  --transition-fast: all 0.15s ease;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-background);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

/* Focus States for Accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
  border-radius: var(--border-radius);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* ========================================
   UTILITIES
======================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-center { text-align: center; }
.text-white { color: #ffffff; }
.text-muted { color: var(--color-text-light); }
.text-secondary { color: var(--color-secondary); }
.text-accent { color: var(--color-accent); }

.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

.grid { display: grid; }

.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }

/* ========================================
   NAVBAR
======================================== */
.brainery-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  padding: 0.75rem 0;
}

.brainery-navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brainery-navbar .navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brainery-navbar .navbar-logo {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.brainery-navbar .navbar-logo-ithtl {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
  transition: var(--transition);
}

.brainery-navbar .navbar-brand:hover .navbar-logo {
  transform: scale(1.05);
}

.brainery-navbar .navbar-brand-text {
  display: none;
}

.brainery-navbar .navbar-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brainery-navbar .nav-link {
  padding: 0.5rem 1rem;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text-light);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.brainery-navbar .nav-link:hover,
.brainery-navbar .nav-link.active {
  color: var(--color-secondary);
  background: rgba(8, 145, 178, 0.1);
}

.brainery-navbar .nav-link:focus-visible {
  color: var(--color-secondary);
  box-shadow: inset 0 0 0 2px var(--color-secondary);
}

.brainery-navbar .nav-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(8, 145, 178, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  transition: var(--transition);
}

.brainery-navbar .nav-icon:hover {
  background: var(--color-secondary);
  color: white;
}

.brainery-navbar .navbar-toggler {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}

.brainery-navbar .navbar-toggler span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
  transition: var(--transition);
}

@media (max-width: 768px) {
  .brainery-navbar .navbar-toggler {
    display: block;
  }
  
  .brainery-navbar .navbar-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem;
    flex-direction: column;
    border-bottom: 1px solid var(--color-border);
  }
  
  .brainery-navbar .navbar-nav.active {
    display: flex;
  }
  
  .brainery-navbar .nav-link {
    width: 100%;
    padding: 0.75rem 1rem;
  }
}

/* ========================================
   HERO SECTION
======================================== */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.6), transparent);
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: 3rem 0;
}

.hero-box {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-xl);
  padding: 2.5rem 3rem;
  max-width: 520px;
}

.hero-title {
  font-size: 2.75rem;
  color: white;
  margin-bottom: 0.5rem;
}

.hero-title-accent {
  background: linear-gradient(135deg, #22d3ee 0%, #0891b2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.35rem;
  color: var(--color-secondary-light);
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero-description {
  color: #cbd5e1;
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-controls {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  gap: 0.75rem;
}

.hero-control-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.hero-control-btn:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: scale(1.1);
}

.hero-indicators {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  z-index: 20;
  display: flex;
  gap: 0.5rem;
}

.hero-indicator {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.hero-indicator.active {
  width: 32px;
  background: var(--color-secondary-light);
}

@media (max-width: 768px) {
  .hero {
    min-height: 500px;
  }
  
  .hero-box {
    padding: 2rem;
    margin: 0 1rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
}

/* ========================================
   PAGE HERO (Materials, Sandbox, etc.)
======================================== */
.page-hero {
  background: #0f172a;
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero-dark {
  background: var(--gradient-dark);
}

.page-hero h1 {
  font-size: 2.75rem;
  color: white;
  margin-bottom: 0.75rem;
  position: relative;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.15rem;
  position: relative;
}

/* ========================================
   BUTTONS
======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--color-accent);
  color: white;
  box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
}

.btn-primary:focus-visible {
  background: var(--color-accent-dark);
  box-shadow: 0 0 0 4px rgba(101, 163, 13, 0.2);
}

.btn-secondary {
  background: var(--color-secondary);
  color: white;
}

.btn-secondary:hover {
  background: var(--color-secondary-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline-dark {
  border-color: var(--color-border);
  color: var(--color-text);
  display: inline-block;
}

.btn-outline-dark:hover {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* ========================================
   FEATURE SECTION
======================================== */
.feature-section {
  padding: 5rem 0;
  background: var(--color-background);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.feature-visual {
  position: relative;
}

.feature-box {
  aspect-ratio: 1;
  max-width: 400px;
  margin: 0 auto;
  background: var(--gradient-tech);
  border-radius: var(--border-radius-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  box-shadow: var(--shadow-glow);
}

.feature-box-bg {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: -1rem;
  bottom: -1rem;
  background: var(--color-border);
  border-radius: var(--border-radius-xl);
  z-index: -1;
}

.feature-icon {
  font-size: 5rem;
  color: white;
  margin-bottom: 1rem;
}

.feature-label {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  font-size: 1.1rem;
}

.feature-content h2 {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.feature-content h4 {
  font-size: 1.25rem;
  color: var(--color-text-light);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.feature-content p {
  color: var(--color-text-light);
  font-size: 1.1rem;
  line-height: 1.8;
}

@media (max-width: 991px) {
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .feature-content {
    text-align: center;
  }
}

/* ========================================
   CARDS SECTION
======================================== */
.cards-section {
  padding: 5rem 0;
  background: var(--color-surface);
}

.section-title {
  font-size: 2.25rem;
  text-align: center;
  color: var(--color-primary);
  margin-bottom: 3rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: 1.75rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.05), transparent);
  border-radius: 0 var(--border-radius-lg) 0 100%;
}

.card:hover {
  border-color: rgba(8, 145, 178, 0.3);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.card-icon {
  width: 56px;
  height: 56px;
  background: rgba(8, 145, 178, 0.1);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--color-secondary);
  margin-bottom: 1.25rem;
  transition: var(--transition);
  margin-left: 0;
}

.card:hover .card-icon {
  background: rgba(8, 145, 178, 0.15);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.card-text {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

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

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

/* ========================================
   TEAM SECTION
======================================== */
.team-section {
  padding: 5rem 0;
  background: var(--gradient-tech);
}

.team-section .section-title {
  color: white;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.team-member {
  text-align: center;
}

.team-avatar {
  width: 180px;
  height: 210px;
  margin: 0 auto 1.25rem;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.team-member:hover .team-avatar {
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-dark);
  color: white;
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
}

.team-member h4 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.team-member p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

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

@media (max-width: 575px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  .team-avatar {
    width: 160px;
    height: 190px;
  }
}

/* ========================================
   FOOTER
======================================== */
.footer {
  background: var(--gradient-dark);
  color: white;
  padding: 4rem 0 2rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-logo {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo-ithtl {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
}

.footer-brand-text {
  display: none;
}

.footer-description {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer h5 {
  color: var(--color-secondary-light);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: #64748b;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ========================================
   SEARCH BOX
======================================== */
.search-box {
  max-width: 500px;
  margin: 2rem auto 0;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  font-size: 1rem;
  font-family: var(--font-body);
  border: none;
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.search-box input:focus {
  outline: none;
  box-shadow: var(--shadow-lg), 0 0 0 3px rgba(8, 145, 178, 0.2);
}

.search-box input::placeholder {
  color: var(--color-text-muted);
}

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

/* ========================================
   CATEGORY FILTER
======================================== */
.category-filter {
  padding: 2rem 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.btn-category {
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  background: transparent;
  border: 2px solid var(--color-border);
  border-radius: var(--border-radius);
  color: var(--color-text);
  cursor: pointer;
  transition: var(--transition);
}

.btn-category:hover {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
}

.btn-category:focus-visible {
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.2);
}

.btn-category.active {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  color: white;
}

/* ========================================
   MATERIALS GRID
======================================== */
.materials-section {
  padding: 4rem 0;
  background: var(--color-background);
}

.materials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
  grid-auto-rows: 1fr;
}

.material-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: 1.75rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 350px;
}

.material-card:hover {
  border-color: rgba(8, 145, 178, 0.3);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.category-badge {
  display: inline-block !important;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
  margin-bottom: 1rem;
  width: auto;
}

.badge-medientechnik {
  background: var(--color-secondary);
  color: white;
}

.badge-softwareentwicklung {
  background: var(--color-accent);
  color: white;
}

.badge-it-sicherheit {
  background: var(--color-destructive);
  color: white;
}

.badge-netzwerktechnik {
  background: var(--color-primary);
  color: white;
}

.badge-default {
  background: var(--color-secondary);
  color: white;
}

.material-card h3 {
  font-size: 1.15rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  transition: var(--transition);
}

.material-card:hover h3 {
  color: var(--color-secondary);
}

.material-card p {
  color: var(--color-text-light);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.btn-start {
  display: block;
  width: 100%;
  padding: 0.75rem;
  background: var(--color-accent);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  margin-top: auto;
}

.btn-start:hover {
  background: var(--color-accent-dark);
}

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

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

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

/* ========================================
   SANDBOX
======================================== */
.sandbox-section {
  padding: 3rem 0;
  background: var(--color-background);
}

.sandbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.sandbox-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.sandbox-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: #f1f5f9;
  border-bottom: 1px solid var(--color-border);
}

.toolbar-title {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-primary);
}

.toolbar-buttons {
  display: flex;
  gap: 0.5rem;
}

.code-editor {
  width: 100%;
  height: 320px;
  padding: 1rem;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.875rem;
  line-height: 1.6;
  background: #0f172a;
  color: #e2e8f0;
  border: none;
  resize: none;
  outline: none;
}

.output-area {
  height: 320px;
  padding: 1rem;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.875rem;
  line-height: 1.6;
  background: #f8fafc;
  color: var(--color-text);
  overflow-y: auto;
}

.output-line {
  padding: 0.25rem 0;
}

.output-line::before {
  content: '›';
  color: var(--color-secondary);
  margin-right: 0.5rem;
}

.examples-section {
  margin-top: 3rem;
  background: var(--gradient-tech);
  border-radius: var(--border-radius-xl);
  padding: 2rem;
}

.examples-section h4 {
  color: white;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.examples-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

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

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

/* ========================================
   LOGIN / FORMS
======================================== */
.login-section {
  min-height: calc(100vh - 180px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 0;
  background: var(--color-background);
}

.login-wrapper {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.login-brand {
  display: none;
}

.login-logo {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-light) 100%);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--color-surface);
}

.login-brand h1 {
  font-size: 1.75rem;
  margin: 0;
  color: var(--color-primary);
  font-weight: 700;
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  background: rgba(8, 145, 178, 0.1);
  border-radius: var(--border-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--color-secondary);
}

.login-header h2 {
  font-size: 1.5rem;
  color: var(--color-primary);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-input {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 2px solid var(--color-border);
  border-radius: var(--border-radius);
  background: var(--color-surface);
  color: var(--color-text);
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
}

.form-input::placeholder {
  color: var(--color-text-muted);
}

.btn-login {
  width: 100%;
  padding: 0.9rem;
  margin-top: 0.5rem;
}

.login-footer {
  text-align: center;
  margin-top: 1.5rem;
}

.login-footer a {
  color: var(--color-secondary);
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.login-footer a:hover {
  text-decoration: underline;
}

/* ========================================
   ADMIN DASHBOARD
======================================== */
.admin-header {
  background: var(--gradient-dark);
  padding: 2.5rem 0;
}

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

.admin-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: white;
  font-size: 1.75rem;
}

.admin-subtitle {
  color: #94a3b8;
  margin-top: 0.5rem;
}

.admin-subtitle span {
  color: var(--color-secondary-light);
}

.admin-section {
  padding: 2.5rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition);
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
}

.stat-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.stat-icon.secondary { color: var(--color-secondary); }
.stat-icon.accent { color: var(--color-accent); }
.stat-icon.success { color: #22c55e; }

.stat-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
}

.stat-label {
  color: var(--color-text-light);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.management-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.management-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: 1.75rem;
}

.management-card-content {
  display: flex;
  gap: 1.25rem;
}

.management-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.management-icon.secondary {
  background: rgba(8, 145, 178, 0.1);
  color: var(--color-secondary);
}

.management-icon.accent {
  background: rgba(101, 163, 13, 0.1);
  color: var(--color-accent);
}

.management-card h3 {
  font-size: 1.15rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.management-card p {
  color: var(--color-text-light);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.activity-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: 1.75rem;
}

.activity-card h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.15rem;
  color: var(--color-primary);
  margin-bottom: 1.25rem;
}

.activity-list {
  list-style: none;
}

.activity-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-text {
  color: var(--color-text-light);
  font-size: 0.9rem;
}

.activity-time {
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

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

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

/* ========================================
   404 PAGE
======================================== */
.not-found {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-dark);
  text-align: center;
  padding: 2rem;
}

.not-found-code {
  font-family: var(--font-heading);
  font-size: 8rem;
  font-weight: 800;
  background: linear-gradient(135deg, #22d3ee 0%, #84cc16 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 1.5rem;
}

.not-found h1 {
  color: white;
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.not-found p {
  color: #94a3b8;
  max-width: 400px;
  margin: 0 auto 2rem;
}

.not-found-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ========================================
   ICONS (using Bootstrap Icons)
======================================== */
.bi {
  display: inline-block;
  vertical-align: -0.125em;
}


/* FIX: Bootstrap collision in workshop navbars */
.brainery-navbar .navbar-nav {
  flex-direction: row;
}


/* ========================================
    MODAL POPUP WINDOW
========================================== */

.modal {
  display: none;
  position: fixed;
  z-index: 1;
  margin: auto;
  padding-top: 20rem;
  width:100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  left: 0;
  top: 0;
  overflow: auto;
  background-color: rgb(0,0,0, 0.5);
}

.modal table {
  width: 100%;
  text-align: left;
}

.modal td, .modal th {
  padding-right: 2rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #aaa;
}

.modal-content {
  background-color: #efefef;
  margin: auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
}

.close {
  color: #aaa;
  float: right;
  font-size: 2rem;
  font-weight: bold;
}

.close:hover, .close:focus {
  color: #888;
  text-decoration: none;
  cursor: pointer;
}
