/**
 * GNB Toast Notification Styles
 * Beautiful, modern toast notifications with smooth animations
 */

/* Toast Container */
.gnb-toast-container {
	position: fixed;
	top: 20px;
	right: 20px;
	z-index: 9999;
	pointer-events: none;
	max-width: 400px;
}

/* Individual Toast */
.gnb-toast {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: white;
	border-radius: 8px;
	padding: 16px 20px;
	margin-bottom: 12px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	border-left: 4px solid #0077B5;
	pointer-events: auto;
	opacity: 0;
	transform: translateX(400px) translateY(-20px);
	transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
	min-height: 52px;
	animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
	from {
		opacity: 0;
		transform: translateX(400px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

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

/* Toast Types */
.gnb-toast-success {
	border-left-color: #28a745;
	background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
}

.gnb-toast-error {
	border-left-color: #dc3545;
	background: linear-gradient(135deg, #ffffff 0%, #fff5f5 100%);
}

.gnb-toast-warning {
	border-left-color: #ffc107;
	background: linear-gradient(135deg, #ffffff 0%, #fffbf0 100%);
}

.gnb-toast-info {
	border-left-color: #17a2b8;
	background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
}

/* Toast Content Container */
.gnb-toast-content {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 1;
}

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

.gnb-toast-success .gnb-toast-icon {
	color: #28a745;
}

.gnb-toast-error .gnb-toast-icon {
	color: #dc3545;
}

.gnb-toast-warning .gnb-toast-icon {
	color: #ffc107;
}

.gnb-toast-info .gnb-toast-icon {
	color: #17a2b8;
}

.gnb-toast-icon svg {
	width: 100%;
	height: 100%;
}

/* Toast Message */
.gnb-toast-message {
	font-size: 14px;
	font-weight: 500;
	color: #263238;
	line-height: 1.4;
	word-break: break-word;
}

/* Toast Close Button */
.gnb-toast-close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	margin-left: 12px;
	background: none;
	border: none;
	color: #999;
	cursor: pointer;
	padding: 0;
	flex-shrink: 0;
	transition: color 0.2s;
	border-radius: 4px;
}

.gnb-toast-close:hover {
	color: #333;
	background: rgba(0, 0, 0, 0.05);
}

.gnb-toast-close svg {
	width: 16px;
	height: 16px;
}

/* Mobile Responsive */
@media (max-width: 600px) {
	.gnb-toast-container {
		left: 12px;
		right: 12px;
		top: 12px;
		max-width: none;
	}
	
	.gnb-toast {
		margin-bottom: 10px;
		padding: 14px 16px;
	}
	
	.gnb-toast-message {
		font-size: 13px;
	}
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
	.gnb-toast {
		background: #2c3e50;
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
	}
	
	.gnb-toast-success {
		background: linear-gradient(135deg, #2c3e50 0%, #1a3a3a 100%);
	}
	
	.gnb-toast-error {
		background: linear-gradient(135deg, #2c3e50 0%, #3a1a1a 100%);
	}
	
	.gnb-toast-warning {
		background: linear-gradient(135deg, #2c3e50 0%, #3a3a1a 100%);
	}
	
	.gnb-toast-info {
		background: linear-gradient(135deg, #2c3e50 0%, #1a3a3a 100%);
	}
	
	.gnb-toast-message {
		color: #ecf0f1;
	}
	
	.gnb-toast-close {
		color: #7f8c8d;
	}
	
	.gnb-toast-close:hover {
		color: #ecf0f1;
		background: rgba(255, 255, 255, 0.1);
	}
}

/* Remove animation on exit */
.gnb-toast-exit {
	animation: slideOutRight 0.3s ease-in forwards;
}

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