/* ==========================================================================
   Portal Lampiran Digital Kerja Praktik — Cimanuk-HEAD
   Translucent Light Frosted Glassmorphism Architecture
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;600&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* Light Canvas Base */
  --bg-main: #f0f7ff;
  --bg-card: rgba(255, 255, 255, 0.52);
  --bg-card-hover: rgba(255, 255, 255, 0.72);
  --bg-subtle: rgba(255, 255, 255, 0.45);
  
  --border-subtle: rgba(255, 255, 255, 0.8);
  --border-medium: rgba(226, 232, 240, 0.8);
  --border-bright: #38bdf8;

  /* Ocean Cyan Accents */
  --accent-cyan: #0284c7;
  --accent-cyan-hover: #0369a1;
  --accent-cyan-subtle: rgba(2, 132, 199, 0.08);
  --accent-cyan-border: rgba(56, 189, 248, 0.35);

  --accent-blue: #2563eb;
  --accent-indigo: #4f46e5;
  --accent-emerald: #059669;
  --accent-amber: #d97706;

  /* Typography */
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-tertiary: #64748b;

  /* Code Block Colors (High Contrast Slate Dark Editor) */
  --code-bg: #0f172a;
  --code-header-bg: #1e293b;
  --code-border: #334155;

  /* Fonts */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Fira Code', SFMono-Regular, Consolas, monospace;

  /* Radius & Shadows */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 30px -5px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --shadow-lg: 0 18px 40px -8px rgba(2, 132, 199, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.95);

  --transition-smooth: 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

#shader-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  opacity: 0.95;
}

body {
  font-family: var(--font-sans);
  background-color: transparent;
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Floating Pill Header Navigation (Frosted Glass) */
.site-header {
  position: sticky;
  top: 20px;
  z-index: 100;
  margin-top: 20px;
  margin-bottom: 44px;
  padding: 0 24px;
}

.main-nav {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.main-nav:hover {
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(255, 255, 255, 0.9);
}

.main-nav.scrolled {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: rgba(255, 255, 255, 0.90);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.main-nav.scrolled:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 12px 36px -4px rgba(2, 132, 199, 0.12);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.brand-institution {
  color: #0f172a;
}

.brand-divider {
  color: #94a3b8;
  font-weight: 400;
}

.brand-college {
  color: var(--text-secondary);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-smooth);
}

.nav-links a:hover {
  color: var(--accent-cyan);
  background: rgba(255, 255, 255, 0.8);
}

/* Minimalist Open Hero Section */
.hero {
  padding: 24px 0 48px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  margin-bottom: 48px;
  max-width: 900px;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: #0f172a;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
}

.author-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  margin-bottom: 36px;
  box-shadow: var(--shadow-sm);
}

.author-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-cyan);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.author-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.author-text strong {
  color: #0f172a;
  font-weight: 600;
}

.action-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-smooth);
  border: 1px solid transparent;
}

.btn svg {
  width: 17px;
  height: 17px;
}

.btn-solid {
  background: var(--accent-cyan);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
}

.btn-solid:hover {
  background: var(--accent-cyan-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.35);
}

.btn-subtle {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-sm);
}

.btn-subtle:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--accent-cyan-border);
  color: var(--accent-cyan);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: rgba(226, 232, 240, 0.8);
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--border-medium);
}

/* Translucent Frosted Glass Stat Cards */
.stats-section {
  margin-bottom: 60px;
}

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

.stat-card {
  background: rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transition: all var(--transition-smooth);
}

.stat-card:hover {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(255, 255, 255, 0.72);
  transform: translateY(-3px);
  box-shadow: 0 16px 36px -6px rgba(2, 132, 199, 0.12), inset 0 1px 0 rgba(255, 255, 255, 1);
}

.stat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.stat-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-icon {
  color: var(--accent-cyan);
  width: 20px;
  height: 20px;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.stat-subtext {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Translucent Frosted Glass 5-Stage Python Cards */
.stages-section {
  margin-bottom: 80px;
}

.section-intro {
  margin-bottom: 36px;
  border-bottom: 2px solid rgba(226, 232, 240, 0.6);
  padding-bottom: 18px;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.section-subtitle {
  font-size: 0.98rem;
  color: var(--text-secondary);
}

.stage-list {
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.stage-card {
  background: rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transition: all var(--transition-smooth);
}

.stage-card:hover {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 40px -8px rgba(2, 132, 199, 0.12), inset 0 1px 0 rgba(255, 255, 255, 1);
}

.stage-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 18px;
}

.stage-title-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.stage-number-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.75);
  color: var(--accent-cyan);
  font-weight: 800;
  font-size: 0.95rem;
  border: 1px solid rgba(56, 189, 248, 0.35);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.stage-h3 {
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.file-name-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--text-tertiary);
  margin-top: 4px;
}

.file-name-tag svg {
  width: 15px;
  height: 15px;
  color: var(--accent-cyan);
}

.stage-tag-badge {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.85);
}

.stage-desc {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 26px;
}

.stage-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--radius-md);
  padding: 20px 26px;
  margin-bottom: 28px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.metric-box {
  display: flex;
  flex-direction: column;
}

.metric-key {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.metric-val {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.code-frame {
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
}

.code-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: var(--code-header-bg);
  border-bottom: 1px solid var(--code-border);
}

.toolbar-file-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: #94a3b8;
  min-width: 0;
  max-width: 100%;
}

.toolbar-file-info span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toolbar-file-info svg {
  width: 15px;
  height: 15px;
  color: #38bdf8;
}

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

.btn-tool {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  color: #f8fafc;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.btn-tool:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: #38bdf8;
  color: #ffffff;
}

.btn-tool svg {
  width: 14px;
  height: 14px;
}

.code-container {
  max-height: 480px;
  overflow-y: auto;
}

.code-container pre {
  margin: 0;
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.65;
}

.code-container::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
.code-container::-webkit-scrollbar-track {
  background: var(--code-bg);
}
.code-container::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}

/* Toast Floating Notification */
.toast-wrap {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 1000;
}

.toast-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #0f172a;
  color: #ffffff;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.25);
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-box.active {
  transform: translateY(0);
  opacity: 1;
}

.toast-box svg {
  color: #34d399;
  width: 20px;
  height: 20px;
}

/* Footer (Frosted Glass) */
footer {
  margin-top: 60px;
  margin-bottom: 40px;
  padding: 0;
}

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 20px;
  padding: 16px 28px;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-lg);
  font-size: 0.88rem;
  color: var(--text-tertiary);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.footer-brand-info {
  white-space: nowrap;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  white-space: nowrap;
}

.footer-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-smooth);
}

.footer-nav a:hover {
  color: var(--accent-cyan);
}

/* Syntax Highlighting */
.token.comment, .token.prolog, .token.doctype, .token.cdata { color: #64748b; font-style: italic; }
.token.punctuation { color: #94a3b8; }
.token.property, .token.tag, .token.boolean, .token.number, .token.constant, .token.symbol { color: #f472b6; }
.token.selector, .token.attr-name, .token.string, .token.char, .token.builtin { color: #34d399; }
.token.operator, .token.entity, .token.url { color: #38bdf8; }
.token.keyword { color: #c084fc; font-weight: 600; }
.token.function, .token.class-name { color: #fbbf24; }

/* ==========================================================================
   Masterpiece Mobile & Tablet Responsive Design System
   ========================================================================== */

/* Word Wrap & Horizontal Overflow Protection */
html, body {
  width: 100%;
  overflow-x: hidden;
}

h1, h2, h3, p {
  overflow-wrap: break-word;
}

/* Mobile & Tablet Styles (<= 768px) */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  /* Header Navigation on Mobile */
  .site-header {
    top: 8px;
    padding: 0 8px;
    margin-top: 8px;
    margin-bottom: 24px;
  }

  .main-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  }

  .main-nav.scrolled {
    background: rgba(255, 255, 255, 0.92);
  }

  .nav-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.84rem;
    font-weight: 700;
    white-space: nowrap;
    word-break: normal !important;
  }

  .brand-institution {
    color: #0f172a;
  }

  .brand-college {
    color: var(--accent-cyan);
    font-weight: 600;
  }

  .nav-links {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    padding-top: 8px;
    white-space: nowrap;
  }

  .nav-links a {
    font-size: 0.74rem;
    font-weight: 600;
    padding: 4px 8px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.7);
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    white-space: nowrap;
    word-break: normal !important;
  }

  /* Hero Section on Mobile */
  .hero {
    padding: 8px 0 28px;
    margin-bottom: 28px;
  }

  .hero-title {
    font-size: clamp(1.5rem, 6.2vw, 2.1rem);
    font-weight: 800;
    line-height: 1.22;
    color: #0f172a;
    margin-bottom: 10px;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a; /* High contrast dark text on light ocean canvas */
    line-height: 1.5;
    margin-bottom: 14px;
    background: rgba(255, 255, 255, 0.45);
    padding: 8px 12px;
    border-radius: 8px;
    border-left: 3px solid var(--accent-cyan);
  }

  .hero-desc {
    font-size: 0.88rem;
    line-height: 1.6;
    color: #334155;
    margin-bottom: 20px;
  }

  /* Author Pill on Mobile */
  .author-pill {
    padding: 6px 14px;
    margin-bottom: 22px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    width: 100%;
    display: block;
    text-align: center;
  }

  .author-text {
    font-size: 0.8rem;
    line-height: 1.45;
  }

  /* Action Hub Buttons on Mobile */
  .action-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .btn {
    width: 100%;
    justify-content: center;
    padding: 10px 14px;
    font-size: 0.86rem;
    border-radius: 10px;
  }

  /* Stat Cards Grid on Mobile */
  .stats-section {
    margin-bottom: 40px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .stat-card {
    padding: 14px 12px;
    border-radius: 14px;
  }

  .stat-header {
    margin-bottom: 8px;
  }

  .stat-label {
    font-size: 0.7rem;
  }

  .stat-icon {
    width: 16px;
    height: 16px;
  }

  .stat-number {
    font-size: 1.35rem;
    margin-bottom: 4px;
  }

  .stat-subtext {
    font-size: 0.75rem;
    line-height: 1.35;
  }

  /* Stage Cards on Mobile */
  .stages-section {
    margin-bottom: 50px;
  }

  .section-intro {
    margin-bottom: 24px;
    padding-bottom: 12px;
  }

  .section-title {
    font-size: 1.35rem;
  }

  .section-subtitle {
    font-size: 0.85rem;
  }

  .stage-list {
    gap: 28px;
  }

  .stage-card {
    padding: 16px 14px;
    border-radius: 16px;
  }

  .stage-header {
    gap: 8px;
    margin-bottom: 12px;
  }

  .stage-number-badge {
    width: 32px;
    height: 32px;
    font-size: 0.82rem;
    border-radius: 8px;
  }

  .stage-h3 {
    font-size: 1.05rem;
    line-height: 1.3;
  }

  .file-name-tag {
    font-size: 0.76rem;
  }

  .stage-tag-badge {
    font-size: 0.72rem;
    padding: 3px 10px;
  }

  .stage-desc {
    font-size: 0.86rem;
    line-height: 1.55;
    margin-bottom: 16px;
  }

  .stage-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 12px 14px;
    margin-bottom: 18px;
  }

  .metric-key {
    font-size: 0.68rem;
  }

  .metric-val {
    font-size: 0.85rem;
  }

  /* Code Toolbar & Buttons on Mobile */
  .code-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 10px 12px;
  }

  .toolbar-file-info {
    font-size: 0.78rem;
    width: 100%;
  }

  .toolbar-file-info span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .code-actions {
    display: flex;
    gap: 8px;
    width: 100%;
  }

  .btn-tool {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    font-size: 0.76rem;
    border-radius: 6px;
  }

  .code-container pre {
    padding: 14px 12px;
    font-size: 0.78rem;
    line-height: 1.55;
  }

  /* Footer on Mobile */
  footer {
    margin-top: 40px;
    margin-bottom: 24px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 14px 16px;
  }

  .footer-brand-info {
    font-size: 0.78rem;
    white-space: normal;
  }

  .footer-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 14px;
    font-size: 0.78rem;
  }
}

/* Extra Small Mobile (<= 400px) */
@media (max-width: 400px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stage-metrics-grid {
    grid-template-columns: 1fr;
  }
}
