/* Toast and Dialog Notification Styles */

/* Toast Container */
#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
  width: 100%;
  pointer-events: none;
}

@media (max-width: 768px) {
  #toast-container {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }
}

/* Toast Base Styles */
.toast {
  background: white;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  padding: 16px;
  border-left: 4px solid #3b82f6;
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.3s ease-in-out;
  pointer-events: auto;
  max-width: 400px;
  min-width: 300px;
}

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

.toast .toast-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.toast .toast-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.toast .toast-title {
  font-weight: 600;
  margin: 0 0 4px 0;
  color: #1f2937;
  font-size: 14px;
}

.toast .toast-message {
  margin: 0;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.4;
}

.toast .toast-close {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: none;
  background: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.toast .toast-close:hover {
  color: #6b7280;
}

/* Toast Type Styles */
.toast.success {
  border-left-color: #10b981;
}

.toast.success .toast-icon {
  color: #10b981;
}

.toast.error {
  border-left-color: #ef4444;
}

.toast.error .toast-icon {
  color: #ef4444;
}

.toast.warning {
  border-left-color: #f59e0b;
}

.toast.warning .toast-icon {
  color: #f59e0b;
}

.toast.info {
  border-left-color: #3b82f6;
}

.toast.info .toast-icon {
  color: #3b82f6;
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20000;
  padding: 20px;
}

/* Modal Dialog */
.modal-dialog {
  background: white;
  border-radius: 12px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  max-width: 450px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
}

.modal-content {
  padding: 24px;
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.modal-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.modal-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: #1f2937;
}

.modal-message {
  color: #6b7280;
  margin: 0 0 24px 0;
  line-height: 1.5;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.modal-btn {
  padding: 10px 20px;
  border-radius: 6px;
  border: 1px solid;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
}

.modal-btn-cancel {
  background: white;
  color: #6b7280;
  border-color: #d1d5db;
}

.modal-btn-cancel:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

.modal-btn-confirm {
  background: #3b82f6;
  color: white;
  border-color: #3b82f6;
}

.modal-btn-confirm:hover {
  background: #2563eb;
}

.modal-btn-confirm.warning {
  background: #f59e0b;
  border-color: #f59e0b;
}

.modal-btn-confirm.warning:hover {
  background: #d97706;
}

.modal-btn-confirm.danger {
  background: #ef4444;
  border-color: #ef4444;
}

.modal-btn-confirm.danger:hover {
  background: #dc2626;
}

/* Icon Colors */
.icon-success {
  color: #10b981;
}

.icon-error {
  color: #ef4444;
}

.icon-warning {
  color: #f59e0b;
}

.icon-info {
  color: #3b82f6;
}

/* Material Icons Fallback */
.material-icons-fallback {
  font-family: 'Material Icons', sans-serif;
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

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

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

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

.toast-exit {
  animation: slideOutRight 0.3s ease-in;
}