/**
 * Toast Notification Styles
 */

.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  pointer-events: none;
}

.toast {
  background: rgba(30, 30, 30, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px 12px 0px 0px;
  padding: 0;
  margin-bottom: 12px;
  min-width: 320px;
  max-width: 400px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  pointer-events: auto;
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.toast.toast-hide {
  transform: translateX(100%);
  opacity: 0;
}

.toast-content {
  display: flex;
  align-items: center;
  padding: 16px;
  gap: 12px;
}

.toast-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.toast-message {
  flex: 1;
  color: white;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.toast-close {
  background: none;
  border: none;
  color: rgb(255 255 255);
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  margin-left: 8px;
  transition: color 0.2s;
}

.toast-close:hover {
  color: white;
}

.toast-progress {
  height: 3px;
  background: linear-gradient(90deg, #0073ce, #027db1);
  border-radius: 0 0 12px 12px;
  transform-origin: left;
  animation: toast-progress linear;
}

/* Toast type variations */
.toast-success {
  border-color: rgba(16, 185, 129, 0.3);
}

.toast-success .toast-progress {
  background: linear-gradient(90deg, #10b981, #059669);
}

.toast-error {
  border-color: rgba(239, 68, 68, 0.3);
}

.toast-error .toast-progress {
  background: linear-gradient(90deg, #ef4444, #dc2626);
}

.toast-warning {
  border-color: rgba(245, 158, 11, 0.3);
}

.toast-warning .toast-progress {
  background: linear-gradient(90deg, #f59e0b, #d97706);
}

.toast-info {
  border-color: rgba(59, 130, 246, 0.3);
}

.toast-info .toast-progress {
  background: linear-gradient(90deg, #3b82f6, #2563eb);
}

.toast-new-appointment {
  border-color: rgba(139, 92, 246, 0.3);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(30, 30, 30, 0.95));
}

.toast-new-appointment .toast-progress {
  background: linear-gradient(90deg, #8b5cf6, #7c3aed);
}

.toast-status-update {
  border-color: rgba(34, 197, 94, 0.3);
}

.toast-status-update .toast-progress {
  background: linear-gradient(90deg, #22c55e, #16a34a);
}

.toast-payment {
  border-color: rgba(251, 191, 36, 0.3);
}

.toast-payment .toast-progress {
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.toast-location {
  border-color: rgba(6, 182, 212, 0.3);
}

.toast-location .toast-progress {
  background: linear-gradient(90deg, #06b6d4, #0891b2);
}

/* Animation for progress bar */
@keyframes toast-progress {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

/* Highlight animation for appointments */
.highlight-appointment {
  animation: highlight-appointment 2s ease-in-out;
}

@keyframes highlight-appointment {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.4);
  }
  50% {
    box-shadow: 0 0 20px 10px rgba(139, 92, 246, 0.4);
  }
}

/* Responsive design */
@media (max-width: 768px) {
  .toast-container {
    top: 10px;
    right: 10px;
    left: 10px;
  }
  
  .toast {
    min-width: auto;
    max-width: none;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .toast {
    background: rgb(157 51 255);
    border-color: rgb(164 116 249);
  }
}
