/* ==========================================================================
   GLOBAL DESIGN TOKENS & STYLES (Figma Prototype High-Fidelity Replication)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600;800&family=Plus+Jakarta+Sans:wght@500;700;800;900&display=swap');

:root,
[data-theme="light"] {
  /* Canvas & Surface Tokens (Figma Light Prototype) */
  --canvas-bg: #D9D9D9;
  --glass-bg: rgba(217, 217, 217, 0.76);
  --glass-border: rgba(255, 255, 255, 0.45);
  --dark-glass-bg: rgba(18, 22, 28, 0.94);
  --card-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);

  /* Background Wallpaper / Atmospheric Wash */
  --app-bg-color: #D9D9D9;
  --app-viewport-bg: radial-gradient(circle at 50% 20%, #E8EEF5 0%, #D5DFE8 100%);

  /* Typography */
  --text-primary: #0F172A;
  --text-secondary: #334155;
  --text-muted: #64748B;
  --text-on-dark: #FFFFFF;

  /* Header & Stadium Pill Tokens */
  --header-badge-bg: rgba(217, 217, 217, 0.85);
  --header-badge-border: #1a7f7a;
  --header-badge-text: #1A1A1A;
  --home-btn-icon: #1A1A1A;

  /* Top Navbar Pill Base */
  --nav-pill-base-fill: var(--canvas-bg);
  --navbar-pill-border: #1a7f7a;

  /* White Item Cards (History & Result pages adapt to slate in dark mode) */
  --item-card-bg: #FFFFFF;
  --item-card-border: rgba(0, 0, 0, 0.12);
  --item-card-text: #0F172A;
  --item-card-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --item-card-hover-border: #0A6563;

  /* Sub-panels & Toolbars */
  --sub-panel-bg: rgba(255, 255, 255, 0.5);
  --sub-panel-border: rgba(0, 0, 0, 0.08);

  /* Result & Metrics Cards */
  --result-display-bg: #DBD9D9;
  --result-display-border: #090745;
  --available-metrics-bg: #DBD9D9;
  --available-metrics-border: #000000;

  /* Chain Branch / Secondary Inputs */
  --chain-bracket-color: #1A1A1A;
  --chain-colon-color: #222222;
  --btn-chain-bg: rgba(255, 255, 255, 0.65);
  --btn-chain-text: #1A1A1A;
  --btn-chain-border: rgba(0, 0, 0, 0.2);
  --branch-node-bg: rgba(255, 255, 255, 0.12);
  --branch-node-border: rgba(0, 0, 0, 0.08);
  --endpoint-badge-text: #222222;
  --endpoint-pill-bg: rgba(0, 0, 0, 0.1);
  --endpoint-pill-color: #0A6563;
  --endpoint-pill-border: rgba(10, 101, 99, 0.25);

  /* Mode Switcher Tabs */
  --tab-track-bg: rgba(0, 0, 0, 0.12);
  --tab-track-border: rgba(0, 0, 0, 0.15);
  --tab-btn-text: #333333;

  /* Loader */
  --loader-bg: #D9D9D9;

  /* Theme Toggle Button Specifics */
  --toggle-bg: rgba(217, 217, 217, 0.85);
  --toggle-border: #1a7f7a;
  --toggle-text: #0F172A;
  --toggle-track-bg: rgba(0, 0, 0, 0.12);
  --toggle-thumb-bg: #F59E0B;
  --toggle-thumb-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
  --toggle-icon-active: #FFFFFF;
  --toggle-icon-inactive: #64748B;

  /* Top Triangle Navbar Palette (Preserved) */
  --color-concurrency: #731C61;
  --stroke-concurrency: #5E0C22;
  --color-fuzzy: #376D33;
  --stroke-fuzzy: #342222;
  --color-sequence: #0A6563;
  --stroke-sequence: #5E0C22;

  /* Right Action Pills Palette (homepagesvg.svg Exact - Preserved) */
  --pill-run-bg: #73412A;
  --pill-run-border: #67752C;
  --pill-result-bg: #2A6B73;
  --pill-result-border: #753B2C;
  --pill-history-bg: #542A73;
  --pill-history-border: #2C754E;
  --pill-editor-bg: #732A2A;
  --pill-editor-border: #2C6975;

  /* Auxiliary Buttons (Preserved) */
  --btn-format-bg: #2A734E;
  --btn-format-border: #2C3175;
  --btn-paste-bg: #2A6B73;
  --btn-paste-border: #753B2C;
  --btn-copy-bg: #635927;
  --btn-copy-border: #753B2C;
  --btn-autofix-bg: #FB0000;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

[data-theme="dark"] {
  /* Canvas & Surface Tokens (Deep Atmospheric Dark Mode) */
  --canvas-bg: #0F1218;
  --glass-bg: rgba(18, 22, 28, 0.88);
  --glass-border: rgba(120, 194, 233, 0.22);
  --dark-glass-bg: rgba(10, 14, 20, 0.94);
  --card-shadow: 0 20px 48px rgba(0, 0, 0, 0.8), 0 0 1px rgba(120, 194, 233, 0.25);

  /* Background Wallpaper / Atmospheric Wash */
  --app-bg-color: #0F1218;
  --app-viewport-bg: radial-gradient(circle at 50% 25%, #161D27 0%, #0A0E14 100%);

  /* Typography (High contrast light typography) */
  --text-primary: #F1F5F9;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --text-on-dark: #FFFFFF;

  /* Header & Stadium Pill Tokens */
  --header-badge-bg: rgba(18, 22, 28, 0.88);
  --header-badge-border: #1a7f7a;
  --header-badge-text: #F1F5F9;
  --home-btn-icon: #F1F5F9;

  /* Top Navbar Pill Base */
  --nav-pill-base-fill: rgba(18, 22, 28, 0.95);
  --navbar-pill-border: #1a7f7a;

  /* White Item Cards adapt to dark slate #1E2430 in dark mode */
  --item-card-bg: #1E2430;
  --item-card-border: rgba(255, 255, 255, 0.12);
  --item-card-text: #F1F5F9;
  --item-card-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  --item-card-hover-border: #78C2E9;

  /* Sub-panels & Toolbars */
  --sub-panel-bg: rgba(18, 22, 28, 0.65);
  --sub-panel-border: rgba(255, 255, 255, 0.1);

  /* Result & Metrics Cards */
  --result-display-bg: rgba(18, 22, 28, 0.92);
  --result-display-border: rgba(120, 194, 233, 0.25);
  --available-metrics-bg: rgba(18, 22, 28, 0.92);
  --available-metrics-border: rgba(255, 255, 255, 0.18);

  /* Chain Branch / Secondary Inputs */
  --chain-bracket-color: #F1F5F9;
  --chain-colon-color: #CBD5E1;
  --btn-chain-bg: rgba(30, 41, 59, 0.8);
  --btn-chain-text: #F1F5F9;
  --btn-chain-border: rgba(255, 255, 255, 0.15);
  --branch-node-bg: rgba(255, 255, 255, 0.05);
  --branch-node-border: rgba(255, 255, 255, 0.1);
  --endpoint-badge-text: #CBD5E1;
  --endpoint-pill-bg: rgba(10, 101, 99, 0.25);
  --endpoint-pill-color: #78C2E9;
  --endpoint-pill-border: rgba(120, 194, 233, 0.3);

  /* Mode Switcher Tabs */
  --tab-track-bg: rgba(0, 0, 0, 0.35);
  --tab-track-border: rgba(255, 255, 255, 0.12);
  --tab-btn-text: #CBD5E1;

  /* Loader */
  --loader-bg: #0F1218;

  /* Theme Toggle Button Specifics */
  --toggle-bg: rgba(18, 22, 28, 0.88);
  --toggle-border: #1a7f7a;
  --toggle-text: #F1F5F9;
  --toggle-track-bg: rgba(0, 0, 0, 0.4);
  --toggle-thumb-bg: #38BDF8;
  --toggle-thumb-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
  --toggle-icon-active: #FFFFFF;
  --toggle-icon-inactive: #64748B;
}

/* ==========================================================================
   VIEWPORT LOCK & RESET
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100vw;
  height: 100vh;
  overflow: hidden; /* Screen Adaptation: Page scrolling is locked */
  font-family: var(--font-sans);
  color: var(--text-primary);
  background-color: var(--app-bg-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  user-select: none;
  transition: background-color 0.35s ease, color 0.35s ease;
}

/* Abstract Texture Background */
.app-viewport {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: var(--app-bg-color);
  background-image: var(--app-viewport-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  transition: background-color 0.35s ease, background-image 0.35s ease;
}

/* ==========================================================================
   TOP PILL NAVBAR & 3D POP-OUT
   ========================================================================== */
.pill-navbar-container {
  margin-top: 18px;
  position: relative;
  z-index: 50;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45));
}

.pill-navbar-svg {
  width: 440px;
  height: 62px;
  overflow: visible;
  display: block;
}

.nav-pill-base {
  fill: var(--nav-pill-base-fill);
  stroke: var(--navbar-pill-border);
  stroke-width: 3.5px;
  rx: 31px;
  transition: fill 0.35s ease, stroke 0.35s ease;
}

.nav-btn {
  cursor: pointer;
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), 
              filter 0.3s ease, 
              opacity 0.3s ease;
}

/* Pop-out 3D Elevation */
.nav-btn.active {
  transform: translateY(-8px) scale(1.08);
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 10px rgba(255, 255, 255, 0.4)) brightness(1.28);
}

.nav-btn.active path {
  stroke-width: 4px;
}

.nav-btn.active text {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95);
}

/* Inactive Triangles */
.nav-btn.inactive {
  transform: translateY(3px) scale(0.96);
  opacity: 0.52 !important;
  filter: brightness(0.72) grayscale(25%);
}

.nav-btn text {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  fill: #FFFFFF;
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
  transition: all 0.3s ease;
}

/* Hover effect on triangle buttons */
.nav-btn:hover:not(.active) {
  opacity: 0.85 !important;
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.15);
}

/* ==========================================================================
   GLASS CARDS & CONTAINERS
   ========================================================================== */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 28px;
  border: 1.5px solid var(--glass-border);
  box-shadow: var(--card-shadow);
  position: relative;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

/* ==========================================================================
   STADIUM ACTION PILLS (RUN, RESULT, HISTORY, EDITOR, FORMAT, PASTE)
   ========================================================================== */
.action-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 1px;
  color: #FFFFFF;
  text-decoration: none;
  border-style: solid;
  border-width: 3.5px;
  cursor: pointer;
  outline: none;
  transition: transform 0.2s cubic-bezier(0.2, 0.9, 0.3, 1.2), 
              filter 0.2s ease, 
              box-shadow 0.2s ease;
  user-select: none;
}

/* Button Hover: Fill Brightness Only, Stroke Remains Fixed */
.action-pill-btn:hover {
  transform: translateY(-2px) scale(1.03);
  filter: brightness(1.22);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55);
}

.action-pill-btn:active {
  transform: translateY(1px) scale(0.98);
  filter: brightness(0.95);
}

/* Individual Pill Color Schemes (Figma Exact) */
.btn-run {
  background-color: var(--pill-run-bg);
  border-color: var(--pill-run-border);
  width: 130px;
  height: 48px;
}

.btn-result {
  background-color: var(--pill-result-bg);
  border-color: var(--pill-result-border);
  width: 130px;
  height: 48px;
  position: relative;
}

.btn-history {
  background-color: var(--pill-history-bg);
  border-color: var(--pill-history-border);
  width: 130px;
  height: 48px;
}

.btn-editor {
  background-color: var(--pill-editor-bg);
  border-color: var(--pill-editor-border);
  width: 130px;
  height: 48px;
}

.btn-docs-home {
  background-color: var(--item-card-bg);
  border-color: #1a7f7a;
  color: var(--item-card-text);
  width: 130px;
  height: 48px;
  font-size: 11px;
  letter-spacing: 0.8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  transition: all 0.25s ease;
}

.btn-docs-home:hover {
  filter: brightness(1.08);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.55), 0 0 12px rgba(26, 127, 122, 0.45);
}

.btn-format {
  background-color: var(--btn-format-bg);
  border-color: var(--btn-format-border);
  padding: 6px 26px;
  font-size: 12px;
  border-width: 3px;
}

.btn-paste {
  background-color: var(--btn-paste-bg);
  border-color: var(--btn-paste-border);
  padding: 6px 26px;
  font-size: 12px;
  border-width: 3px;
}

/* Notification Badge on Result Button */
.notification-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #E50914;
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  animation: badgePulse 2s infinite ease-in-out;
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}

/* ==========================================================================
   HOME BUTTON CIRCLE (FOR HEADER PAGES)
   ========================================================================== */
.btn-home-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--header-badge-bg);
  border: 3px solid var(--header-badge-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  text-decoration: none;
}

.btn-home-circle:hover {
  transform: scale(1.08) translateY(-2px);
  filter: brightness(1.2);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.6);
}

.btn-home-circle svg {
  width: 24px;
  height: 24px;
  fill: var(--home-btn-icon);
  transition: fill 0.3s ease;
}

/* ==========================================================================
   THEME TOGGLE BUTTON & TOP NAVIGATION WRAPPERS
   ========================================================================== */
.top-left-theme-toggle {
  position: absolute;
  top: 18px;
  left: 24px;
  z-index: 60;
  display: flex;
  align-items: center;
}

.header-theme-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.result-top-left-group,
.docs-top-left-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--toggle-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 2.5px solid var(--toggle-border);
  border-radius: 9999px;
  padding: 5px 14px 5px 6px;
  height: 42px;
  cursor: pointer;
  outline: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
              filter 0.2s ease,
              box-shadow 0.25s ease,
              background 0.3s ease,
              border-color 0.3s ease;
  user-select: none;
}

.theme-toggle-btn:hover {
  transform: translateY(-2px) scale(1.04);
  filter: brightness(1.15);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5), 0 0 12px rgba(26, 127, 122, 0.4);
}

.theme-toggle-btn:active {
  transform: translateY(1px) scale(0.97);
}

/* Stadium Pill Track */
.theme-toggle-pill {
  position: relative;
  width: 54px;
  height: 28px;
  background: var(--toggle-track-bg);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.4);
}

/* Sliding Thumb Capsule */
.theme-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--toggle-thumb-bg);
  box-shadow: var(--toggle-thumb-shadow);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              background 0.3s ease,
              box-shadow 0.3s ease;
  z-index: 1;
}

/* When dark mode is active, thumb glides smoothly to the right */
[data-theme="dark"] .theme-toggle-thumb,
.theme-toggle-btn.is-dark .theme-toggle-thumb {
  transform: translateX(26px);
}

/* Sun and Moon icon slots */
.theme-icon-slot {
  position: relative;
  z-index: 2;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.25s ease, transform 0.25s ease, color 0.25s ease;
}

.theme-icon-slot svg {
  display: block;
}

.theme-icon-slot.theme-sun {
  color: #1A1A1A;
}

.theme-icon-slot.theme-moon {
  color: #94A3B8;
}

/* Active states for icons */
[data-theme="light"] .theme-icon-slot.theme-sun,
.theme-toggle-btn.is-light .theme-icon-slot.theme-sun {
  color: #FFFFFF;
  opacity: 1;
  transform: scale(1.08);
}

[data-theme="light"] .theme-icon-slot.theme-moon,
.theme-toggle-btn.is-light .theme-icon-slot.theme-moon {
  opacity: 0.42;
  color: #475569;
  transform: scale(0.88);
}

[data-theme="dark"] .theme-icon-slot.theme-sun,
.theme-toggle-btn.is-dark .theme-icon-slot.theme-sun {
  opacity: 0.42;
  color: #64748B;
  transform: scale(0.88);
}

[data-theme="dark"] .theme-icon-slot.theme-moon,
.theme-toggle-btn.is-dark .theme-icon-slot.theme-moon {
  color: #FFFFFF;
  opacity: 1;
  transform: scale(1.08);
}

/* Text label */
.theme-toggle-text {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 11.5px;
  letter-spacing: 1px;
  color: var(--toggle-text);
  min-width: 42px;
  text-align: left;
  transition: color 0.3s ease;
}

/* ==========================================================================
   CUSTOM INNER SCROLLBARS (PAGE SCROLL LOCKED, SECTION SCROLL ONLY)
   ========================================================================== */
.custom-scrollable {
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(10, 101, 99, 0.65) transparent;
}

.custom-scrollable::-webkit-scrollbar {
  width: 6px;
}

.custom-scrollable::-webkit-scrollbar-track {
  background: transparent;
}

.custom-scrollable::-webkit-scrollbar-thumb {
  background: rgba(10, 101, 99, 0.65);
  border-radius: 9999px;
}

.custom-scrollable::-webkit-scrollbar-thumb:hover {
  background: rgba(26, 127, 122, 0.9);
}

/* ==========================================================================
   INFO BOXES SYSTEM (NOTICE, ERROR, SUCCESS from infoboxes.svg)
   ========================================================================== */
#infoBoxContainer {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 16px;
  pointer-events: none;
  max-width: 460px;
}

.info-box-wrapper {
  pointer-events: auto;
  animation: infoBoxSlideIn 0.35s cubic-bezier(0.18, 0.89, 0.32, 1.25) forwards;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.info-box-wrapper.dismissing {
  opacity: 0;
  transform: translateY(-20px) scale(0.92);
}

@keyframes infoBoxSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Base Card Geometry (infoboxes.svg Exact) */
.info-box-card {
  position: relative;
  width: 440px;
  padding: 16px 20px 20px 20px;
  border-radius: 48px;
  background: #D9D9D9;
  border: 2px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75);
  overflow: hidden;
}

/* Header Bar */
.info-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 4px;
}

.info-box-title {
  background: #FFFFFF;
  border-radius: 9999px;
  padding: 4px 18px;
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 13.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.info-box-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  padding: 2px 8px;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.info-box-close:hover {
  transform: scale(1.25);
}

/* Inner Content Rect */
.info-box-body {
  border-radius: 20px;
  padding: 18px 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.55;
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

/* --- Type 1: NOTICE (infoboxes.svg Top Card) --- */
.info-box-card.notice .info-box-title {
  color: #0D2D1C;
}

.info-box-card.notice .info-box-close {
  color: #0D2D1C; /* Dark forest green 'x' stroke1_38_91 */
  text-shadow: 0 0 6px rgba(13, 45, 28, 0.4);
}

.info-box-card.notice .info-box-body {
  background: rgba(219, 223, 140, 0.72); /* #DBDF8C 67% opacity */
  color: #2D150D;
  border: 1.5px solid rgba(13, 45, 28, 0.25);
}

/* --- Type 2: ERROR (infoboxes.svg Middle Card) --- */
.info-box-card.error .info-box-title {
  color: #2D150D;
}

.info-box-card.error .info-box-close {
  color: #2D150D; /* Rust / espresso chalk 'x' stroke5_38_91 */
  text-shadow: 0 0 6px rgba(45, 21, 13, 0.4);
}

.info-box-card.error .info-box-body {
  background: rgba(83, 32, 38, 0.78); /* #532026 67% opacity */
  color: #FFE5E8;
  border: 1.5px solid rgba(45, 21, 13, 0.35);
}

/* --- Type 3: SUCCESS (infoboxes.svg Bottom Card) --- */
.info-box-card.success .info-box-title {
  color: #0D142D;
}

.info-box-card.success .info-box-close {
  color: #0D142D; /* Midnight navy chalk 'x' stroke9_38_91 */
  text-shadow: 0 0 6px rgba(13, 20, 45, 0.4);
}

.info-box-card.success .info-box-body {
  background: rgba(48, 69, 10, 0.82); /* #30450A 67% opacity */
  color: #F2FFE8;
  border: 1.5px solid rgba(13, 20, 45, 0.35);
}
