/* Route Toast Notification - Top Sliding */

.route-toast-notification {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(-100%);
  z-index: 10000;
  max-width: 600px;
  width: calc(100% - 40px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.route-toast-notification.show {
  opacity: 1;
  transform: translateX(-50%) translateY(20px);
  pointer-events: auto;
}

.route-toast-content {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 2px solid #2e7d32;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  backdrop-filter: blur(10px);
}

.route-toast-content > .bi-exclamation-triangle-fill {
  font-size: 24px;
  color: #2e7d32;
  flex-shrink: 0;
}

.route-toast-text {
  flex: 1;
  min-width: 0;
}

.route-toast-text strong {
  display: block;
  color: #2e7d32;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.route-toast-text p {
  margin: 0;
  color: #555;
  font-size: 13px;
  line-height: 1.4;
}

.route-toast-button {
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.route-toast-button:hover {
  background: #c82333;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.route-toast-button:active {
  transform: translateY(0);
}

.route-toast-close {
  background: transparent;
  border: none;
  color: #999;
  cursor: pointer;
  padding: 4px;
  font-size: 16px;
  line-height: 1;
  transition: all 0.2s ease;
  border-radius: 4px;
  flex-shrink: 0;
  margin-left: -4px;
}

.route-toast-close:hover {
  color: #666;
  background: rgba(0, 0, 0, 0.05);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .route-toast-notification {
    width: calc(100% - 24px);
    max-width: none;
  }
  
  .route-toast-notification.show {
    transform: translateX(-50%) translateY(12px);
  }
  
  .route-toast-content {
    padding: 14px 16px;
    gap: 10px;
  }
  
  .route-toast-content > .bi-exclamation-triangle-fill {
    font-size: 20px;
  }
  
  .route-toast-text strong {
    font-size: 13px;
  }
  
  .route-toast-text p {
    font-size: 12px;
  }
  
  .route-toast-button {
    padding: 7px 12px;
    font-size: 12px;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .route-toast-notification {
    width: calc(100% - 16px);
  }
  
  .route-toast-notification.show {
    transform: translateX(-50%) translateY(8px);
  }
  
  .route-toast-content {
    flex-wrap: wrap;
    padding: 12px 14px;
  }
  
  .route-toast-text {
    flex-basis: 100%;
    order: 2;
  }
  
  .route-toast-button {
    order: 3;
    flex: 1;
  }
  
  .route-toast-close {
    order: 1;
    margin-left: auto;
  }
  
  .route-toast-content > .bi-exclamation-triangle-fill {
    order: 0;
  }
}

/* Animation for entrance */
@keyframes slideDownFromTop {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-100%);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(20px);
  }
}