/* Notification Container */
.notification-container {
	position: fixed;
	top: 20px;
	right: 20px;
	z-index: 10000;
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-width: 400px;
	pointer-events: none;
}

/* Toast Notification */
.notification-toast {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 16px;
	border-radius: 12px;
	background: white;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
	animation: slideIn 0.3s ease-out;
	pointer-events: all;
	min-width: 320px;
	max-width: 400px;
	border-left: 4px solid;
}

.notification-toast.notification-success {
	border-left-color: #10b981;
}

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

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

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

.notification-icon {
	flex-shrink: 0;
	width: 24px;
	height: 24px;
}

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

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

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

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

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

.notification-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

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

.notification-message {
	margin: 0;
	font-size: 14px;
	color: #4b5563;
	line-height: 1.5;
}

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

.notification-close:hover {
	background: #f3f4f6;
	color: #1f2937;
}

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

/* Animations */
@keyframes slideIn {
	from {
		transform: translateX(400px);
		opacity: 0;
	}
	to {
		transform: translateX(0);
		opacity: 1;
	}
}

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

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes fadeOut {
	from {
		opacity: 1;
	}
	to {
		opacity: 0;
	}
}

@keyframes modalFadeIn {
	from {
		opacity: 0;
		transform: scale(0.9) translateY(-20px);
	}
	to {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
}

@keyframes modalFadeOut {
	from {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
	to {
		opacity: 0;
		transform: scale(0.9) translateY(-20px);
	}
}

/* Modal Overlay */
.custom-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(4px);
	z-index: 9999;
	display: none;
	align-items: center;
	justify-content: center;
	animation: fadeIn 0.2s ease-out;
}

.custom-modal-overlay.active {
	display: flex;
}

/* Modal Dialog */
.custom-modal {
	background: white;
	border-radius: 16px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	max-width: 480px;
	width: calc(100% - 32px);
	max-height: 90vh;
	overflow: hidden;
	animation: modalFadeIn 0.3s ease-out;
}

.custom-modal-header {
	padding: 24px 24px 16px;
	display: flex;
	align-items: center;
	gap: 12px;
	border-bottom: 1px solid #e5e7eb;
}

.custom-modal-icon {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.custom-modal-icon svg {
	width: 28px;
	height: 28px;
}

.custom-modal-icon-success {
	background: #d1fae5;
	color: #10b981;
}

.custom-modal-icon-error {
	background: #fee2e2;
	color: #ef4444;
}

.custom-modal-icon-warning {
	background: #fef3c7;
	color: #f59e0b;
}

.custom-modal-icon-info {
	background: #dbeafe;
	color: #3b82f6;
}

.custom-modal-title {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	color: #1f2937;
	flex: 1;
}

.custom-modal-body {
	padding: 24px;
	max-height: 60vh;
	overflow-y: auto;
}

.custom-modal-message {
	margin: 0;
	font-size: 15px;
	color: #4b5563;
	line-height: 1.6;
}

.custom-prompt-input {
	width: 100%;
	padding: 12px 16px;
	border: 2px solid #e5e7eb;
	border-radius: 8px;
	font-size: 15px;
	margin-top: 16px;
	transition: all 0.2s;
	font-family: inherit;
}

.custom-prompt-input:focus {
	outline: none;
	border-color: #667eea;
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.custom-modal-footer {
	padding: 16px 24px 24px;
	display: flex;
	gap: 12px;
	justify-content: flex-end;
}

.custom-modal-btn {
	padding: 10px 24px;
	border: none;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s;
	font-family: inherit;
}

.custom-modal-btn-primary {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
}

.custom-modal-btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.custom-modal-btn-primary:active {
	transform: translateY(0);
}

.custom-modal-btn-secondary {
	background: #f3f4f6;
	color: #4b5563;
}

.custom-modal-btn-secondary:hover {
	background: #e5e7eb;
}

.custom-modal-btn-danger {
	background: #ef4444;
	color: white;
}

.custom-modal-btn-danger:hover {
	background: #dc2626;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
	.notification-container {
		top: 10px;
		right: 10px;
		left: 10px;
		max-width: none;
	}

	.notification-toast {
		min-width: auto;
		max-width: none;
	}

	.custom-modal {
		margin: 16px;
		width: calc(100% - 32px);
	}

	.custom-modal-header {
		padding: 20px 20px 12px;
	}

	.custom-modal-body {
		padding: 20px;
	}

	.custom-modal-footer {
		padding: 12px 20px 20px;
		flex-direction: column-reverse;
	}

	.custom-modal-btn {
		width: 100%;
	}
}
