/* Base utilities for Glassmorphism & Custom scrollbars */

:root {
  --app-bg: #0f172a; /* Tailwind slate-900 */
}

/* Custom Scrollbar for sleek look */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.5); 
}

::-webkit-scrollbar-thumb {
  background: #334155; 
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #475569; 
}

/* Glassmorphism Classes */
.glass-panel {
  background: rgba(255, 255, 255, 0.75); /* Light glass */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.dark .glass-panel {
  background: rgba(30, 41, 59, 0.65); /* Dark glass */
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Toast Notifications Animation */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

.toast-enter {
  animation: slideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.toast-leave {
  animation: fadeOutRight 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Modal animations */
.modal-open {
  transform: scale(1) !important;
  opacity: 1 !important;
}

/* Custom Checkbox Alternative - Toggle visual for Lote selection */
.toggle-btn {
  transition: all 0.2s ease-in-out;
}
.toggle-btn.added {
  background-color: rgb(16 185 129 / 0.15); /* emerald 500 transparent */
  color: #10b981;
  border-color: #10b981;
}
.toggle-btn:not(.added) {
  background-color: transparent;
  color: #94a3b8; /* slate 400 */
  border-color: #475569; /* slate 600 */
}
.toggle-btn:not(.added):hover {
  background-color: #334155;
  color: #f8fafc;
}
