/* --- BASE VARIABLES --- */
:root {
  --bg-app: #faf5ff; 
  --bg-sidebar: #ffffff;
  --bg-surface: #ffffff;
  --text-main: #1f2937;
  --text-muted: #6b7280;
  --border-light: #e5e7eb;
  --accent: #6d28d9; 
  --accent-light: #f3e8ff; 
  --radius-xl: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

* {
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Outfit', sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* 1. ROOT ELEMENT: This is the ONLY place overflow should exist */
html {
  overflow-y: scroll; /* Permanently locks the vertical scrollbar so the page never shakes */
  overflow-x: hidden; /* Prevents horizontal scrolling */
}

/* 2. BODY ELEMENT: Stripped clean of overflow rules to prevent double scrollbars */
body {
  background-color: var(--bg-app);
  font-family: 'Outfit', sans-serif; 
  display: flex;
  flex-direction: column; 
  align-items: center;
  min-height: 100vh; /* Guarantees the body always fills the screen */
}

/* --- LAYOUT WRAPPER --- */
.content-wrapper {
  display: flex;
  max-width: 1440px;
  width: 100%; /* Ensures it fills the flexible body properly */
  margin: 0 auto;
  gap: 32px;
  padding: 32px 24px;
  align-items: flex-start;
}

/* --- SIDEBAR --- */
.color-sidebar {
  width: 260px;
  background: var(--bg-sidebar);
  border-radius: var(--radius-xl);
  padding: 24px 16px;
  box-shadow: var(--shadow-card);
  flex-shrink: 0;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  color: var(--accent);
  margin-bottom: 20px;
  padding: 0 8px;
}

.sidebar-search {
  display: flex;
  align-items: center;
  background: #f9fafb;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  margin-bottom: 24px;
  gap: 8px;
  color: var(--text-muted);
}
.sidebar-search input {
  flex: 1;
  border: none;
  background: transparent;
  width: 100%;
  font-size: 14px;
  outline: none;
  font-family: inherit;
}
/* NEW: Clear Search Button Styling */
.clear-search-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.clear-search-btn:hover {
  color: var(--accent);
  background: var(--bg-elevated, #f4e8fd);
}
.color-nav-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0; /* CHANGED: Reduced from 32px to bring the suggestions box closer */
  display: flex;
  flex-direction: column;
  gap: 4px; 
}
.color-nav-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
  transition: background 0.2s;
}
.color-nav-list li:hover {
  background: #f3f4f6;
}
.color-nav-list li.active {
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 600;
}

/* Base Drop SVG styling for lists */
.drop-icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  background-color: currentColor;
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2C8 7 4 12 4 16A8 8 0 0 0 20 16C20 12 16 7 12 2Z"/></svg>');
  -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2C8 7 4 12 4 16A8 8 0 0 0 20 16C20 12 16 7 12 2Z"/></svg>');
  mask-size: contain;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
}

.sidebar-promo {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
}
.promo-icon {
  font-size: 32px;
  margin-bottom: 12px;
}
.sidebar-promo h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}
.sidebar-promo p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}
.promo-btn {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  width: 100%;
  cursor: pointer;
  transition: opacity 0.2s;
}
.promo-btn:hover {
  opacity: 0.9;
}

/* --- MAIN CONTENT --- */
.page-content {
  flex: 1;
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-card);
  min-width: 0; /* Prevents flex children from overflowing */
  min-height: 85vh;
}

.breadcrumbs {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.breadcrumbs a {
  color: var(--text-main);
  text-decoration: none;
}
.breadcrumbs span {
  font-weight: 600;
}

/* --- PAGE TITLE & TOP BUTTON --- */
.page-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap; 
  gap: 16px;
}

.page-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0; /* Overrides previous margin */
}

.page-title h1 {
  font-size: 28px;
  font-weight: 700;
  color: #111827;
}

/* Styled to match your accent pill buttons */
.see-also-btn {
  display: inline-flex;
  align-items: center;
  background: var(--bg-elevated, #f4e8fd);
  color: var(--accent, #8d18e7);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.see-also-btn:hover {
  background: var(--bg-surface, #ffffff);
  border-color: var(--accent, #8d18e7);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(141, 24, 231, 0.1);
}
.page-title h1 {
  font-size: 28px;
  font-weight: 700;
  color: #111827;
}
.drop-icon-large {
  display: inline-flex;
  width: 32px; /* Slightly increased to give it breathing room */
  height: 32px;
}

/* Add this to force the SVG to scale cleanly without clipping */
.drop-icon-large svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.intro-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-main);
  margin-bottom: 32px;
  max-width: 900px;
}

.gradient-bar {
  height: 16px;
  border-radius: 100px;
  background: linear-gradient(to right, #FFD700, #FFF5CC);
  margin-bottom: 12px;
}
.see-also-link {
  text-align: right;
  margin-bottom: 40px;
}
.see-also-link a {
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.see-also-link a:hover {
  text-decoration: underline;
}

.section-heading {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
}

/* --- SHADES GRID --- */
.shades-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.shade-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: #ffffff;
  /* CHANGE: Removed overflow: hidden and replaced with visible */
  overflow: visible; 
  position: relative; 
  display: flex;
  flex-direction: column;
}
.shade-card:hover,
.shade-card:focus-within {
  z-index: 50;
}
.shade-color {
  height: 120px;
  width: 100%;
  border-top-left-radius: calc(var(--radius-md) - 1px);
  border-top-right-radius: calc(var(--radius-md) - 1px);
}
.shade-details {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.shade-details h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}
.shade-codes {
  display: flex;
  justify-content: space-between;
  font-family: "JetBrains Mono", monospace, sans-serif;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-main);
}
.rgb-val {
  color: var(--text-muted);
  font-weight: 500;
}
.shade-hsb {
  display: flex;
  gap: 8px;
}
.hsb-box {
  flex: 1;
  background: #f9fafb;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 8px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 11px;
}
.hsb-box span:first-child {
  color: var(--text-muted);
}
.hsb-box span:last-child {
  font-weight: 600;
  color: var(--text-main);
}

.button-center {
  display: flex;
  justify-content: center;
  margin-bottom: 48px;
}
.show-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-light);
  color: var(--accent);
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.show-more-btn:hover {
  background: #e9d5ff;
}
/* --- ALPHABETICAL DIVIDERS --- */
.alphabet-header {
  grid-column: 1 / -1; /* Forces the header to span the entire width of the grid */
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 32px 0 8px 0;
}
.alphabet-header:first-child {
  margin-top: 8px; /* Less empty space for the very top header */
}
.alphabet-header span {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
}
.alphabet-header hr {
  flex: 1;
  border: none;
  border-top: 2px dashed var(--border-light); /* Creates the dashed line effect */
}
.alphabet-header.main-shade span {
  color: var(--accent); /* Uses your brand purple for the main color */
  font-size: 18px;
}

/* --- INFO GRID (3 COLUMNS) --- */
.info-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.info-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  background: #ffffff;
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.card-header h3 {
  font-size: 15px;
  font-weight: 700;
}
.info-icon {
  color: var(--text-muted);
}

/* --- ABOUT CARD --- */
.about-text {
  font-size: 14px; /* Slightly larger for better readability */
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

/* Wraps the icon in a clean, soft purple box */
.feature-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--bg-elevated, #f4e8fd);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon svg {
  width: 16px;
  height: 16px;
}

.feature-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: -1px; /* Optically aligns text baseline with the icon box */
}

/* Keeps the title crisp and dark */
.feature-text strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

/* Keeps the description muted */
.feature-text span {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Table */
.codes-table {
  width: 100%;
  border-collapse: collapse;
}
.codes-table td {
  padding: 10px 0;
  font-size: 12px;
  border-bottom: 1px solid #f3f4f6;
}
.codes-table tr:last-child td {
  border-bottom: none;
}
.codes-table td:first-child {
  color: var(--text-muted);
  font-weight: 500;
  width: 40px;
}
.code-val {
  font-family: "JetBrains Mono", monospace, sans-serif;
  text-align: right;
  padding-right: 12px !important;
  font-weight: 500;
}
.copy-icon-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  transition: all 0.2s;
}
.copy-icon-btn:hover {
  background: var(--bg-app);
  color: var(--text-main);
}

/* Preview Box */
.preview-large {
  border-radius: var(--radius-sm);
  padding: 24px;
  text-align: center;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.4;
  margin-bottom: 16px;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.preview-small-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}
.preview-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.box-color {
  width: 100%;
  height: 40px;
  border-radius: 4px;
}
.preview-box span {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

/* --- TINTS & SHADES SCALE --- */
.scale-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 48px;
}
.scale-section h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
}
.scale-section h3 span {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 13px;
}
.scale-row {
  display: flex;
  gap: 4px;
}
.scale-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.s-color {
  width: 100%;
  height: 48px;
  border-radius: 4px;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Creates a subtle darkening effect on hover so the copy icon pops */
.s-color::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15); 
  opacity: 0;
  transition: opacity 0.2s ease;
}

.s-color:hover::before {
  opacity: 1;
}

/* Styles the floating copy button */
.scale-copy-icon {
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(5px);
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent black */
  color: white;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.s-color:hover .scale-copy-icon {
  opacity: 1;
  transform: translateY(0); /* Slides up perfectly */
}
.scale-block span {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
}

/* --- CTA BANNER --- */
.cta-banner {
  background: var(--accent-light);
  border-radius: var(--radius-md);
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #e9d5ff;
}
.cta-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.cta-icon-wrapper {
  background: #ffffff;
  color: var(--accent);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
}
.cta-text h3 {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 4px;
}
.cta-text p {
  font-size: 14px;
  color: var(--text-muted);
}
.cta-btn {
  background: var(--accent);
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}
.cta-btn:hover {
  opacity: 0.9;
}
/* Hide mobile nav toggle on desktop */
.mobile-nav-toggle {
  display: none;
}

/* --- RESPONSIVE DESIGN (Intact Media Queries) --- */
@media (max-width: 1200px) {
  .info-grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .content-wrapper {
    flex-direction: column;
    padding: 24px 16px;
  }
  .color-sidebar {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
  }
  /* On tablets, split the sidebar content into 2 columns */
  .sidebar-header, .sidebar-search {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }
  .color-nav-list {
    margin-bottom: 0;
  }
  .scale-grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .color-sidebar {
    grid-template-columns: 1fr;
    padding: 16px 16px 0 16px; /* Adjusted padding to pull content closer */
  }
  
  /* 1. Hide the large promo card on mobile to save space */
  .sidebar-promo {
    display: none;
  }

  /* 2. Turn the long vertical list into a horizontal swipeable row! */
  .color-nav-list {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 8px; /* Slightly reduced to sit closer to the arrow */
    gap: 8px;
    margin-bottom: 0;
    -webkit-overflow-scrolling: touch; /* Smooth iOS swipe */
    scrollbar-width: none; /* Hide scrollbar Firefox */
  }
  
  /* Hide scrollbar for Chrome/Safari */
  .color-nav-list::-webkit-scrollbar {
    display: none; 
  }

  /* NEW: The Expanded State */
  .color-nav-list.expanded-nav {
    flex-wrap: wrap; /* Forces pills to wrap to the next line */
    overflow-x: visible; /* Disables horizontal scrolling */
  }

  /* 3. Style the list items as rounded "Chips/Pills" */
  .color-nav-list li {
    white-space: nowrap; /* Prevent text from wrapping to two lines */
    background: #f9fafb; /* Light gray background */
    border: 1px solid var(--border-light);
    border-radius: 100px; /* Pill shape */
    padding: 8px 16px;
  }
  
  .color-nav-list li:hover {
    background: #f3f4f6;
  }

  .color-nav-list li.active {
    background: var(--accent-light);
    border-color: transparent;
  }

  .mobile-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-muted); /* Subtle gray color */
    padding: 4px 0 16px 0;
    cursor: pointer;
    transition: color 0.2s;
  }

  .mobile-nav-toggle:hover {
    color: var(--accent); /* Changes to purple when tapped */
  }

  .mobile-nav-toggle svg {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); /* Smooth rotation */
  }

  /* Flips the arrow upside down when open */
  .mobile-nav-toggle.open svg {
    transform: rotate(180deg);
  }

  /* --- Keep your existing mobile grid rules --- */
  .shades-grid {
    grid-template-columns: 1fr 1fr;
  }
  .cta-banner {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  .cta-left {
    flex-direction: column;
  }
  .page-content {
    padding: 24px 16px;
  }
}

@media (max-width: 480px) {
  .shades-grid {
    grid-template-columns: 1fr;
  }
  .scale-row {
    flex-wrap: wrap;
    gap: 8px;
  }
  .scale-block {
    flex: 1 1 18%; /* allows up to 5 items per row to wrap cleanly */
  }
  .page-title h1 {
    font-size: 24px;
  }
}
.shade-top-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  /* CHANGED: This forces the dropdown to anchor to the top, so it never jumps! */
  align-items: flex-start; 
  margin-bottom: 12px;
  width: 100%;
  /* NEW: Adds a small buffer so 2-line text never accidentally touches the dropdown */
  gap: 12px;
}
.shade-top-row h3 {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 15px;
  font-weight: 550 !important;
  line-height: 1.5; /* Removes invisible top/bottom text spacing */
  display: flex;
  align-items: center;
}

.card-format-dropdown {
  position: relative;
  background: var(--bg-elevated, #f4e8fd);
  border-radius: var(--radius-sm, 8px);
}

.card-format-trigger {
  border: none;
  background: transparent;
  padding: 6px 10px;
  min-width: 75px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary, #1e1b4b);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  outline: none;
  font-family: inherit;
}

.card-format-options {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 90px;
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--border-color, rgba(0, 0, 0, 0.15));
  border-radius: var(--radius-sm, 8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  z-index: 100;
  display: flex;
  flex-direction: column;
  padding: 4px;
}

.card-format-options.hidden {
  display: none;
}

.card-format-options .custom-option {
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary, #1e1b4b);
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}

.card-format-options .custom-option:hover,
.card-format-options .custom-option.active {
  background: var(--bg-elevated, #f4e8fd);
  font-weight: 600;
}

.shade-code-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f9fafb;
  border: 1px solid var(--border-color, rgba(0, 0, 0, 0.15));
  padding: 8px 12px;
  border-radius: var(--radius-sm, 8px);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-primary, #1e1b4b);
  cursor: pointer;
  transition: border-color 0.2s;
  margin-top: auto;
}

.shade-code-box:hover {
  border-color: var(--accent, #8d18e7);
}
/* --- TOAST NOTIFICATION SYSTEM --- */
    .toast-wrapper {
      position: fixed;
      bottom: 32px;
      right: 32px;
      display: flex;
      flex-direction: column; 
      gap: 12px;
      z-index: 9999;
      pointer-events: none; /* Lets you click "through" the wrapper if empty */
    }

    .toast-notification {
      background: var(--bg-surface, #ffffff);
      border: 1px solid var(--border-color, rgba(0, 0, 0, 0.15));
      box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.15);
      border-radius: 100px;
      padding: 10px 20px 10px 14px;
      display: flex;
      align-items: center;
      gap: 10px;
      pointer-events: auto; /* Re-enables clicking on the actual toast */
      animation: slideInUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    .toast-notification span {
      font-size: 13px;
      font-weight: 500;
      color: var(--text-primary, #1e1b4b);
    }

    .toast-notification b {
      font-family: "JetBrains Mono", monospace, sans-serif;
      font-weight: 700;
    }

    .toast-icon {
      background: var(--accent);
      color: white;
      border-radius: 50%;
      width: 20px;
      height: 20px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .toast-notification.fade-out {
      animation: fadeOutDown 0.3s forwards;
    }

    @keyframes slideInUp {
      from { transform: translateY(20px); opacity: 0; }
      to { transform: translateY(0); opacity: 1; }
    }

    @keyframes fadeOutDown {
      from { transform: translateY(0); opacity: 1; }
      to { transform: translateY(20px); opacity: 0; }
    }

    /* Centers the toasts perfectly on mobile screens */
    @media (max-width: 900px) {
      .toast-wrapper {
        right: auto; 
        left: 50%; 
        transform: translateX(-50%); 
        bottom: 24px; 
        align-items: center; 
        width: max-content; 
      }
    }
.shade-active-code {
  font-family: "JetBrains Mono", monospace !important;
}
/* --- GLOBAL SEARCH SUGGESTIONS --- */
.global-search-results {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 24px;
  background: #ffffff;
  border: 1px solid var(--accent); /* Outlined in theme color to stand out */
  border-radius: var(--radius-md);
  padding: 8px;
  box-shadow: 0 8px 16px rgba(109, 40, 217, 0.1);
  animation: slideInDown 0.2s ease-out;
}
.global-results-header {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 8px;
}
.global-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  text-decoration: none;
  color: var(--text-main);
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}
.global-result-item:hover {
  background: var(--bg-app);
}
.g-color-swatch {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,0.1);
  flex-shrink: 0;
}
.g-color-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.g-color-info strong {
  font-size: 13px;
}
.g-color-info span {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: capitalize;
}
@keyframes slideInDown {
  from { transform: translateY(-10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
