/* ============================================
   Complete Ideas — completeideas.com
   Robert Winter — IT Consulting & AI Training
   ============================================ */

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

:root {
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --slate-950: #020617;

  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;

  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;

  --green-50: #f0fdf4;
  --green-100: #dcfce7;
  --green-500: #22c55e;
  --green-600: #16a34a;

  --red-500: #ef4444;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--slate-800);
  background: var(--slate-50);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--blue-600); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--blue-700); }
img { max-width: 100%; height: auto; }

h1 { font-size: 2.5rem; font-weight: 700; line-height: 1.15; letter-spacing: -0.03em; }
h2 { font-size: 1.75rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.025em; }
h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.4; }
p  { margin-bottom: 1rem; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}


/* ============================================
   MAIN SITE — Navigation
   ============================================ */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.site-nav .nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-nav .brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: white;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.site-nav .brand-mark {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.75rem;
  color: white;
  letter-spacing: 0.02em;
}

.site-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 0.125rem;
  list-style: none;
}

.site-nav .nav-links a {
  color: var(--slate-300);
  padding: 0.5rem 0.875rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.15s;
}
.site-nav .nav-links a:hover { color: white; background: rgba(255,255,255,0.06); }

.site-nav .nav-cta {
  background: var(--blue-600);
  color: white !important;
  padding: 0.5rem 1.125rem !important;
  border-radius: 6px;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  transition: background 0.15s;
}
.site-nav .nav-cta:hover { background: var(--blue-700); }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--slate-300);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
}


/* ============================================
   MAIN SITE — Hero
   ============================================ */

.hero {
  padding: 10rem 1.5rem 6rem;
  background: linear-gradient(165deg, var(--slate-950) 0%, var(--slate-900) 40%, #162033 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59,130,246,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 680px;
  position: relative;
  z-index: 1;
}

.hero-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue-500);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: 3.25rem;
  margin-bottom: 1.25rem;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--blue-500), #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .lead {
  font-size: 1.2rem;
  color: var(--slate-300);
  line-height: 1.65;
  margin-bottom: 2.5rem;
  max-width: 560px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.15s;
  border: none;
}

.btn-primary {
  background: var(--blue-600);
  color: white;
}
.btn-primary:hover { background: var(--blue-700); color: white; }

.btn-outline {
  background: transparent;
  color: var(--slate-300);
  border: 1px solid var(--slate-600);
}
.btn-outline:hover { border-color: var(--slate-400); color: white; }


/* ============================================
   MAIN SITE — Section defaults
   ============================================ */

.section {
  padding: 5rem 1.5rem;
}

.section-dark {
  background: var(--slate-900);
  color: white;
}

.section-alt {
  background: white;
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

.section-header .label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue-600);
  margin-bottom: 0.75rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-dark .section-header .label { color: var(--blue-400); }
.section-dark .section-header h2 { color: white; }

.section-header p {
  color: var(--slate-500);
  font-size: 1.05rem;
  margin-bottom: 0;
}
.section-dark .section-header p { color: var(--slate-400); }


/* ============================================
   MAIN SITE — Services
   ============================================ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 2rem;
  transition: all 0.25s;
  position: relative;
}
.service-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-200, #bfdbfe);
  transform: translateY(-2px);
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
  margin-bottom: 1.25rem;
}

.service-icon.blue   { background: var(--blue-50);  color: var(--blue-600); }
.service-icon.amber  { background: var(--amber-50); color: var(--amber-600); }
.service-icon.green  { background: var(--green-50); color: var(--green-600); }
.service-icon.purple { background: #f5f3ff;         color: #7c3aed; }

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.625rem;
}

.service-card p {
  color: var(--slate-500);
  font-size: 0.925rem;
  line-height: 1.6;
  margin-bottom: 0;
}

.service-card .service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 1rem;
}

.service-tag {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: var(--slate-100);
  color: var(--slate-500);
}


/* ============================================
   MAIN SITE — Projects / Work
   ============================================ */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--slate-800);
  border: 1px solid var(--slate-700);
  border-radius: var(--radius-xl);
  padding: 2rem;
  transition: all 0.25s;
}
.project-card:hover {
  border-color: var(--slate-600);
  transform: translateY(-2px);
}

.project-card .project-type {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue-400);
  margin-bottom: 0.75rem;
}

.project-card h3 {
  color: white;
  margin-bottom: 0.625rem;
}

.project-card p {
  color: var(--slate-400);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.tech-tag {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: rgba(255,255,255,0.06);
  color: var(--slate-300);
  border: 1px solid rgba(255,255,255,0.08);
}


/* ============================================
   MAIN SITE — About
   ============================================ */

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-text h2 {
  margin-bottom: 1.25rem;
}

.about-text p {
  color: var(--slate-600);
  font-size: 0.95rem;
}

.about-text .highlight {
  color: var(--slate-800);
  font-weight: 500;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

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

.stat-card .number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--slate-900);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.stat-card .label {
  font-size: 0.8rem;
  color: var(--slate-500);
  font-weight: 500;
  margin-top: 0.25rem;
}


/* ============================================
   MAIN SITE — Contact
   ============================================ */

.contact-layout {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.contact-layout h2 {
  margin-bottom: 1rem;
}

.contact-layout > p {
  color: var(--slate-500);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

.contact-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.contact-card {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
  min-width: 260px;
}
.contact-card:hover {
  border-color: var(--blue-500);
  box-shadow: var(--shadow-md);
  color: inherit;
}

.contact-card .contact-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--blue-50);
  color: var(--blue-600);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.contact-card .contact-detail {
  text-align: left;
}

.contact-card .contact-detail .label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate-400);
}

.contact-card .contact-detail .value {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--slate-800);
}


/* ============================================
   MAIN SITE — Footer
   ============================================ */

.site-footer {
  background: var(--slate-950);
  color: var(--slate-500);
  padding: 2.5rem 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.site-footer a {
  color: var(--slate-400);
}
.site-footer a:hover { color: white; }


/* ============================================
   LEARNING LAB — Navigation (reuses site nav pattern)
   ============================================ */

.lab-nav {
  background: var(--slate-900);
  border-bottom: 1px solid var(--slate-700);
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.lab-nav .nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.lab-nav .brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: white;
  font-weight: 600;
  font-size: 1.05rem;
}

.lab-nav .brand-mark {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.75rem;
  color: white;
}

.lab-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.lab-nav .nav-links a {
  color: var(--slate-300);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.15s;
}
.lab-nav .nav-links a:hover,
.lab-nav .nav-links a.active {
  color: white;
  background: var(--slate-800);
}

.lab-nav .nav-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lab-nav .nav-user-email {
  color: var(--slate-400);
  font-size: 0.8rem;
}

.btn-logout {
  background: transparent;
  border: 1px solid var(--slate-600);
  color: var(--slate-300);
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.15s;
}
.btn-logout:hover {
  background: var(--slate-800);
  border-color: var(--slate-500);
  color: white;
}


/* ============================================
   LEARNING LAB — Login
   ============================================ */

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(165deg, var(--slate-950) 0%, var(--slate-900) 40%, #162033 100%);
  padding: 2rem;
}

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

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

.login-card .login-brand .brand-mark {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: white;
  margin-bottom: 0.75rem;
}

.login-card .login-brand h2 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.login-card .login-brand p {
  color: var(--slate-500);
  font-size: 0.875rem;
  margin-bottom: 0;
}

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

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-700);
  margin-bottom: 0.375rem;
}

.form-group input {
  width: 100%;
  padding: 0.675rem 0.875rem;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: var(--font-sans);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgb(59 130 246 / 0.15);
}

.btn-submit {
  display: block;
  width: 100%;
  padding: 0.75rem;
  background: var(--blue-600);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: background 0.15s;
}
.btn-submit:hover { background: var(--blue-700); }
.btn-submit:disabled { background: var(--slate-300); cursor: not-allowed; }

.login-message {
  text-align: center;
  padding: 1rem;
  border-radius: var(--radius);
  margin-top: 1rem;
  font-size: 0.9rem;
  display: none;
}
.login-message.success { background: var(--green-100); color: var(--green-600); display: block; }
.login-message.error   { background: #fee2e2;          color: var(--red-500);   display: block; }


/* ============================================
   LEARNING LAB — Dashboard
   ============================================ */

.page-header {
  padding: 2.5rem 0 1.5rem;
}

.page-header h1 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--slate-500);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
  padding-bottom: 3rem;
}

.module-card {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  gap: 1.25rem;
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.module-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--blue-500);
  color: inherit;
  transform: translateY(-1px);
}

.module-number {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--slate-100);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--slate-600);
}

.module-card:hover .module-number {
  background: var(--blue-100);
  color: var(--blue-600);
}

.module-info h3 { margin-bottom: 0.375rem; font-size: 1rem; }
.module-info p  { color: var(--slate-500); font-size: 0.85rem; margin-bottom: 0; line-height: 1.5; }

.module-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-top: 0.5rem;
}

.module-tag.core      { background: var(--blue-100);  color: var(--blue-600); }
.module-tag.practice  { background: var(--green-100); color: var(--green-600); }
.module-tag.reference { background: var(--amber-100); color: var(--amber-500); }


/* ============================================
   LEARNING LAB — Module content pages
   ============================================ */

.module-page { padding-bottom: 4rem; }

.module-page .breadcrumb {
  padding: 1rem 0;
  font-size: 0.85rem;
  color: var(--slate-500);
}
.module-page .breadcrumb a { color: var(--slate-500); }
.module-page .breadcrumb a:hover { color: var(--blue-600); }

.module-content {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  margin-bottom: 1.5rem;
}

.module-content h1 { font-size: 1.75rem; margin-bottom: 0.5rem; }

.module-content h2 {
  font-size: 1.25rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--slate-100);
}
.module-content h2:first-of-type { border-top: none; padding-top: 0; }

.module-content h3 { margin-top: 1.5rem; margin-bottom: 0.75rem; }
.module-content p   { color: var(--slate-700); }
.module-content ul,
.module-content ol  { margin-bottom: 1rem; padding-left: 1.5rem; }
.module-content li   { margin-bottom: 0.375rem; color: var(--slate-700); }

/* Prompt blocks */
.prompt-block {
  background: var(--slate-900);
  color: var(--slate-100);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1rem 0 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.7;
  position: relative;
  overflow-x: auto;
  white-space: pre-wrap;
}

.prompt-block .copy-btn {
  position: absolute;
  top: 0.625rem;
  right: 0.625rem;
  background: var(--slate-700);
  border: none;
  color: var(--slate-300);
  padding: 0.25rem 0.625rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.15s;
}
.prompt-block .copy-btn:hover { background: var(--slate-600); color: white; }
.prompt-block .copy-btn.copied { background: var(--green-600); color: white; }

/* Callouts */
.callout {
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1rem 0 1.5rem;
  font-size: 0.925rem;
}
.callout.tip       { background: var(--blue-50);  border-left: 3px solid var(--blue-500); }
.callout.warning   { background: var(--amber-100); border-left: 3px solid var(--amber-500); }
.callout.important { background: #fee2e2;          border-left: 3px solid var(--red-500); }
.callout strong    { display: block; margin-bottom: 0.25rem; }

/* Comparison blocks */
.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0 1.5rem;
}

.comparison-col { border-radius: var(--radius); padding: 1.25rem; }
.comparison-col.weak   { background: #fee2e2; border: 1px solid #fecaca; }
.comparison-col.strong { background: var(--green-100); border: 1px solid #bbf7d0; }

.comparison-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
.comparison-col.weak h4   { color: var(--red-500); }
.comparison-col.strong h4 { color: var(--green-600); }

.comparison-col p {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--slate-700);
  margin-bottom: 0;
}

/* Module navigation */
.module-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
}
.module-nav a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.15s;
}
.module-nav a:hover { border-color: var(--blue-500); box-shadow: var(--shadow-sm); }

/* Lab footer */
.lab-footer {
  background: var(--slate-900);
  color: var(--slate-400);
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  margin-top: auto;
}


/* ============================================
   SIGNUP & FORMS
   ============================================ */

.signup-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  width: 100%;
  max-width: 540px;
  box-shadow: var(--shadow-xl);
}

.signup-card .login-brand { text-align: center; margin-bottom: 2rem; }

.required { color: var(--red-500); }

.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.675rem 0.875rem;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: var(--font-sans);
  transition: border-color 0.15s, box-shadow 0.15s;
  background: white;
}

.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgb(59 130 246 / 0.15);
}

.form-group textarea { resize: vertical; line-height: 1.5; }

.checkbox-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--slate-700);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--blue-600);
}


/* ============================================
   ADMIN
   ============================================ */

.admin-section {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.admin-section h2 { margin-bottom: 1.25rem; font-size: 1.25rem; }

.admin-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-workshop-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  margin-bottom: 0.75rem;
  transition: border-color 0.15s;
}
.admin-workshop-card:hover { border-color: var(--blue-500); }

.admin-workshop-info { flex: 1; }
.admin-workshop-info h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.admin-workshop-slug {
  display: inline-block;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--slate-500);
  background: var(--slate-100);
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
  margin-right: 0.75rem;
}
.admin-workshop-dates {
  font-size: 0.8rem;
  color: var(--slate-400);
}

.admin-workshop-counts {
  display: flex;
  gap: 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
}
.count-pending { color: var(--amber-600); }
.count-approved { color: var(--green-600); }
.count-denied { color: var(--slate-400); }

.btn-view-participants {
  background: var(--slate-100);
  border: 1px solid var(--slate-300);
  color: var(--slate-700);
  padding: 0.375rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-family: var(--font-sans);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-view-participants:hover { background: var(--blue-600); color: white; border-color: var(--blue-600); }

.admin-tabs {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--slate-200);
  padding-bottom: 0.5rem;
}

.admin-tab {
  background: none;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-family: var(--font-sans);
  font-weight: 500;
  color: var(--slate-500);
  cursor: pointer;
  transition: all 0.15s;
}
.admin-tab:hover { color: var(--slate-700); background: var(--slate-100); }
.admin-tab.active { color: var(--blue-600); background: var(--blue-50); font-weight: 600; }

.participant-card {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 0.75rem;
}

.participant-header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.participant-header strong { font-size: 1rem; }
.participant-email { font-size: 0.85rem; color: var(--slate-500); }

.participant-details {
  font-size: 0.875rem;
  color: var(--slate-600);
  display: grid;
  gap: 0.375rem;
  margin-bottom: 0.75rem;
}
.participant-details strong { color: var(--slate-700); }

.participant-actions {
  display: flex;
  gap: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--slate-100);
}

.btn-approve {
  background: var(--green-600);
  color: white;
  border: none;
  padding: 0.375rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-family: var(--font-sans);
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-approve:hover { background: var(--green-500); }

.btn-deny {
  background: white;
  color: var(--red-500);
  border: 1px solid var(--red-500);
  padding: 0.375rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-family: var(--font-sans);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-deny:hover { background: var(--red-500); color: white; }


/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
  .hero { padding: 8rem 1.5rem 4rem; }
  .hero h1 { font-size: 2.25rem; }
  .hero .lead { font-size: 1.05rem; }

  .site-nav .nav-links { display: none; }
  .mobile-toggle { display: block; }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .module-content { padding: 1.5rem; }
  .comparison { grid-template-columns: 1fr; }
  .module-nav { flex-direction: column; }
  .contact-methods { flex-direction: column; align-items: center; }

  .lab-nav .nav-links { display: none; }

  .signup-card { padding: 1.5rem; }
  .checkbox-group { grid-template-columns: 1fr; }
  .admin-form-row { grid-template-columns: 1fr; }
  .admin-workshop-card { flex-direction: column; align-items: stretch; }
  .admin-workshop-counts { justify-content: flex-start; }

  .chat-panel.open {
    width: 100%;
    right: 0;
    bottom: 0;
    height: 100%;
    max-height: 100vh;
    border-radius: 0;
  }
}


/* ============================================
   CHAT WIDGET
   ============================================ */

.chat-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--blue-600);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgb(0 0 0 / 0.3);
  transition: background 0.15s, transform 0.15s, opacity 0.2s;
  z-index: 1000;
}
.chat-fab:hover {
  background: var(--blue-700);
  transform: scale(1.05);
}
.chat-fab.hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8);
}

.chat-panel {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 400px;
  max-height: 560px;
  height: 560px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgb(0 0 0 / 0.18);
  display: flex;
  flex-direction: column;
  z-index: 1001;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.chat-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--slate-200);
  border-radius: 16px 16px 0 0;
  background: var(--slate-900);
  color: white;
  flex-shrink: 0;
}

.chat-header-title {
  font-weight: 600;
  font-size: 0.95rem;
}

.chat-close {
  background: none;
  border: none;
  color: var(--slate-400);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 0.25rem;
  transition: color 0.15s;
}
.chat-close:hover { color: white; }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chat-bubble {
  max-width: 88%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.875rem;
  line-height: 1.55;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.chat-bubble.user {
  align-self: flex-end;
  background: var(--blue-600);
  color: white;
  border-bottom-right-radius: 4px;
}
.chat-bubble.assistant {
  align-self: flex-start;
  background: var(--slate-100);
  color: var(--slate-800);
  border-bottom-left-radius: 4px;
}

.chat-bubble.assistant strong {
  font-weight: 600;
  color: var(--slate-900);
}

.chat-bubble.assistant pre.chat-code-block {
  background: var(--slate-800);
  color: var(--slate-100);
  padding: 0.625rem 0.75rem;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  margin: 0.5rem 0;
  white-space: pre-wrap;
  overflow-x: auto;
}

.chat-bubble.assistant code.chat-inline-code {
  background: var(--slate-200);
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.chat-cursor {
  display: inline-block;
  width: 6px;
  height: 14px;
  background: var(--blue-600);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: chat-blink 0.8s step-end infinite;
}

@keyframes chat-blink {
  50% { opacity: 0; }
}

.chat-actions {
  padding: 0.5rem 1rem 0;
  flex-shrink: 0;
}

/* Inline practice button in module content */
.practice-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: var(--blue-50);
  color: var(--blue-600);
  border: 1px solid #bfdbfe;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.15s;
  margin: 0.75rem 0;
}
.practice-link:hover {
  background: var(--blue-100);
  border-color: var(--blue-500);
  text-decoration: none;
  color: var(--blue-700);
}

.chat-practice-btn {
  background: var(--blue-50);
  color: var(--blue-600);
  border: 1px solid var(--blue-200, #bfdbfe);
  padding: 0.375rem 0.875rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.15s;
}
.chat-practice-btn:hover {
  background: var(--blue-100);
  border-color: var(--blue-500);
}

.chat-input-area {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--slate-200);
  flex-shrink: 0;
}

.chat-input {
  flex: 1;
  border: 1px solid var(--slate-300);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-family: var(--font-sans);
  resize: none;
  max-height: 120px;
  line-height: 1.4;
  transition: border-color 0.15s;
}
.chat-input:focus {
  outline: none;
  border-color: var(--blue-500);
}

.chat-send {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border: none;
  background: var(--blue-600);
  color: white;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.chat-send:hover { background: var(--blue-700); }
.chat-send:disabled { background: var(--slate-300); cursor: not-allowed; }
