/*
 * ECHOES - AI PROMPT MANAGER
 *
 * 2025 Made by Hubb. (c) All rights reserved.
 */
 
:root {
  /* Light Theme */
  --primary-100:#FFA500;
  --primary-200:#dd8900;
  --primary-300:#885400;
  --accent-100:#6C757D;
  --accent-200:#2B2B2B;
  --text-100:#212121;
  --text-200:#5c5c5c;
  --text-300:#9e9e9e;
  --bg-100:#F9F9F9;
  --bg-200:#e5e5e5;
  --bg-300:#bdbdbd;
  --whitesmoke: #F5F5F5;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
  --primary-100:#FFC857;
  --primary-200:#deab3a;
  --primary-300:#936a00;
  --accent-100:#00BCD4;
  --accent-200:#008BA3;
  --text-100:#FFFFFF;
  --text-200:#e0e0e0;
  --text-300:#9e9e9e;
  --bg-100:#1E1E1E;
  --bg-200:#2b2b2b;
  --bg-300:#3b3b3b;
  --whitesmoke: #282828;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
}

[data-theme="eink"] {
  --primary-100:#1E2022;
  --primary-200:#34373b;
  --primary-300:#F0F5F9;
  --accent-100:#788189;
  --accent-200:#e1e4e6;
  --text-100:#1E2022;
  --text-200:#52616B;
  --text-300:#9e9e9e;
  --bg-100:#F0F5F9;
  --bg-200:#C9D6DF;
  --bg-300:#bfc7d1;
  --whitesmoke: #FFFFFF;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Modern Button System */
.btn {
  background: var(--bg-300);
  color: var(--text-100);
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
  border: 1px solid transparent;
}

.btn:hover {
  background: var(--primary-100);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background: var(--primary-100);
  color: white;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--primary-200);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--bg-200);
  color: var(--text-100);
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--bg-300);
}

.btn-secondary:hover {
  background: var(--bg-300);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary:active {
  transform: translateY(0);
}

.filter-btn.active {
  background-color: var(--accent-100);
  color: #fff;
  font-weight: 600;
  padding: 2px 4px 2px 4px;
  border-radius: 0.25rem;
}

.btn-clear {
  background-color: transparent; 
  border-color: transparent; 
  color: var(--primary-100)
}

.btn-small {
  padding: 0.375rem 0.75rem; /* smaller padding */
  font-size: 0.75rem; /* smaller text */
  border-radius: 0.375rem; /* slightly less round */
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
}

.btn-small:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-small:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

/* Card Styles */

.card {
  background: var(--bg-200);
  color: var(--text-100);
  border-radius: 0.5rem;
  padding: 1rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-100);
}

.card-img {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.card:hover .card-img {
  transform: scale(1.05);
}

.tag {
  background: var(--primary-100);
  color: var(--accent-200);
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
  border-radius: 0.5rem;
}

#themeBtn {
  transition: background-color 0.3s ease, transform 0.2s ease;
}
#themeBtn:hover {
  transform: rotate(15deg) scale(1.05);
}


/* Modal */
.modal {
  background: var(--bg-100);
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  animation: fadeIn 0.3s ease-in-out;
}
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* Eink images */
[data-theme="eink"] .card-img {
  filter: grayscale(100%) contrast(1.2);
}

/* Card hover effect */
.card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.3s ease;
  opacity: 1;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.4s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Staggered fade-in */
.fade-in {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.4s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Utilities */

.category-btn,
.tag-btn {
  background: var(--bg-300);
  color: var(--text-100);
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
  border: 1px solid transparent;
}
.category-btn:hover,
.tag-btn:hover {
  background: var(--primary-100);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.category-btn.active,
.tag-btn.active {
  background: var(--primary-100);
  color: #fff;
  box-shadow: var(--shadow-md);
  border-color: var(--primary-200);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.drag-placeholder {
  min-height: 11rem;
  opacity: 0.8;
  animation: fadePlaceholder 0.2s ease-in-out;
}

@keyframes fadePlaceholder {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 0.8; transform: scale(1); }
}

/* Drag UX */
.prompt-card {
  cursor: grab;
  transition: transform 220ms cubic-bezier(.2,.9,.2,1), box-shadow 220ms;
}
.prompt-card.dragging {
  opacity: 0.55;
  transform: scale(0.98);
  cursor: grabbing;
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

/* Dashed placeholder */
.drag-placeholder {
  min-height: 11rem;
  opacity: 0.9;
  animation: fadePlaceholder 0.12s ease-in-out;
  background: rgba(255,255,255,0.02);
}

/* small keyframe to smooth placeholder */
@keyframes fadePlaceholder {
  from { opacity: 0; transform: scale(0.995); }
  to { opacity: 0.9; transform: scale(1); }
}

.prompt-card {
  cursor: grab;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.prompt-card:active {
  cursor: grabbing;
}
.drag-placeholder {
  min-height: 11rem;
  border: 2px dashed var(--primary-100);
  border-radius: 1rem;
  background: rgba(255,255,255,0.04);
  transition: all 0.2s ease;
}

.prompt-card {
  cursor: grab;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.prompt-card:active {
  cursor: grabbing;
}
.prompt-card.dragging {
  opacity: 0.5;
  transform: scale(0.96);
}

.drag-ghost {
  animation: ghostFade 0.2s ease forwards;
}
@keyframes ghostFade {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.visibility-toggle {
  transition: all 0.2s ease;
  backdrop-filter: blur(6px);
}
.visibility-toggle:hover {
  transform: scale(1.1);
}

#uploadThumbBtn {
  transition: all 0.2s ease;
}
#uploadThumbBtn:hover {
  transform: scale(1.05);
}

.prompt-card:hover {
  filter: hue-rotate(6deg) brightness(1.05);
  transition: filter 0.4s ease;
}

/* Desktop layout - sidebar is fixed, takes space */
#sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 16rem;
  height: 100vh;
  z-index: 40;
  overflow-y: auto;
  overflow-x: hidden;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  scrollbar-width: thin;
  scrollbar-color: var(--primary-100) var(--bg-200);
}

#sidebar::-webkit-scrollbar {
  width: 6px;
}

#sidebar::-webkit-scrollbar-track {
  background: var(--bg-200);
  border-radius: 10px;
}

#sidebar::-webkit-scrollbar-thumb {
  background: var(--primary-100);
  border-radius: 10px;
  transition: background 0.2s ease;
}

#sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--primary-200);
}

/* Desktop: main content should have left margin for sidebar */
@media (min-width: 768px) {
  .flex-1.flex.flex-col {
    margin-left: 16rem;
  }
}

/* Mobile: hide sidebar by default, overlay when open */
@media (max-width: 767px) {
  #sidebar {
    transform: translateX(-100%);
    z-index: 50;
    box-shadow: 2px 0 12px rgba(0,0,0,0.3);
  }

  #sidebar.open {
    transform: translateX(0);
  }

  /* No margin on mobile */
  .flex-1.flex.flex-col {
    margin-left: 0 !important;
  }

  #dashboardGrid {
    grid-template-columns: repeat(1, minmax(0,1fr));
  }
}

/* Sidebar overlay backdrop on mobile */
#sidebarOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 45;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#sidebarOverlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Slightly bigger tag hover */
.tag-btn:hover { transform: translateY(-2px); transition: transform .15s; }

/* Modern Input Styles */
.input,
input[type="text"],
input[type="email"],
input[type="password"],
textarea {
  background: var(--bg-100);
  color: var(--text-100);
  border-radius: 0.5rem;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.input:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(255, 165, 0, 0.1);
  transform: translateY(-1px);
}

.input:hover,
input[type="text"]:hover,
input[type="email"]:hover,
input[type="password"]:hover,
textarea:hover {
  border-color: var(--primary-100);
}

/* Select dropdown enhancement */

select {
  appearance: none;
  @supports (appearance: base-select) {
    &,
    &::picker(select) {
      appearance: base-select;
    }
  }
}

select {
  display: flex;
  justify-content: space-between;
  min-width: 180px;
  align-items: center;
  color: white;
  padding: 0.625rem 1rem;
  padding-block: 10px;
  padding-inline: 10px 30px;
  border-radius: 0.25rem;
  cursor: pointer;
  font-weight: 700;
  background: var(--bg-300)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='%23FFF' class='size-6'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m19.5 8.25-7.5 7.5-7.5-7.5' /%3E%3C/svg%3E%0A")
    right 10px center / 20px no-repeat;
  @supports (appearance: base-select) {
    padding-inline: 10px;
    background-image: none;
    &::picker-icon {
      content: "";
      width: 20px;
      height: 20px;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='%23818589' class='size-6'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m19.5 8.25-7.5 7.5-7.5-7.5' /%3E%3C/svg%3E%0A");
      transition: rotate 0.2s ease-out;
    }
    &:open::picker-icon {
      rotate: 180deg;
    }
    &::picker(select) {
      padding: 0;
      margin-top: 5px;
      border: 2px solid var(--bg-200);
      background: var(--whitesmoke);
      border-radius: 0.25rem;
      font-weight: 400;
      opacity: 0;
      height: 0;
      overflow: clip;
      transition: height 0.5s ease-out, opacity 0.5s ease-out, overlay 0.5s,
        display 0.5s;

      transition-behavior: allow-discrete;
    }
    &:open::picker(select) {
      opacity: 1;
      height: calc-size(auto, size);
      overflow: auto;
      @starting-style {
        opacity: 0;
        height: 0;
      }
    }
    option {
      padding: 10px;
      border-top: 1px solid var(--bg-300);
      cursor: pointer;
      transition-property: color, background;
      transition-duration: 0.2s;
      transition-timing-function: ease-out;
      &:where(:hover, :focus, :active) {
        background: var(--primary-100);
        color: var(--whitesmoke);
      }
      &:checked {
        background: var(--accent-100);
        color: var(--whitesmoke);
      }
      &::checkmark {
        display: none;
      }
      &:first-child {
        border: 0;
      }
    }
  }
}

/* Inline Add Prompt form fixes */
#inlineAddPrompt {
  position: relative;
  z-index: 50;
  margin-bottom: 2rem;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

@media (max-width: 768px) {
  #inlineAddPrompt {
    margin: 1rem;
    max-width: 100%;
  }
}

/* Header Enhancements */
header {
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--bg-300);
}

/* Bento Grid Enhancement */
#dashboardGrid {
  animation: fadeInGrid 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInGrid {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stagger children animation */
#dashboardGrid > * {
  animation: fadeInCard 0.4s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

#dashboardGrid > *:nth-child(1) { animation-delay: 0.05s; }
#dashboardGrid > *:nth-child(2) { animation-delay: 0.1s; }
#dashboardGrid > *:nth-child(3) { animation-delay: 0.15s; }
#dashboardGrid > *:nth-child(4) { animation-delay: 0.2s; }
#dashboardGrid > *:nth-child(5) { animation-delay: 0.25s; }
#dashboardGrid > *:nth-child(6) { animation-delay: 0.3s; }

@keyframes fadeInCard {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Sidebar Section Styling */
.sidebar-section {
  transition: all 0.2s ease;
}

.sidebar-section h3 svg {
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.sidebar-section:hover h3 svg {
  opacity: 1;
}

/* Category & Tag Button Enhancements */
#categoryList li button,
#categoryList li a {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text-100);
  background: transparent;
}

#categoryList li button:hover,
#categoryList li a:hover {
  background: var(--bg-300);
  transform: translateX(4px);
}

#categoryList li button.active,
#categoryList li a.active {
  background: var(--primary-100);
  color: white;
  font-weight: 500;
}

/* Search Input Enhancement */
#searchInput {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#searchInput:focus {
  width: 20rem;
}

@media (max-width: 768px) {
  #searchInput:focus {
    width: 100%;
  }
}

/* Top Bar Enhancement */
.sticky.top-0 {
  backdrop-filter: blur(8px);
  background: var(--bg-100);
}

/* Loading Animation */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* Smooth Page Transitions */
body {
  transition: background-color 0.3s ease;
}

/* Enhanced Scrollbar for Main Content */
main::-webkit-scrollbar {
  width: 8px;
}

main::-webkit-scrollbar-track {
  background: var(--bg-100);
}

main::-webkit-scrollbar-thumb {
  background: var(--bg-300);
  border-radius: 10px;
}

main::-webkit-scrollbar-thumb:hover {
  background: var(--primary-100);
}

/* Footer Enhancement */
footer {
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--bg-300);
}

/* Prompt Card Image Overlay Effect */
.prompt-card {
  position: relative;
}

.prompt-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 165, 0, 0.05) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  border-radius: 1rem;
}

.prompt-card:hover::before {
  opacity: 1;
}

/* Mobile Optimizations */
@media (max-width: 767px) {
  .card {
    border-radius: 0.875rem;
  }

  header {
    padding: 0.75rem 1rem;
  }

  #dashboardGrid {
    gap: 1rem;
  }
}

/* Dark mode shadow adjustments */
[data-theme="dark"] .card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Smooth rotate utility */
.rotate-180 {
  transform: rotate(180deg);
}

/* ------------------------------------------------------------
   ✨ FRONTEND POLISH — Echoes Public Grid
   ------------------------------------------------------------ */

/* --- FILTER BAR --- */
#searchBar {
  background: var(--bg-200);
  border: 1px solid var(--bg-300);
  color: var(--text-100);
  font-size: 0.95rem;
  transition: all 0.25s ease;
}
#searchBar:focus {
  border-color: var(--primary-100);
  box-shadow: 0 0 0 3px rgba(255, 200, 87, 0.25);
  background: var(--bg-100);
}

/* Category + Model Filter Buttons */
.category-btn, .tag-btn {
  background: var(--bg-300);
  color: var(--text-100);
  font-size: 0.85rem;
  border-radius: 9999px;
  padding: 0.35rem 0.9rem;
  transition: all 0.25s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.category-btn:hover, .tag-btn:hover {
  background: var(--primary-100);
  color: #fff;
  transform: translateY(-2px);
}
.category-btn.active, .tag-btn.active {
  background: var(--primary-200);
  color: #fff;
  box-shadow: 0 0 8px rgba(255, 200, 87, 0.35);
}

/* Align filters cleanly */
#categoryFilters, #modelFilters {
  background: transparent !important;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.2rem;
  margin-bottom: 0.2rem;
}

/* --- PROMPT CARDS --- */
.card, .prompt-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg-200);
  color: var(--text-100);
  border-radius: 1rem;
  overflow: hidden;
  width: 100%;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}
.card:hover, .prompt-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.18);
}

/* Image */
.card img, .prompt-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 1rem 1rem 0 0;
}

/* Card content */
.card-content {
  flex-grow: 1;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Title + model badge top-right */
.card-header {
  position: relative;
}
.model-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: var(--primary-100);
  color: var(--accent-200);
  font-size: 0.7rem;
  padding: 0.25rem 0.55rem;
  border-radius: 9999px;
  font-weight: 600;
}

/* Equal card height */
#gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  align-items: stretch;
}
#gallery > * {
  height: 100%;
}

/* Tags */
.tag {
  background: var(--bg-300);
  color: var(--text-100);
  font-size: 0.7rem;
  border-radius: 0.4rem;
  padding: 0.25rem 0.5rem;
  margin-top: 0.3rem;
  transition: all 0.2s ease;
}
.tag:hover {
  background: var(--primary-100);
  color: #fff;
}

/* --- LOAD MORE BUTTON --- */
#loadMoreContainer button {
  background: var(--bg-200);
  color: var(--text-100);
  border: 1px solid var(--bg-300);
  padding: 0.5rem 1.25rem;
  border-radius: 0.5rem;
  transition: all 0.25s ease;
}
#loadMoreContainer button:hover {
  background: var(--primary-100);
  color: #fff;
  transform: translateY(-2px);
}

/* --- MODAL --- */
#promptModal .modal-content {
  background: var(--bg-200);
  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  animation: fadeInScale 0.3s ease forwards;
}
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* Toast */
#toast {
  background: var(--primary-100);
  color: #fff;
  font-weight: 600;
  animation: fadeSlide 0.4s ease forwards;
}
@keyframes fadeSlide {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  #searchBar {
    width: 100%;
  }
  #gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  #modelFilters::before {
    display: block;
    margin-bottom: 0.3rem;
    text-align: center;
  }
}
@media (max-width: 500px) {
  #gallery {
    grid-template-columns: repeat(1, 1fr);
  }
}