/* ========================================
   TOAST NOTIFICATION STYLES
   ======================================== */

/* Toast Container */
.toast-container {
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 2000;
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-width: 350px;
}

@media (max-width: 575px) {
	.toast-container {
		bottom: 10px;
		right: 10px;
		left: 10px;
		max-width: none;
	}
}

/* Toast */
.toast {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 16px;
	background: var(--white);
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
	animation: toastSlideIn 0.3s ease;
	transform: translateX(120%);
	opacity: 0;
}

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

.toast.removing {
	animation: toastSlideOut 0.3s ease forwards;
}

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

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

/* Toast Icon */
.toast-icon {
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 0.8rem;
}

.toast-icon.error {
	background: rgba(220, 53, 69, 0.1);
	color: #dc3545;
}

.toast-icon.success {
	background: rgba(25, 135, 84, 0.1);
	color: #198754;
}

.toast-icon.warning {
	background: rgba(255, 193, 7, 0.1);
	color: #ffc107;
}

.toast-icon.info {
	background: rgba(26, 167, 255, 0.1);
	color: var(--brand-blue);
}

/* Toast Content */
.toast-content {
	flex: 1;
}

.toast-title {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--dark);
	margin-bottom: 3px;
}

.toast-message {
	font-size: 0.8rem;
	color: var(--text-secondary);
	line-height: 1.4;
}

/* Toast Close Button */
.toast-close {
	flex-shrink: 0;
	background: transparent;
	border: none;
	color: var(--text-muted);
	cursor: pointer;
	padding: 2px;
	font-size: 1rem;
	line-height: 1;
	transition: color 0.2s ease;
}

.toast-close:hover {
	color: var(--dark);
}

/* Progress Bar */
.toast-progress {
	position: absolute;
	bottom: 0;
	left: 0;
	height: 3px;
	background: var(--brand-blue);
	border-radius: 0 0 0 8px;
	animation: progressShrink linear forwards;
}

.toast.removing .toast-progress {
	animation-play-state: paused;
}

@keyframes progressShrink {
	from {
		width: 100%;
	}
	to {
		width: 0%;
	}
}

/* Multiple Toasts Stack */
.toast:nth-child(2) {
	animation-delay: 0.1s;
}

.toast:nth-child(3) {
	animation-delay: 0.2s;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
	.toast,
	.toast-progress {
		animation: none;
		transition: none;
	}
}
