/* Make flamegraph text more readable with white text and dark outline */
svg.d3-flame-graph text,
.d3-flame-graph text,
#profile-content-flamegraph text {
  fill: #fff !important;
  font-weight: 600 !important;
  paint-order: stroke fill !important;
  stroke: #000 !important;
  stroke-width: 3px !important;
  stroke-linejoin: round !important;
}

/* --- Visual Effect Styles --- */
.crt-effect::after {
  content: " ";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  /* Scanlines */
  background: linear-gradient(
    to bottom,
    rgba(18, 16, 16, 0) 50%,
    rgba(0, 0, 0, 0.25) 50%
  );
  background-size: 100% 4px;
  z-index: 2000;
  pointer-events: none;
  animation: crt-flicker 0.15s infinite;
}
.crt-effect::before {
  content: " ";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  /* Vignette */
  background: radial-gradient(ellipse at center, rgba(0,0,0,0) 50%, rgba(0,0,0,0.75) 100%);
  z-index: 2001;
  pointer-events: none;
}
@keyframes crt-flicker {
  0%, 100% { opacity: 0.75; }
  50% { opacity: 0.5; }
}
/* New Terminal Effect */
.terminal-effect {
  filter: hue-rotate(60deg) brightness(1.2);
  font-family: monospace !important;
}
.terminal-effect .CodeMirror, .terminal-effect #stats-panel {
  text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}
.terminal-effect::after {
  content: " ";
  display: block;
  position: absolute;
  top: 0; left: 0; bottom: 0; right: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 50%, rgba(0,0,0,0.4) 50%);
  background-size: 100% 3px;
  z-index: 2000;
  pointer-events: none;
}
/* --- New, Improved VHS Effect --- */
.vhs-effect {
  /* Apply a subtle blur and color shift to the whole screen */
  filter: blur(0.5px) saturate(0.9);
}
.vhs-effect::before, .vhs-effect::after {
  content: " ";
  display: block;
  position: absolute;
  top: 0; left: 0; bottom: 0; right: 0;
  z-index: 2001;
  pointer-events: none;
}
.vhs-effect::before {
  /* Scanlines */
  background: linear-gradient(to bottom, rgba(0,0,0,0) 50%, rgba(0,0,0,0.2) 50%);
  background-size: 100% 3px;
}
.vhs-effect::after {
  /* Rolling glitch bar */
  background: linear-gradient(to bottom, rgba(255,0,0,0.5), rgba(0,255,0,0.3), rgba(0,0,255,0.4));
  height: 10px;
  opacity: 0;
  animation: vhs-glitch 5s linear infinite;
}
@keyframes vhs-glitch {
  0% {
    opacity: 0.1;
    transform: translateY(-100%);
  }
  48% {
    opacity: 0.1;
  }
  50% {
    opacity: 0.8;
    height: 50px;
    transform: translateY(40vh);
  }
  52% {
    opacity: 0.1;
    height: 10px;
  }
  100% {
    opacity: 0.1;
    transform: translateY(100vh);
  }
}
/* --- End Visual Effect Styles --- */

body { font-family: sans-serif; margin: 0; background-color: #222; color: #eee; }
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  background-color: #1a1a1a;
  border-bottom: 1px solid #444;
  font-size: 1.2em;
  z-index: 1002; /* Ensure header is above any hidden modals AND their tooltips */
  font-weight: bold;
  flex-shrink: 0; /* Prevent header from shrinking */
}
header #version-span {
  font-size: 0.7em;
  color: #999;
  font-weight: normal;
  margin-left: 8px;
}
.engine-selector {
  font-size: 0.8em;
  font-weight: normal;
}
.engine-selector label {
  color: #aaa;
  margin-right: 8px;
}
.engine-selector select {
  padding: 4px;
  border-radius: 3px;
}
#help-indicator {
  font-size: 0.8em;
  margin-left: 15px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
}
#help-indicator:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(102, 126, 234, 0.4);
}
#settings-button {
  font-size: 0.8em;
  margin-left: 15px;
}
#clear-state-button {
  font-size: 0.8em;
  margin-left: 15px;
}
.main-container { display: flex; flex-direction: column; height: 100vh; }
.editor-pane {
  display: grid;
  grid-template-columns: 640px 6px 1fr; /* canvas | handle | editor */
  flex-grow: 1;
  overflow: hidden; /* Prevent content from overflowing */
}
/* New styles for Overlay Mode */
.editor-pane.overlay-mode {
  display: block; /* Disable grid layout */
  position: relative; /* Establish stacking context */
}
.editor-pane.overlay-mode .right-pane {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(20, 20, 20, var(--overlay-opacity, 0.8)); /* Use CSS variable for opacity */
}
.editor-pane.overlay-mode .CodeMirror {
  background: transparent !important; /* Override theme to see canvas underneath */
}
.editor-pane.overlay-mode #resize-handle {
  display: none; /* Hide the resizer in overlay mode */
}
/* When the editor is hidden, the canvas column takes up all the space */
.editor-pane.editor-hidden {
  grid-template-columns: 1fr;
}
/* Hide the handle and right pane when the parent has the .editor-hidden class */
.editor-pane.editor-hidden #resize-handle,
.editor-pane.editor-hidden .right-pane {
  display: none;
}
.right-pane {
  display: flex; flex-direction: column; flex: 1; min-width: 0;
  /* Make this container scroll, not CodeMirror itself */
  overflow-y: auto;
}
#resize-handle {
  width: 6px;
  background-color: #444;
  cursor: col-resize;
  user-select: none; /* Prevent text selection during drag */
}
#shader-canvas {
  background-color: black;
  width: 100%; /* Fill the grid cell width */
  aspect-ratio: 640 / 480; /* Maintain aspect ratio based on height */
  /* The canvas will now fill the 640px width and its height will adjust based on aspect-ratio */
  /* This ensures the editor always has space */
  image-rendering: pixelated; /* For crisp pixels when resizing */
}
/* CodeMirror styling */
.CodeMirror {
  flex-grow: 1; /* Allow editor to take up available space */
  /* Let the editor grow to its full content height */
  height: auto;
  font-family: monospace;
  font-size: 14px;
}
#editor-status-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* Align items to the left */
  flex-shrink: 0;
  /* Match the background of the success/error panel */
  background-color: #2a4a3a;
  gap: 20px; /* Add space between the status text and buttons */
}
#editor-actions {
  padding: 5px;
  display: flex;
  gap: 10px;
}
#error-panel {
  padding: 10px;
  flex-shrink: 0; /* Prevent the error panel from shrinking away */
  white-space: pre-wrap; /* Wrap long error messages */
}
#error-panel.error {
  background-color: #5c2828; /* Dark red for errors */
  color: #ffc2c2;
}
#error-panel.success {
  background-color: #2a4a3a;
  color: #b3ffb3;
}
#stats-panel {
  flex-shrink: 0;
  padding: 10px;
  background-color: #333;
  font-family: monospace;
  white-space: pre;
}
#controls-bar {
  padding: 8px 15px;
  background-color: #282828;
  border-top: 1px solid #444;
  flex-shrink: 0;
  /* New styles for grouping */
  display: flex;
  align-items: center;
  gap: 25px; /* Spacing between groups */
}
#controls-bar button {
  padding: 5px 12px;
  background-color: #555;
  color: #eee;
  border: 1px solid #666;
  cursor: pointer;
  font-size: 0.9em;
  border-radius: 3px;
  transition: transform 0.05s ease-in-out;
}
#controls-bar button:active {
  transform: translateY(1px); /* Give a "pressed" effect */
  background-color: #4a4a4a; /* Slightly darken the button */
}
#controls-bar select {
  padding: 5px;
  background-color: #555;
  color: #eee;
}
/* Styles for the ON/OFF status indicator inside the button */
.perf-status {
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: bold;
  margin-left: 5px;
}
.perf-status-on {
  background-color: #2a4a3a; /* Subtle green from success panel */
  color: #b3ffb3;
}
.perf-status-off {
  background-color: #5c2828; /* Subtle red from error panel */
  color: #ffc2c2;
}
.control-group {
  display: flex;
  align-items: center;
  gap: 10px; /* Spacing within a group */
  /* Visual cue for grouping */
  background-color: #333;
  padding: 5px 10px;
  border-radius: 5px;
  border: 1px solid #444;
}
.control-group-title {
  font-size: 0.8em;
  color: #999;
  text-transform: uppercase;
  margin-right: 5px; /* Space between title and first control */
  font-weight: bold;
}
#overlay-opacity-slider {
  width: 50px; /* Make the slider much smaller */
  margin: 0 5px;
}
/* Style the slider thumb to be smaller */
#overlay-opacity-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  cursor: pointer;
}

/* Modal styles for the profiler */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.modal-content {
  background-color: #333;
  padding: 20px;
  border-radius: 5px;
  width: 90%;
  height: 90%;
  overflow: auto;
  position: relative;
}
.modal-close-button {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 2em;
  cursor: pointer;
}
.profile-summary {
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #555;
  font-size: 0.9em;
  display: flex;
  gap: 20px;
}
.profile-summary span {
  color: #ccc;
}
.profile-summary strong {
  color: #fff;
}
.graph-controls {
  margin-left: auto; /* Push controls to the right */
}
.graph-controls button {
  padding: 2px 8px;
  font-size: 1.2em;
  font-weight: bold;
}
.profiler-tabs {
  display: flex;
  border-bottom: 1px solid #555;
  margin-bottom: 15px;
}
.profiler-tab {
  padding: 10px 15px;
  cursor: pointer;
  border: none;
  background: none;
  color: #aaa;
  font-size: 1em;
}
.profiler-tab.active {
  color: #fff;
  border-bottom: 2px solid #ffc980;
}
.profiler-tab:disabled {
  color: #666;
  cursor: not-allowed;
  opacity: 0.6;
}
.profiler-tab-content {
  display: none;
}
.profiler-tab-content.active {
  display: block;
}
/* --- Middle Tab Styles (between top-level and inner tabs) --- */
.middle-tabs {
  display: flex;
  border-bottom: 2px solid #555;
  margin-bottom: 15px;
  gap: 5px;
}
.middle-tab {
  padding: 10px 16px;
  cursor: pointer;
  border: none;
  background: #333;
  color: #aaa;
  font-weight: 500;
  border-radius: 4px 4px 0 0;
}
.middle-tab.active {
  color: #fff;
  background: #444;
  border-bottom: 3px solid #ffc980;
}
.middle-tab:hover {
  background: #3a3a3a;
}
.middle-tab-content { 
  display: none; 
  padding: 10px 0;
}
.middle-tab-content.active { display: block; }
.middle-tab-header {
  margin-bottom: 10px;
  padding: 8px;
  background: #2a2a2a;
  border-left: 3px solid #ffc980;
  font-size: 11px;
  color: #aaa;
}

/* --- Inner Tab Styles --- */
.inner-tabs {
  display: flex;
  border-bottom: 1px solid #444;
  margin-bottom: 10px;
}
.inner-tab {
  padding: 8px 12px;
  cursor: pointer;
  border: none;
  background: none;
  color: #999;
}
.inner-tab.active {
  color: #fff;
  border-bottom: 2px solid #ffc980;
}
.inner-tab-content { display: none; }
.inner-tab-content.active { display: block; }
.inner-tab-info {
  margin-bottom: 10px;
  padding: 6px 10px;
  background: #2a2a2a;
  border-left: 3px solid #666;
  font-size: 11px;
  color: #999;
}

/* --- Export Button Styles --- */
.export-buttons {
  display: inline-flex;
  gap: 10px;
}
.export-btn {
  padding: 4px 10px;
  font-size: 0.9em;
  background-color: #0066cc;
  color: white;
  border: none;
  border-radius: 3px;
  cursor: pointer;
}
.export-btn:hover { background: #0088ff; }
#profile-container pre {
  white-space: pre; /* Preserve formatting from EXPLAIN ANALYZE */
  font-size: 12px; /* Make text a bit smaller to fit more */
}
/* Ensure nested pre tags inside details maintain same font size */
#profile-container details pre {
  font-size: 12px;
  margin: 0;
  padding: 0;
}
#profile-content-flamegraph {
  background-color: #2a2a2a;
  border-radius: 3px;
}
/*
 * Forcefully style the text inside Mermaid nodes. The 'dark' theme creates
 * light-colored nodes, but our global body color can make the text invisible.
 * We target the native SVG <text> element which uses `fill` for color.
 * Only apply to Mermaid graphs, not flamegraphs.
 */
#profile-container svg:not(.d3-flame-graph) text {
  fill: #000 !important;
}
/* Color coding for profiler timings */
.time-hot {
  color: #ff8080; /* Red for slow */
  font-weight: bold;
}
.time-warm {
  color: #ffc980; /* Orange for medium */
}
.time-good {
  color: #80ff80; /* Green for fast/unconcerning */
}
/* Styles for the structured profiler view */
.profiler-node details {
  border-left: 2px solid #555;
  padding-left: 20px;
  margin-left: 20px;
}
.profiler-node summary {
  cursor: pointer;
  padding: 5px;
  background-color: #3a3a3a;
  border-radius: 3px;
  margin-bottom: 5px;
  font-family: monospace;
}
.profiler-node summary:hover {
  background-color: #4a4a4a;
}
/* Styles for the settings modal form */
.settings-form-group {
  margin-bottom: 15px;
}
.settings-form-group label {
  display: block;
  margin-bottom: 5px;
}
.settings-form-group input {
  width: 100%;
  padding: 8px;
  background-color: #444;
  border: 1px solid #666;
  color: #eee;
  border-radius: 3px;
}
/* Style for confirmation buttons in modals */
.modal-content button {
  padding: 10px 15px;
  margin-right: 10px;
  border-radius: 3px;
  cursor: pointer;
  border: 1px solid #666;
  font-size: 1em;
}
#share-link-input {
  width: calc(100% - 20px);
  padding: 8px;
  margin-bottom: 15px;
}
/* --- New Performance Bar Styles --- */
#performance-bar {
  display: flex;
  align-items: flex-start;
  background-color: #1a1a1a;
  border-top: 1px solid #444;
  padding: 5px 15px;
  gap: 20px;
  flex-shrink: 0;
  font-family: monospace;
  font-size: 12px;
}
.perf-section {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.perf-section-title {
  color: #aaa;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 11px;
  padding-left: 2px;
}
.perf-chart-container {
  background-color: #282828;
  border: 1px solid #444;
}
#engine-stats-container {
  font-family: monospace;
  font-size: 11px;
  color: #ccc;
}
#engine-stats-content {
  display: grid;
  grid-template-columns: repeat(4, minmax(100px, 1fr)); /* 4 columns for 7 stats */
  grid-template-rows: repeat(2, auto); /* Max 2 entries per column */
  grid-auto-flow: column; /* Fill columns first */
  gap: 3px 15px;
}
.engine-stat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  background-color: #282828;
  padding: 3px 6px;
  border-radius: 3px;
  border: 1px solid #444;
  white-space: nowrap; /* Prevent text wrapping */
  overflow: hidden; /* Hide overflow */
}
.stat-text {
  flex-grow: 1; /* Allow text to take available space */
  display: flex;
  justify-content: space-between; /* Pushes label and value apart */
  gap: 6px; /* Add gap between label and value */
  min-width: 0; /* Allow shrinking below content size */
}
.stat-label {
  flex-shrink: 0; /* Don't shrink labels */
  overflow: hidden;
  text-overflow: ellipsis;
}
.stat-value {
  flex-shrink: 0; /* Don't shrink values */
  font-weight: bold;
}
.stat-value {
  font-weight: bold;
  color: #fff;
  min-width: 60px; /* Give the value a fixed minimum width */
  text-align: right; /* Align the text to the right */
}
.sparkline-canvas {
  width: 60px;
  height: 20px;
}
.cpu-core-chart-wrapper {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
#cpu-core-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 10px;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 4px;
}
.legend-color-box {
  width: 10px;
  height: 10px;
}

/* --- Styles for Asset Manager Modal --- */
#asset-manager-modal .modal-content {
  width: 80%;
  max-width: 1200px;
}
#asset-list-container { /* This is now a flex column container for rows */
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
  max-height: 75vh;
  overflow-y: auto;
}
.asset-item { /* This is now a row */
  display: grid;
  grid-template-columns: 160px 1fr 2fr; /* Thumbnail | Name | Description */
  gap: 15px;
  align-items: center;
  background-color: #444;
  padding: 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.15s ease;
  border: 1px solid #555;
}
.asset-item:hover {
  background-color: #5a5a5a;
}
.asset-item-running {
  background-color: #2a4a2a;
  border: 2px solid #4a8;
}
.asset-item-running:hover {
  background-color: #355535;
}
.asset-thumbnail {
  width: 160px;
  height: 120px;
  background-color: #2a2a2a;
  border: 1px solid #555;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.asset-item:hover .asset-thumbnail {
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(100, 200, 255, 0.5);
  border-color: #6cf;
}
.asset-thumbnail-static {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #2a2a2a;
  color: #777;
  font-size: 0.8em;
  text-align: center;
}
.asset-thumbnail canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  z-index: 10;
}
.asset-name {
  font-weight: bold;
}
.asset-description {
  font-size: 0.9em;
  color: #ccc;
}
#shader-select-button {
  min-width: 200px; /* Give it enough space to show shader names */
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- Refined Styles for Unsaved Changes Modal --- */
#unsaved-changes-modal .modal-content {
  border: 1px solid #555;
}
#unsaved-changes-modal h3 {
  font-size: 1.2em; /* Smaller header text */
  margin: 0;
}
#unsaved-changes-modal p {
  font-size: 1em; /* Smaller body text */
  color: #ccc;
  margin: 15px 0 0 0;
}
#unsaved-changes-modal .modal-footer button {
  /* Override generic modal button styles for a more compact look */
  font-size: 0.9em;
  padding: 6px 14px;
  margin: 0; /* Remove the default margin-right */
  border: 1px solid #666;
  transition: background-color 0.15s ease;
}
#unsaved-changes-modal .button-secondary {
  background-color: #555; /* A solid, neutral background */
  border: 1px solid #777;
}
#unsaved-changes-modal .button-destructive {
  background-color: #555; /* Same solid, neutral background */
  border: 1px solid #777;
}

/* --- Help Overlay System --- */
#help-overlay-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); /* Reduced from 0.7 to 0.4 - less dimming */
  backdrop-filter: blur(1px); /* Reduced from 2px to 1px */
  z-index: 9998;
  animation: fadeIn 0.2s ease;
}

#help-overlay-banner {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #ffc980 0%, #ff8c42 100%);
  color: #000;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 14px;
  box-shadow: 0 4px 20px rgba(255, 201, 128, 0.4);
  z-index: 10001;
  animation: slideDown 0.3s ease;
}

.help-annotation {
  position: fixed;
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
  border: 2px solid #ffc980;
  color: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  max-width: 300px;
  font-size: 13px;
  line-height: 1.5;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  z-index: 10000;
  cursor: pointer;
  animation: popIn 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transition: transform 0.2s ease, box-shadow 0.2s ease, z-index 0s;
}

.help-annotation:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 40px rgba(255, 201, 128, 0.3);
  z-index: 10002; /* Bring to front on hover - above banner */
}

.help-annotation::before {
  content: '💡';
  margin-right: 8px;
  font-size: 16px;
}

.help-annotation::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border: 8px solid transparent;
}

/* Arrow positions */
.help-annotation.position-right::after {
  left: -16px;
  top: 50%;
  transform: translateY(-50%);
  border-right-color: #ffc980;
}

.help-annotation.position-left::after {
  right: -16px;
  top: 50%;
  transform: translateY(-50%);
  border-left-color: #ffc980;
}

.help-annotation.position-bottom::after {
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  border-bottom-color: #ffc980;
}

.help-annotation.position-top::after {
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  border-top-color: #ffc980;
}

/* Styling for HTML elements inside help annotations */
.help-annotation strong {
  color: #ffc980;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(255, 201, 128, 0.3);
}

.help-annotation em {
  color: #ffdd99;
  font-style: italic;
}

.help-annotation code {
  background: rgba(255, 201, 128, 0.15);
  color: #ffd480;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: 12px;
}

.help-highlight {
  position: fixed;
  border: 2px solid #ffc980;
  border-radius: 4px;
  pointer-events: none;
  z-index: 9999;
  animation: pulseSubtle 3s ease-in-out infinite;
  box-shadow: 
    0 0 0 2px rgba(255, 201, 128, 0.15),
    0 0 10px rgba(255, 201, 128, 0.25),
    inset 0 0 20px rgba(255, 201, 128, 0.08);
  background: rgba(255, 201, 128, 0.05);
  transition: all 0.3s ease;
}

/* Active state when hovering over the annotation tooltip */
.help-highlight-active {
  border-width: 4px;
  z-index: 10001; /* Bring above other highlights */
  animation: pulseFast 1s ease-in-out infinite;
  box-shadow: 
    0 0 0 8px rgba(255, 201, 128, 0.5),
    0 0 40px rgba(255, 201, 128, 0.8),
    inset 0 0 50px rgba(255, 201, 128, 0.35);
  background: rgba(255, 201, 128, 0.2);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideDown {
  from {
    transform: translateX(-50%) translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

@keyframes popIn {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes pulseSubtle {
  0%, 100% {
    box-shadow: 
      0 0 0 2px rgba(255, 201, 128, 0.15),
      0 0 10px rgba(255, 201, 128, 0.25),
      inset 0 0 20px rgba(255, 201, 128, 0.08);
  }
  50% {
    box-shadow: 
      0 0 0 3px rgba(255, 201, 128, 0.2),
      0 0 15px rgba(255, 201, 128, 0.35),
      inset 0 0 25px rgba(255, 201, 128, 0.12);
  }
}

@keyframes pulseFast {
  0%, 100% {
    box-shadow: 
      0 0 0 8px rgba(255, 201, 128, 0.5),
      0 0 40px rgba(255, 201, 128, 0.8),
      inset 0 0 50px rgba(255, 201, 128, 0.35);
  }
  50% {
    box-shadow: 
      0 0 0 12px rgba(255, 201, 128, 0.6),
      0 0 50px rgba(255, 201, 128, 1.0),
      inset 0 0 60px rgba(255, 201, 128, 0.45);
  }
}
