/**
 * KOL Seller Marketplace - Unsaved Changes Warning Modal Styles
 */

/* Modal Overlay */
.kol-unsaved-modal-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 9999;
	align-items: center;
	justify-content: center;
}

.kol-unsaved-modal-overlay.is-visible {
	display: flex;
}

/* Modal Box - Centered */
.kol-unsaved-modal-box {
	background: white;
	border-radius: 8px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
	max-width: 400px;
	width: 90%;
	animation: kol-modal-slide-in 0.3s ease-out;
}

@keyframes kol-modal-slide-in {
	from {
		opacity: 0;
		transform: scale(0.95);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

/* Modal Header */
.kol-unsaved-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 24px;
	border-bottom: 1px solid #e5e7eb;
}

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

.kol-unsaved-modal-close {
	background: none;
	border: none;
	font-size: 24px;
	color: #6b7280;
	cursor: pointer;
	padding: 0;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	transition: all 0.2s ease;
}

.kol-unsaved-modal-close:hover,
.kol-unsaved-modal-close:focus {
	background: #f3f4f6;
	color: #1f2937;
	outline: none;
}

/* Modal Content */
.kol-unsaved-modal-content {
	padding: 16px 24px;
	font-size: 14px;
	color: #4b5563;
	line-height: 1.6;
}

.kol-unsaved-modal-content p {
	margin: 0;
}

/* Modal Actions */
.kol-unsaved-modal-actions {
	display: flex;
	gap: 12px;
	padding: 16px 24px;
	border-top: 1px solid #e5e7eb;
	justify-content: flex-end;
}

/* Buttons */
.kol-unsaved-btn-cancel,
.kol-unsaved-btn-leave {
	padding: 10px 16px;
	border: none;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
	white-space: nowrap;
}

.kol-unsaved-btn-cancel {
	background: #f3f4f6;
	color: #1f2937;
	border: 1px solid #d1d5db;
}

.kol-unsaved-btn-cancel:hover,
.kol-unsaved-btn-cancel:focus {
	background: #e5e7eb;
	outline: none;
}

.kol-unsaved-btn-leave {
	background: #ef4444;
	color: white;
}

.kol-unsaved-btn-leave:hover,
.kol-unsaved-btn-leave:focus {
	background: #dc2626;
	outline: none;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
	.kol-unsaved-modal-overlay {
		background: rgba(0, 0, 0, 0.7);
	}

	.kol-unsaved-modal-box {
		background: #1f2937;
		color: #f3f4f6;
	}

	.kol-unsaved-modal-header {
		border-bottom-color: #374151;
	}

	.kol-unsaved-modal-title {
		color: #f3f4f6;
	}

	.kol-unsaved-modal-close {
		color: #9ca3af;
	}

	.kol-unsaved-modal-close:hover,
	.kol-unsaved-modal-close:focus {
		background: #374151;
		color: #f3f4f6;
	}

	.kol-unsaved-modal-content {
		color: #d1d5db;
	}

	.kol-unsaved-modal-actions {
		border-top-color: #374151;
	}

	.kol-unsaved-btn-cancel {
		background: #374151;
		color: #f3f4f6;
		border-color: #4b5563;
	}

	.kol-unsaved-btn-cancel:hover,
	.kol-unsaved-btn-cancel:focus {
		background: #4b5563;
	}
}

/* Responsive Design */
@media (max-width: 480px) {
	.kol-unsaved-modal-box {
		width: 95%;
	}

	.kol-unsaved-modal-header {
		padding: 16px;
	}

	.kol-unsaved-modal-content {
		padding: 12px 16px;
	}

	.kol-unsaved-modal-actions {
		padding: 12px 16px;
		flex-direction: column;
	}

	.kol-unsaved-btn-cancel,
	.kol-unsaved-btn-leave {
		width: 100%;
	}
}
