/* Custom styles for the Image Cropper application */

/* .dpi-warning {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 200, 0, 0.9);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: bold;
  z-index: 1000;
  pointer-events: none;
} */

html, body {
  height: 100%;
  overflow: hidden;
}

/* --- Header Styling --- */
header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1030;
  background-color: #fff;
  height: 90px;
  /* border-bottom: 6px solid #FFD100; */
  transform: translateZ(0); /* or transform: translate3d(0, 0, 0); */
}

/* --- Main Content Area Below Header --- */
.container-fluid.flex-grow-1 {
  margin-top: calc(90px + 0px);
  height: calc(100vh - (90px + 6px));
  /* REMOVE THIS LINE: d-flex flex-column; */
}

/* Ensure the row inside container-fluid takes full height */
.container-fluid > .row {
  height: 100%;
}

/* --- Sidebar Styling --- */
.sidebar {
  background-color: #181818;
  border-right: 1px solid #272727;
  height: 100%;
}

.sidebar > .d-flex.flex-column.flex-grow-1 {
  /* No additional styling needed here */
}

.sidebar > .d-flex.flex-column.flex-grow-1 > .p-2.flex-grow-1.d-flex.flex-column {
  overflow-y: auto;
}

/* Sidebar Footer */
.sidebar-footer {
  background-color: #181818;
  padding-top: 1rem;
  border-top: 1px solid #272727;
}

/* --- Tab / Pill Styling --- */
.nav-pills .outline-pill {
  color: #fff;
  background-color: transparent;
  border: 1px solid #272727;
  border-radius: var(--bs-nav-pills-border-radius);
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.nav-pills .outline-pill:hover {
  color: #FFD100;
  border-color: #FFD100;
  background-color: transparent;
}

.nav-pills .outline-pill.active {
  color: #000;
  background-color: #FFD100;
  border-color: #FFD100;
}

.nav-pills .outline-pill:focus,
.nav-pills .outline-pill.focus {
  box-shadow: 0 0 0 0.25rem rgba(255, 209, 0, 0.5);
}

/* New: Tab content border and rounding */
.tab-content {
  border: 1px solid #272727; /* Your requested border color and thickness */
  border-radius: var(--bs-border-radius-lg); /* Use Bootstrap's large border-radius variable */
  /* Or a specific value like 0.5rem if you prefer */
}

/* --- Responsive Adjustments --- */
@media (max-width: 767.98px) {
  header {
    position: static;
    height: auto;
    padding-bottom: 15px;
    border-bottom: none;
  }

  .container-fluid.flex-grow-1 {
    margin-top: 0;
    height: auto;
  }

  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #272727;
    height: auto;
  }

  .sidebar > .d-flex.flex-column.flex-grow-1 > .p-2.flex-grow-1.d-flex.flex-column {
    overflow-y: visible;
  }
}

/* --- Input Field Styling (applied to input and select) --- */
.form-dark .form-control {
  background-color: #242424; /* Your desired background for input fields */
  /* border: 1px solid #272727; */ /* Your desired border color and thickness */
  color: #E0E0E0; /* Example: A light gray text color for better readability on dark background */
}

/* Ensure the label also has the correct colors */
/* This rule is crucial to make the label text visible on your dark background */
.form-dark .form-floating > label {
  color: #B0B0B0; /* Or #E0E0E0 for better visibility */
}

/* To maintain the floating label functionality, you need to override Bootstrap's styles
   by using a more specific selector without breaking the sibling relationship.
   You can specifically target the "floated" label state for your custom colors.
*/
.form-dark .form-floating > .form-control:focus ~ label,
.form-dark .form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-dark .form-floating > .form-control-plaintext ~ label,
.form-dark .form-floating > .form-select ~ label {
  color: #FFD100; /* Change the text color of the floating label to your accent color */
}

/* The background of the label when it floats is an important part of the effect.
   You might need to override this as well to match your dark theme. */
.form-dark .form-floating > .form-control:focus ~ label::after,
.form-dark .form-floating > .form-control:not(:placeholder-shown) ~ label::after,
.form-dark .form-floating > .form-control-plaintext ~ label::after,
.form-dark .form-floating > .form-select ~ label::after {
  background-color: #242424; /* Make the label background match the input background */
}

/* Ensure placeholder text is also visible */
.form-dark .form-floating .form-control::placeholder {
  color: #B0B0B0; /* Slightly darker than text color, for contrast */
  opacity: 0; /* Firefox default makes placeholder transparent, so override this */
}

.form-dark .form-control::placeholder {
  color: #B0B0B0; /* Slightly darker than text color, for contrast */
  opacity: 1; /* Firefox default makes placeholder transparent, so override this */
}

/* Focus state for accessibility and interactivity */
.form-dark .form-control:focus {
  background-color: #242424; /* Keep background consistent on focus */
  border-color: #FFD100; /* Use your accent color for focus border */
  box-shadow: 0 0 0 0.25rem rgba(255, 209, 0, 0.25); /* Subtle gold focus ring */
  color: #E0E0E0; /* Keep text color consistent */
}

/* For disabled fields */
.form-dark .form-control:disabled {
  background-color: #1A1A1A; /* Even darker to signify disabled state */
  border-color: #1F1F1F;
  opacity: 0.7; /* Slightly dim it */
}

/* --- Toolbar Overlay Border --- */
.form-dark .border-custom-dark {
  border: 1px solid #272727; /* 1px solid border with your specified dark gray color */
}

/* --- Custom Styling for Range Slider (Thumb and Track) --- */
/* Base styling for the track */
.form-dark .form-range {
  /* Ensure the track is dark to match your theme */
  --bs-range-track-bg: #333; /* Darker track background */
  --bs-range-track-height: .4rem; /* Slightly thicker track */
}

/* Styling for the slider thumb (the "dot") */
.form-dark .form-range::-webkit-slider-thumb {
  background-color: #FFD100; /* Gold color for the thumb */
  border: 1px solid #FFD100; /* Match border to thumb color */
  width: 1.2rem; /* Slightly larger thumb */
  height: 1.2rem; /* Slightly larger thumb */
  margin-top: -0.45rem; /* Adjust vertical position to center on track */
}

.form-dark .form-range::-moz-range-thumb {
  background-color: #FFD100; /* Gold color for the thumb */
  border: 1px solid #FFD100; /* Match border to thumb color */
  width: 1.2rem; /* Slightly larger thumb */
  height: 1.2rem; /* Slightly larger thumb */
}

/* Styling for the filled portion of the track (before the thumb) */
.form-dark .form-range::-webkit-slider-runnable-track {
  background: #555; /* Darker track color for the filled part */
}

.form-dark .form-range::-moz-range-track {
  background: #555; /* Darker track color for the filled part */
}

/* Ensure the fill color before the thumb is also gold or a contrasting color */
.form-dark .form-range::-webkit-fill-lower-track {
  background-color: #FFD100; /* Gold fill for the track before the thumb */
}

.form-dark .form-range::-moz-range-progress {
  background-color: #FFD100; /* Gold fill for the track before the thumb (Firefox) */
}

/* --- Specific styling for <select> when using form-control --- */
.form-dark .form-select { /* Targeting Bootstrap's form-select class */
  /* This is crucial to remove default browser styling for the select box */
  -webkit-appearance: none; /* For Chrome, Safari */
  -moz-appearance: none;    /* For Firefox */
  appearance: none;         /* Standard property */

  /* Add padding to account for custom arrow if you implement one */
  padding-right: 2.5rem; /* Adjust as needed to make space for an arrow icon */

  /* You might want a slightly different line-height for select */
  line-height: 1.5; /* Or a specific value like 2.375rem if you match Bootstrap's input height */
}

/* --- Styling for the dropdown arrow --- */
/* This is where it gets tricky. We'll hide the native arrow and add a custom one. */
.form-dark .form-select {
  background-color: #242424 !important;
  /* border: 1px solid #272727; */ /* Outer border */
}

.form-dark .form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23e0e0e0' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center; /* Position the arrow */
  background-size: 1rem 1rem; /* Size the arrow */
}

/* Optional: Styles for the options within the dropdown */
/* This is very limited and browser-dependent */
.form-dark .form-select option {
  background-color: #242424 !important; /* Try to match the select box background */
  color: #E0E0E0 !important; /* Text color for options */
}

.form-dark .form-select option:hover {
  background-color: #333333 !important; /* Hover effect for options */
  color: #FFD100 !important; /* Text color on hover */
}

.form-dark .form-select:focus {
  border-color: #FFD100; /* Use your accent color for the border */
  outline: 0; /* Remove the default browser outline */
  box-shadow: 0 0 0 0.25rem rgba(255, 209, 0, 0.25); /* Your custom focus ring color and size */
}

/* Example with multiple box-shadows for a layered look */
.box-multiple-inset-borders {
  padding: 5px 7px;
  border: 1px solid #272727; /* Outer border */
  background-color: #181818; /* Add a background color so the borders are visible against something */

  box-shadow:
    /* Layer 1 (on top): The innermost, thinnest border */
    inset 0 0 0 5px #000,         /* Black, 1px thick */

    /* Layer 2 (beneath Layer 1): The next border.
       Its spread radius needs to be the thickness of Layer 1 (1px) + its own thickness (5px) = 6px total spread.
       Or, if you want it *just* outside the 1px, make its spread just 1px more than the one before it. */
    inset 0 0 0 6px #272727;      /* Dark Gray, appears 1px outside the black, total spread of 6px */
}

.output-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between; /* if you add more blocks later */
  align-items: center;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.05);
  color: #fff;
  font-family: monospace;
  font-size: 13px;
  z-index: 999;
  pointer-events: none;
  user-select: none;
}

/* DPI + Zoom block fade-in */
.zoom-dpi-block {
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}

.zoom-dpi-block.hidden {
  opacity: 0;
}

.quality-badge {
  margin-left: 8px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 8px;
  font-size: 0.8em;
  transition: color 0.3s ease;
  transition: opacity 0.5s ease-in-out;
}

.quality-badge.hidden {
  opacity: 0;
}

.quality-badge.excellent {
  color: #4CAF50; /* Green */
}

.quality-badge.good {
  color: #FFC107; /* Amber */
}

.quality-badge.low {
  color: #F44336; /* Red */
}

.text-gold {
  color: #ffd100;
}

/* ============================================================================
   REAL-TIME QUALITY FEEDBACK FOR SIZE INPUTS
   ============================================================================ */

/* Quality badge container */
.size-quality-badge {
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.9em;
  background: #f8f9fa;
  border-left: 3px solid #ccc;
  display: none; /* Hidden by default */
  animation: fadeIn 0.2s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Quality indicator */
.quality-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

/* Quality-specific colors for badge */
.quality-indicator.quality-excellent {
  color: #4CAF50;
}

.size-quality-badge .quality-indicator.quality-excellent {
  border-left-color: #4CAF50;
}

.quality-indicator.quality-good {
  color: #8BC34A;
}

.size-quality-badge .quality-indicator.quality-good {
  border-left-color: #8BC34A;
}

.quality-indicator.quality-acceptable {
  color: #FFC107;
}

.size-quality-badge .quality-indicator.quality-acceptable {
  border-left-color: #FFC107;
}

.quality-indicator.quality-fair {
  color: #FF9800;
}

.size-quality-badge .quality-indicator.quality-fair {
  border-left-color: #FF9800;
}

.quality-indicator.quality-poor {
  color: #F44336;
}

.size-quality-badge .quality-indicator.quality-poor {
  border-left-color: #F44336;
}

/* Recommendation section */
.quality-recommendation {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid #ddd;
  font-size: 0.85em;
  color: #666;
}

/* Quality icon styling */
.quality-icon {
  font-size: 1.1em;
  font-weight: bold;
}

/* Input border colors based on quality */
input.quality-excellent {
  border-color: #4CAF50 !important;
  box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.15);
}

input.quality-good {
  border-color: #8BC34A !important;
  box-shadow: 0 0 0 0.2rem rgba(139, 195, 74, 0.15);
}

input.quality-acceptable {
  border-color: #FFC107 !important;
  box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.15);
}

input.quality-fair {
  border-color: #FF9800 !important;
  box-shadow: 0 0 0 0.2rem rgba(255, 152, 0, 0.15);
}

input.quality-poor {
  border-color: #F44336 !important;
  box-shadow: 0 0 0 0.2rem rgba(244, 67, 54, 0.15);
}

/* Focus states for quality inputs */
input.quality-excellent:focus {
  border-color: #4CAF50 !important;
  box-shadow: 0 0 0 0.25rem rgba(76, 175, 80, 0.25);
}

input.quality-good:focus {
  border-color: #8BC34A !important;
  box-shadow: 0 0 0 0.25rem rgba(139, 195, 74, 0.25);
}

input.quality-acceptable:focus {
  border-color: #FFC107 !important;
  box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25);
}

input.quality-fair:focus {
  border-color: #FF9800 !important;
  box-shadow: 0 0 0 0.25rem rgba(255, 152, 0, 0.25);
}

input.quality-poor:focus {
  border-color: #F44336 !important;
  box-shadow: 0 0 0 0.25rem rgba(244, 67, 54, 0.25);
}

.text-gold {
  color: #ffd100;
}

.btn-gold {
  color: #000; /* Or a dark color for contrast */
  background-color: #FFD700; /* A common gold hex code */
  border-color: #FFD700;
}

.btn-gold:hover {
  color: #000;
  background-color: #e6c200; /* Slightly darker gold on hover */
  border-color: #e6c200;
}

.btn-gold:focus,
.btn-gold.focus {
  color: #000;
  background-color: #e6c200;
  border-color: #e6c200;
  box-shadow: 0 0 0 0.25rem rgba(255, 215, 0, 0.5); /* Gold focus ring */
}

.btn-gold.disabled,
.btn-gold:disabled {
  color: #000;
  background-color: #FFD700;
  border-color: #FFD700;
  opacity: 0.65;
}

.btn-gold:active,
.btn-gold.active {
  color: #000;
  background-color: #e6c200;
  border-color: #e6c200;
}

.btn-outline-gold {
color: #FFD100;
border-color: #FFD100;
background-color: transparent; /* Make the background transparent for an outline effect */
}

.btn-outline-gold:hover {
color: #000; /* Or a dark contrasting color */
background-color: #FFD100;
border-color: #FFD100;
}

.btn-outline-gold:focus,
.btn-outline-gold.focus {
box-shadow: 0 0 0 0.25rem rgba(255, 209, 0, 0.5); /* Gold focus ring */
}

.btn-outline-gold:disabled,
.btn-outline-gold.disabled {
color: #FFD100;
background-color: transparent;
border-color: #FFD100;
opacity: 0.65;
}

.btn-outline-gold:active,
.btn-outline-gold.active {
color: #000;
background-color: #FFD100;
border-color: #FFD100;
}

/* Loading Indicator */
#loadingIndicator {
    position: fixed; /* Use fixed to cover the entire viewport */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex; /* Toggled via JS */
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.8); /* Slightly more opaque overlay */
    z-index: 1000; /* Ensure it's on top of everything */
    pointer-events: none; /* Allows underlying elements to remain clickable */
    transition: opacity 0.3s ease-in-out; /* Smooth fade in/out */
    opacity: 0; /* Start hidden */
}

/* Spinner animation for the loading indicator */
#loadingIndicator.visible {
    opacity: 1; /* Fade in */
    pointer-events: auto; /* Allow interaction with the overlay when visible */
}

/* PIXI.js Canvas Container */
#pixi-container {
  width: 100%;
  height: 100%; /* Occupy full height of its flex parent */
  overflow: hidden;
  position: relative;
  display: flex; /* Use flex to center the canvas itself */
  justify-content: center;
  align-items: center;
}

/* Ensure the canvas itself fits the container */
#pixi-container canvas {
  width: 100% !important; /* Override PixiJS inline styles if necessary */
  height: 100% !important;
  display: block;
  object-fit: contain; /* Ensure the canvas content scales properly within its bounds */
}

/* CSS for Drag-and-Drop visual feedback */
#pixi-container.drag-over {
    border: 3px dashed #00aaff; /* Blue dashed border */
    background-color: rgba(0, 170, 255, 0.1); /* Light blue overlay */
}

#imageToolbar {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0; /* updated by JS */
  z-index: 100;
}

/* Gallery Image Styling for Bootstrap */
.gallery-item-bs {
    width: 100%;
    height: 96px; /* Fixed height for gallery items */
    object-fit: cover;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    border: 2px solid transparent; /* Default transparent border */
}

.gallery-item-bs:hover {
    border-color: #0d6efd; /* Bootstrap primary blue on hover */
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25); /* Bootstrap focus-ring like effect */
}

.gallery-item-bs.selected {
    border-color: #0d6efd; /* Bootstrap primary blue when selected */
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.5); /* Stronger blue glow for selected */
}

/* Custom Toast/Alert Styling */
.custom-toast {
    background-color: #343a40; /* Dark gray for info */
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
    min-width: 250px;
    text-align: center;
    margin-bottom: 0.5rem; /* Add spacing between toasts */
}

.custom-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.custom-toast.error {
    background-color: #dc3545; /* Bootstrap red */
}

.custom-toast.success {
    background-color: #28a745; /* Bootstrap green */
}

#drop-overlay {
  display: none;
  position: absolute;
  z-index: 1000;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(30,30,40,0.77);
  color: #fff;
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  /* Add 'display:flex' in showDropOverlay */
}
#pixi-container.dragover {
  outline: 3px dashed #ffd100;
  background: rgba(100,120,200,0.05);
}

/* Toolbar Toggles and Switches */

/* KEBAB MENU */
.ui-settings-menu {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2000;
  pointer-events: auto;
  background: none;
}

/* Your existing custom toggle-block styling */
.toggle-block {
    display: flex;
    flex-direction: column;
    background: #222831;
    padding: 0;
    border-radius: 14px;
    box-shadow: 0 1px 6px 0 rgba(0,0,0,0.13);
    width: 100%;
    box-sizing: border-box;
}

/* Specific styling for each form-switch to act like a list-group-item */
.dropdown-menu .form-switch {
    width: 100%;
    margin: 0;
    padding: 8px 16px; /* Padding for each item, matching dropdown-menu side padding */
    display: flex;
    align-items: center; /* Vertically center content */
    /* REMOVED: justify-content: space-between; */
    /* We will achieve separation by making the label grow and pushing the toggle */
    border-bottom: 1px solid rgba(255, 209, 0, 0.1);
    color: #e7ecf3;
    box-sizing: border-box;
}

/* Remove border-bottom from the last item to prevent an extra divider */
.dropdown-menu .form-switch:last-child {
    border-bottom: none;
}

/* Apply custom toggle-wrapper styles directly to the form-switch elements to avoid extra div */
.dropdown-menu .form-switch .form-check-input.custom-toggle-ffd100 {
    appearance: none;
    width: 38px;
    height: 20px;
    border-radius: 10px;
    background: #373d48;
    border: 2px solid #444c5a;
    position: relative;
    outline: none;
    cursor: pointer;
    transition: background 0.2s;
    margin-left: 0; /* Ensure no left margin pushes it */
    margin-right: 0; /* Ensure no right margin pushes it */
    flex-shrink: 0; /* Prevent the toggle input from shrinking */
    box-sizing: border-box;
    order: 2; /* Pushes the toggle to the end of the flex container */
}

.dropdown-menu .form-switch .form-check-input.custom-toggle-ffd100:checked {
    background: #FFD100;
    border-color: #e6b800;
}

.dropdown-menu .form-switch .form-check-input.custom-toggle-ffd100::before {
    content: '';
    display: block;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 6px #0002;
    position: absolute;
    transition: left 0.22s cubic-bezier(.4,2,.3,1), background 0.16s;
    top: 1px;
    left: 1px;
}

.dropdown-menu .form-switch .form-check-input.custom-toggle-ffd100:checked::before {
    left: 20px;
    background: #fff;
}

/* On focus, show subtle glow */
.dropdown-menu .form-switch .form-check-input.custom-toggle-ffd100:focus-visible {
    box-shadow: 0 0 0 2px #FFD100;
}

/* Label styling */
.dropdown-menu .form-check-label {
    font-size: 1rem;
    font-weight: 500;
    color: #e7ecf3;
    user-select: none;
    margin-right: 12px; /* Changed from margin-left to margin-right */
    flex-grow: 1; /* Allow label to take available space */
    text-align: left;
    white-space: nowrap; /* Crucial: Prevent text from wrapping */
    overflow: hidden; /* Hide overflow if text is too long */
    text-overflow: ellipsis; /* Add ellipsis if text is cut off */
    order: 1; /* Pushes the label to the start of the flex container */
    /* Remove max-width, flex-grow should handle the sizing */
}

/* Optional: hover effect for the entire switch item */
.dropdown-menu .form-switch:hover {
    background-color: rgba(255, 255, 255, 0.05);
    cursor: pointer;
}

.dropdown-menu .form-switch:hover .form-check-input.custom-toggle-ffd100 {
    border-color: #FFD100;
}

/* Your existing dropdown-menu styling */
.dropdown-menu {
    min-width: 220px; /* Increased min-width slightly for more breathing room */
    border-radius: 0.9rem;
    box-shadow: 0 8px 20px 2px rgba(0,0,0,0.08);
    border: 1px solid #ffd10020;
    padding: 0;
    background-color: #222831;
    overflow: hidden;
}

/* Your kebab button styles (unchanged) */
.kebab-btn {
    background-color: transparent;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 0.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 25px;
    height: 25px;
    position: relative;
    cursor: pointer;
}

.kebab-btn .dot {
    width: 4px;
    height: 4px;
    background-color: #ffd100;
    border-radius: 50%;
    margin-top: 1px;
    margin-bottom: 1px;
    flex-shrink: 0;
}

/* Remove the default caret from the dropdown toggle (unchanged) */
.dropdown-toggle::after {
    display: none !important;
}

.output-content-right {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 0.5em;
  pointer-events: auto;
}
.quality-badge {
  margin-left: 0.7em;
}


/* Toast UI Styles */ 

#toast-container {
  position: fixed;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.pixi-toast {
  background: rgba(32,32,32,0.97);
  color: #fff;
  border-radius: 7px;
  padding: 12px 24px;
  margin-top: 12px;
  font-size: 1.1em;
  min-width: 120px;
  max-width: 80vw;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.28);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.25s, transform 0.3s;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.pixi-toast.show {
  opacity: 1;
  transform: translateY(0);
}
.pixi-toast--error {
  background: #d84315;
}
.pixi-toast--warn {
  background: #ffa000;
  color: #222;
}
.pixi-toast--success {
  background: #388e3c;
}
.pixi-toast-action-btn {
  margin-left: 10px;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #ffd740;
  font-weight: bold;
  cursor: pointer;
  border-radius: 4px;
  padding: 3px 12px;
  transition: background 0.15s;
}
.pixi-toast-action-btn:hover {
  background: rgba(255,255,255,0.25);
}

#toast-container {
  position: fixed;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}

.pixi-toast {
  /* Your usual toast styles */
  background: rgba(32,32,32,0.97);
  color: #fff;
  border-radius: 7px;
  padding: 12px 24px;
  margin-top: 12px;
  font-size: 1.1em;
  min-width: 120px;
  max-width: 80vw;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.28);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.25s, transform 0.3s;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.pixi-toast.show {
  opacity: 1;
  transform: translateY(0);
}
/* Placement modifiers */
.pixi-toast-container.pixi-toast-placement-bottom {
  left: 50%;
  bottom: 32px;
  right: auto;
  top: auto;
  transform: translateX(-50%);
  align-items: center;
}
.pixi-toast-container.pixi-toast-placement-bottom-right {
  right: 32px;
  bottom: 32px;
  left: auto;
  top: auto;
  transform: none;
  align-items: flex-end;
}
.pixi-toast-container.pixi-toast-placement-bottom-left {
  left: 32px;
  bottom: 32px;
  right: auto;
  top: auto;
  transform: none;
  align-items: flex-start;
}
.pixi-toast-container.pixi-toast-placement-top {
  left: 50%;
  top: 32px;
  right: auto;
  bottom: auto;
  transform: translateX(-50%);
  align-items: center;
}
.pixi-toast-container.pixi-toast-placement-top-right {
  right: 32px;
  top: 32px;
  left: auto;
  bottom: auto;
  transform: none;
  align-items: flex-end;
}
.pixi-toast-container.pixi-toast-placement-top-left {
  left: 32px;
  top: 32px;
  right: auto;
  bottom: auto;
  transform: none;
  align-items: flex-start;
}

/* Size Input Mode Indicators */

/* Base input styling enhancements */
.form-control.aspect-locked,
.form-control.auto-fill-active,
.form-control.manual-mode {
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
}

/* Aspect Locked Mode */
.form-control.aspect-locked {
  border-color: #3b82f6 !important;
  background-color: #eff6ff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-control.aspect-locked:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

/* Auto-Fill Active Mode */
.form-control.auto-fill-active {
  border-color: #10b981 !important;
  background-color: #f0fdf4;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-control.auto-fill-active:focus {
  border-color: #059669 !important;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

/* Manual Mode (default) */
.form-control.manual-mode {
  border-color: #d1d5db;
  background-color: #ffffff;
}

.form-control.manual-mode:focus {
  border-color: #9ca3af;
  box-shadow: 0 0 0 3px rgba(156, 163, 175, 0.1);
}

/* Mode indicator badge (optional enhancement) */
.input-mode-badge {
  position: absolute;
  top: -8px;
  right: 8px;
  background: white;
  border: 1px solid currentColor;
  border-radius: 10px;
  padding: 2px 8px;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  pointer-events: none;
  z-index: 10;
}

.aspect-locked .input-mode-badge {
  color: #3b82f6;
  border-color: #3b82f6;
}

.auto-fill-active .input-mode-badge {
  color: #10b981;
  border-color: #10b981;
}

/* Icon indicators (can be added via JS) */
.input-with-icon {
  position: relative;
}

.input-with-icon .input-icon {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  pointer-events: none;
  opacity: 0.6;
}

.aspect-locked .input-icon {
  color: #3b82f6;
}

.auto-fill-active .input-icon {
  color: #10b981;
}

/* Tooltip enhancement for mode indicators */
.form-control[title]::after {
  content: '';
  /* Tooltip will be handled by browser's native title attribute */
}

/* Input group container adjustments */
.size-input-group {
  position: relative;
}

.size-input-group .input-mode-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: #6b7280;
}

.size-input-group .input-mode-indicator svg {
  width: 14px;
  height: 14px;
}

/* Lock icon for aspect locked */
.input-mode-indicator.aspect-locked {
  color: #3b82f6;
}

.input-mode-indicator.aspect-locked svg {
  color: #3b82f6;
}

/* Magic wand icon for auto-fill */
.input-mode-indicator.auto-fill {
  color: #10b981;
}

.input-mode-indicator.auto-fill svg {
  color: #10b981;
}

/* Animations */
@keyframes modeChange {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.form-control.mode-changed {
  animation: modeChange 0.3s ease-in-out;
}

/* Disabled state */
.form-control:disabled.aspect-locked,
.form-control:disabled.auto-fill-active {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .form-control.aspect-locked {
    background-color: #1e3a8a;
    border-color: #60a5fa;
  }

  .form-control.auto-fill-active {
    background-color: #064e3b;
    border-color: #34d399;
  }

  .form-control.manual-mode {
    background-color: #1f2937;
    border-color: #4b5563;
  }

  .input-mode-badge {
    background: #111827;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .input-mode-badge {
    font-size: 0.5rem;
    padding: 1px 6px;
  }

  .size-input-group .input-mode-indicator {
    font-size: 0.625rem;
  }
}

/* Size Suggestions Panel Styles */

.size-suggestions-panel {
  position: relative;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0;
  margin: 1rem 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.size-suggestions-panel.visible {
  max-height: 500px;
  opacity: 1;
  margin-bottom: 1.5rem;
}

/* Header */
.suggestions-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.suggestions-title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.suggestions-close {
  background: none;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s;
}

.suggestions-close:hover {
  background: #e5e7eb;
  color: #111827;
}

/* Subtitle */
.suggestions-subtitle {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  color: #6b7280;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

/* List Container */
.suggestions-list {
  padding: 1rem;
  max-height: 400px;
  overflow-y: auto;
}

/* Custom scrollbar */
.suggestions-list::-webkit-scrollbar {
  width: 6px;
}

.suggestions-list::-webkit-scrollbar-track {
  background: transparent;
}

.suggestions-list::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.suggestions-list::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

/* Category Section */
.suggestions-category {
  margin-bottom: 1.5rem;
}

.suggestions-category:last-child {
  margin-bottom: 0;
}

.category-header {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e5e7eb;
}

/* Category Items Grid */
.category-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}

/* Suggestion Card */
.suggestion-card {
  position: relative;
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 6px;
  padding: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.suggestion-card:hover {
  border-color: #d1d5db;
  background: #f9fafb;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.suggestion-card:active {
  transform: translateY(0);
}

.suggestion-card.selected {
  border-color: #f59e0b;
  background: #fffbeb;
  animation: pulse 0.5s ease-in-out;
}

.suggestion-card.optimal {
  border-color: #10b981;
  background: #f0fdf4;
}

.suggestion-card.optimal:hover {
  border-color: #059669;
  background: #dcfce7;
}

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

/* Card Content */
.suggestion-dimensions {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  font-variant-numeric: tabular-nums;
}

.suggestion-label {
  font-size: 0.75rem;
  color: #6b7280;
  line-height: 1.2;
}

.suggestion-aspect {
  font-size: 0.625rem;
  color: #9ca3af;
  font-variant-numeric: tabular-nums;
}

/* Quality Badge */
.suggestion-quality {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 0.625rem;
  font-weight: 600;
  padding: 0.125rem 0.375rem;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.quality-excellent {
  background: #d1fae5;
  color: #065f46;
}

.quality-good {
  background: #dbeafe;
  color: #1e40af;
}

.quality-fair {
  background: #fef3c7;
  color: #92400e;
}

.quality-poor {
  background: #fee2e2;
  color: #991b1b;
}

/* Optimal Badge */
.optimal-badge {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  background: #10b981;
  color: white;
  font-size: 0.625rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .category-items {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.5rem;
  }

  .suggestion-card {
    padding: 0.5rem;
  }

  .suggestion-dimensions {
    font-size: 0.875rem;
  }

  .size-suggestions-panel.visible {
    max-height: 350px;
  }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
  .size-suggestions-panel {
    background: #1f2937;
    border-color: #374151;
  }

  .suggestions-header,
  .suggestions-subtitle {
    background: #111827;
    border-color: #374151;
  }

  .suggestions-title {
    color: #f9fafb;
  }

  .suggestions-close {
    color: #9ca3af;
  }

  .suggestions-close:hover {
    background: #374151;
    color: #f9fafb;
  }

  .suggestion-card {
    background: #111827;
    border-color: #374151;
  }

  .suggestion-card:hover {
    border-color: #4b5563;
    background: #1f2937;
  }

  .suggestion-card.selected {
    background: #451a03;
  }

  .suggestion-card.optimal {
    background: #064e3b;
  }

  .suggestion-dimensions {
    color: #f9fafb;
  }

  .suggestion-label {
    color: #9ca3af;
  }

  .category-header {
    color: #9ca3af;
    border-color: #374151;
  }
}

/* Size Suggestions Drawer CSS */
/* Add this to your styles.css file */

/* ============================================
   DRAWER OVERLAY
   ============================================ */

/* Overlay - dims background when drawer is open */
.suggestions-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1039; /* Below drawer, above everything else */
}

.suggestions-drawer-overlay.visible {
  opacity: 1;
  visibility: visible;
}

/* ============================================
   DRAWER CONTAINER
   ============================================ */

.suggestions-drawer {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 400px;
  background: #ffffff;
  box-shadow: 4px 0 12px rgba(0, 0, 0, 0.15);
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1040; /* Above overlay */
  display: flex;
  flex-direction: column;
}

.suggestions-drawer.open {
  transform: translateX(0);
}

/* Prevent body scroll when drawer is open */
body.drawer-open {
  overflow: hidden;
}

/* ============================================
   DRAWER HEADER
   ============================================ */

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 2px solid #FFD100;
  background: #ffffff;
  flex-shrink: 0;
}

.drawer-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.drawer-icon {
  color: #FFD100;
  flex-shrink: 0;
}

.drawer-close {
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s;
}

.drawer-close:hover {
  background: #f3f4f6;
  color: #111827;
}

.drawer-close:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 209, 0, 0.3);
}

/* ============================================
   DRAWER BODY
   ============================================ */

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  background: #ffffff;
}

/* Custom scrollbar for drawer */
.drawer-body::-webkit-scrollbar {
  width: 8px;
}

.drawer-body::-webkit-scrollbar-track {
  background: #f9fafb;
}

.drawer-body::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 4px;
}

.drawer-body::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* ============================================
   ASPECT INFO CARD
   ============================================ */

.aspect-info-card {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 2px solid #fbbf24;
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 2rem;
  text-align: center;
}

.aspect-info-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #92400e;
  margin-bottom: 0.5rem;
}

.aspect-info-value {
  font-size: 2rem;
  font-weight: 700;
  color: #78350f;
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.5rem;
}

.aspect-info-description {
  font-size: 0.875rem;
  color: #92400e;
}

/* Natural Size Card */
.natural-size-card {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 2px solid #3b82f6;
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 2rem;
  text-align: center;
}

.natural-size-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #1e40af;
  margin-bottom: 0.5rem;
}

.natural-size-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e3a8a;
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.25rem;
}

.natural-size-note {
  font-size: 0.75rem;
  color: #1e40af;
  font-style: italic;
}

/* ============================================
   SUGGESTIONS CONTAINER
   ============================================ */

.suggestions-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* ============================================
   SUGGESTION SECTION
   ============================================ */

.suggestion-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.suggestion-section-header {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e5e7eb;
}

/* ============================================
   SUGGESTION LIST
   ============================================ */

.suggestion-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ============================================
   SUGGESTION CARD
   ============================================ */

.suggestion-card {
  position: relative;
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.suggestion-card:hover {
  border-color: #FFD100;
  background: #fffbeb;
  transform: translateX(4px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.suggestion-card:active {
  transform: translateX(2px);
}

.suggestion-card:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 209, 0, 0.3);
}

.suggestion-card.optimal {
  border-color: #10b981;
  background: #f0fdf4;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.suggestion-card.optimal:hover {
  border-color: #059669;
  background: #dcfce7;
}

/* ============================================
   CARD CONTENT
   ============================================ */

.suggestion-card-main {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.suggestion-dimensions {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  font-variant-numeric: tabular-nums;
}

.suggestion-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #4b5563;
}

.suggestion-description {
  font-size: 0.75rem;
  color: #6b7280;
  line-height: 1.4;
}

/* ============================================
   OPTIMAL BADGE
   ============================================ */

.optimal-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: #10b981;
  color: white;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ============================================
   DRAWER FOOTER
   ============================================ */

.drawer-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
  flex-shrink: 0;
}

.drawer-hint {
  display: block;
  font-size: 0.75rem;
  color: #6b7280;
  text-align: center;
  line-height: 1.5;
}

/* ============================================
   TRIGGER BUTTON (in sidebar)
   ============================================ */

.size-suggestions-trigger-container {
  margin: 1rem 0;
  padding: 0;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 768px) {
  .suggestions-drawer {
    width: 90%;
    max-width: 360px;
  }

  .drawer-header {
    padding: 1rem 1.25rem;
  }

  .drawer-title {
    font-size: 1.125rem;
  }

  .drawer-body {
    padding: 1.25rem;
  }

  .aspect-info-card {
    padding: 1rem;
  }

  .aspect-info-value {
    font-size: 1.75rem;
  }

  .suggestion-card {
    padding: 0.875rem;
  }

  .suggestion-dimensions {
    font-size: 1.125rem;
  }
}

@media (max-width: 480px) {
  .suggestions-drawer {
    width: 100%;
    max-width: 100%;
  }
}

/* ============================================
   DARK MODE SUPPORT
   ============================================ */

@media (prefers-color-scheme: dark) {
  .suggestions-drawer {
    background: #1f2937;
  }

  .drawer-header {
    background: #111827;
    border-bottom-color: #FFD100;
  }

  .drawer-title {
    color: #f9fafb;
  }

  .drawer-close {
    color: #9ca3af;
  }

  .drawer-close:hover {
    background: #374151;
    color: #f9fafb;
  }

  .drawer-body {
    background: #1f2937;
  }

  .drawer-body::-webkit-scrollbar-track {
    background: #111827;
  }

  .aspect-info-card {
    background: linear-gradient(135deg, #451a03 0%, #78350f 100%);
    border-color: #f59e0b;
  }

  .aspect-info-label,
  .aspect-info-value,
  .aspect-info-description {
    color: #fbbf24;
  }

  .suggestion-section-header {
    color: #9ca3af;
    border-bottom-color: #374151;
  }

  .suggestion-card {
    background: #111827;
    border-color: #374151;
  }

  .suggestion-card:hover {
    background: #1f2937;
    border-color: #FFD100;
  }

  .suggestion-card.optimal {
    background: #064e3b;
    border-color: #10b981;
  }

  .suggestion-card.optimal:hover {
    background: #065f46;
  }

  .suggestion-dimensions {
    color: #f9fafb;
  }

  .suggestion-label {
    color: #d1d5db;
  }

  .suggestion-description {
    color: #9ca3af;
  }

  .drawer-footer {
    background: #111827;
    border-top-color: #374151;
  }

  .drawer-hint {
    color: #9ca3af;
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes slideInFromLeft {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

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

/* Add animation class if you want to use it */
.suggestions-drawer.animated {
  animation: slideInFromLeft 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.suggestions-drawer-overlay.animated {
  animation: fadeIn 0.3s ease;
}