/**
 * Cyprus Taxi Booking - Notification Styles
 * Professional Bootstrap Toast styling
 */

/* Toast Container */
#ctb-toast-container {
  z-index: 9999 !important;
  max-width: 400px;
}

/* Toast Styling */
.toast {
  min-width: 300px;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  border: none;
  margin-bottom: 1rem;
}

.toast-header {
  border-bottom: none;
  font-weight: 600;
  padding: 0.75rem 1rem;
}

.toast-header i {
  font-size: 1.1rem;
}

.toast-body {
  padding: 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.toast-body ul {
  margin-bottom: 0;
  padding-left: 1.2rem;
}

.toast-body ul li {
  margin-bottom: 0.5rem;
}

.toast-body ul li:last-child {
  margin-bottom: 0;
}

/* Success Toast */
.toast-header.bg-success {
  background-color: #28a745 !important;
}

/* Error Toast */
.toast-header.bg-danger {
  background-color: #dc3545 !important;
}

/* Warning Toast */
.toast-header.bg-warning {
  background-color: #ffc107 !important;
  color: #000 !important;
}

.toast-header.bg-warning .btn-close-white {
  filter: invert(1);
}

/* Info Toast */
.toast-header.bg-info {
  background-color: #17a2b8 !important;
}

/* Confirmation Modal Styling */
.modal-content {
  border-radius: 0.5rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
}

.modal-header {
  border-bottom: 1px solid #dee2e6;
  padding: 1rem 1.5rem;
}

.modal-title i {
  font-size: 1.3rem;
}

.modal-body {
  padding: 1.5rem;
  font-size: 1rem;
}

.modal-footer {
  border-top: 1px solid #dee2e6;
  padding: 1rem 1.5rem;
}

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

.toast.showing {
  animation: slideInRight 0.3s ease-out;
}

/* Responsive adjustments */
@media (max-width: 576px) {
  #ctb-toast-container {
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    max-width: 100%;
    padding: 1rem !important;
  }

  .toast {
    min-width: 100%;
  }
}

/* Loading indicator for async operations */
.toast-loading {
  position: relative;
}

.toast-loading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5));
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}
