/* Custom Toastr System CSS */
.toastr-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  pointer-events: none;
}

.toastr-item {
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(75, 85, 99, 0.3);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 12px;
  min-width: 300px;
  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);
  position: relative;
  overflow: hidden;
}

.toastr-item.show {
  transform: translateX(0);
  opacity: 1;
}

.toastr-item.hide {
  transform: translateX(100%);
  opacity: 0;
}

.toastr-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  border-radius: 12px 12px 0 0;
}

.toastr-item.success::before {
  background: linear-gradient(90deg, #10b981, #059669);
}

.toastr-item.error::before {
  background: linear-gradient(90deg, #ef4444, #dc2626);
}

.toastr-item.warning::before {
  background: linear-gradient(90deg, #f59e0b, #d97706);
}

.toastr-item.info::before {
  background: linear-gradient(90deg, #3b82f6, #2563eb);
}

.toastr-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.toastr-title {
  font-weight: 600;
  font-size: 14px;
  color: #f9fafb;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toastr-title i {
  font-size: 16px;
}

.toastr-close {
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s;
  font-size: 16px;
  line-height: 1;
}

.toastr-close:hover {
  color: #f9fafb;
  background: rgba(156, 163, 175, 0.1);
}

.toastr-message {
  color: #d1d5db;
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

.toastr-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: rgba(156, 163, 175, 0.2);
  border-radius: 0 0 12px 12px;
  overflow: hidden;
}

.toastr-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  transition: width linear;
  border-radius: 0 0 12px 12px;
}

.toastr-item.success .toastr-progress-bar {
  background: linear-gradient(90deg, #10b981, #059669);
}

.toastr-item.error .toastr-progress-bar {
  background: linear-gradient(90deg, #ef4444, #dc2626);
}

.toastr-item.warning .toastr-progress-bar {
  background: linear-gradient(90deg, #f59e0b, #d97706);
}

.toastr-item.info .toastr-progress-bar {
  background: linear-gradient(90deg, #3b82f6, #2563eb);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .toastr-container {
    top: 10px;
    right: 10px;
    left: 10px;
  }
  
  .toastr-item {
    min-width: auto;
    max-width: none;
    width: 100%;
    margin-bottom: 8px;
    padding: 14px 16px;
  }
  
  .toastr-title {
    font-size: 13px;
  }
  
  .toastr-message {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .toastr-container {
    top: 5px;
    right: 5px;
    left: 5px;
  }
  
  .toastr-item {
    padding: 12px 14px;
    margin-bottom: 6px;
  }
  
  .toastr-title {
    font-size: 12px;
  }
  
  .toastr-message {
    font-size: 11px;
  }
}

/* Animation keyframes */
@keyframes toastrSlideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes toastrSlideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

@keyframes toastrProgress {
  from {
    width: 100%;
  }
  to {
    width: 0%;
  }
}

/* Toastr types with specific icons */
.toastr-item.success .toastr-title i {
  color: #10b981;
}

.toastr-item.error .toastr-title i {
  color: #ef4444;
}

.toastr-item.warning .toastr-title i {
  color: #f59e0b;
}

.toastr-item.info .toastr-title i {
  color: #3b82f6;
}

/* Hover effects */
.toastr-item:hover {
  transform: translateX(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* Stacking animation for multiple toasts */
.toastr-item:nth-child(1) { transition-delay: 0ms; }
.toastr-item:nth-child(2) { transition-delay: 50ms; }
.toastr-item:nth-child(3) { transition-delay: 100ms; }
.toastr-item:nth-child(4) { transition-delay: 150ms; }
.toastr-item:nth-child(5) { transition-delay: 200ms; } 