/* toast.css: стили для toast уведомлений */

#toast-container {
  position: fixed;
  top: 25px; /* было 20px, увеличение на 25% */
  left: 50%;
  transform: translateX(-50%);
  z-index: 10001;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px; /* было 12px, увеличение на 25% */
  pointer-events: none;
  width: 100%;
  max-width: 625px; /* было 500px, увеличение на 25% */
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--color-bg-white);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 4px 8px rgba(0, 0, 0, 0.1);
  min-width: 300px;
  max-width: 500px;
  width: 100%;
  pointer-events: all;
  transform: translateY(-100px) scale(0.95);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), 
              opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border-left: 4px solid var(--color-primary);
  animation: toast-slide-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes toast-slide-in {
  from {
    transform: translateY(-100px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.toast-visible {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.toast-hiding {
  transform: translateY(-100px) scale(0.95);
  opacity: 0;
  transition: transform 0.25s cubic-bezier(0.4, 0, 1, 1), 
              opacity 0.25s cubic-bezier(0.4, 0, 1, 1);
}

.toast-icon {
  font-size: 25px; /* было 20px, увеличение на 25% */
  font-weight: bold;
  flex-shrink: 0;
  width: 30px; /* было 24px, увеличение на 25% */
  height: 30px; /* было 24px, увеличение на 25% */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.toast-success .toast-icon {
  background: #4caf50;
  color: #fff;
}

.toast-error .toast-icon {
  background: #f44336;
  color: #fff;
}

.toast-info .toast-icon {
  background: #2196f3;
  color: #fff;
}

.toast-message {
  flex: 1;
  font-size: var(--font-size-base, 14px);
  color: var(--color-text, #212121);
  line-height: 1.5;
}

.toast-close {
  background: none;
  border: none;
  font-size: 30px; /* было 24px, увеличение на 25% */
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 30px; /* было 24px, увеличение на 25% */
  height: 30px; /* было 24px, увеличение на 25% */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color 0.2s ease;
  line-height: 1;
}

.toast-close:hover {
  color: var(--color-text, #212121);
}

.toast-close:focus {
  outline: 2.5px solid var(--color-primary, #2196F3); /* было 2px, увеличение на 25% */
  outline-offset: 2.5px; /* было 2px, увеличение на 25% */
  border-radius: 2.5px; /* было 2px, увеличение на 25% */
}

/* Адаптивность */
@media (max-width: 600px) {
  #toast-container {
    left: 10px;
    right: 10px;
    transform: none;
    max-width: none;
  }
  
  .toast {
    min-width: auto;
    max-width: none;
    width: 100%;
  }
}

