/* Custom Animations and Modal Overlays */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes modalPop {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Page routing animations */
.page-view {
  display: none;
  animation: fadeUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.page-view.active-view {
  display: block;
}

/* Modal Overlay states */
.modal-overlay {
  display: none;
}

.modal-overlay.open {
  display: flex !important;
  animation: fadeIn 0.2s ease-out forwards;
}

.modal-overlay.open .modal-content {
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Drag over highlights */
.drag-over {
  border-color: #3b82f6 !important;
  background-color: rgba(59, 130, 246, 0.15) !important;
}

/* Custom Scrollbar (Dark InVideo theme) */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #090d16;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Toast popup */
.toast-popup {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  display: none;
  align-items: center;
  gap: 10px;
  background: #1e293b;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  animation: fadeUp 0.3s ease-out forwards;
}