/* Modal Overlay */
.modal {
	display: none;
	position: fixed;
	z-index: 10000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0, 0, 0, 0.7);
	animation: fadeIn 0.3s ease;
}

.modal.active {
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Modal Content */
.modal-content {
	background-color: #1e1e1e;
	margin: auto;
	padding: 0;
	border: 1px solid #444;
	width: 90%;
	max-width: 500px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
	animation: slideDown 0.3s ease;
	position: relative;
}

.modal-body {
	padding: 3rem 2rem;
	text-align: center;
}

.modal-icon {
	margin-bottom: 1.5rem;
}

.modal-icon.success span {
	color: #4caf50;
	font-size: 4rem;
}

.modal-icon.error span {
	color: #f44336;
	font-size: 4rem;
}

.modal-body h2 {
	margin-bottom: 1rem;
	color: #fff;
}

.modal-body p {
	margin-bottom: 2rem;
	color: #aaa;
	font-size: 1.1rem;
}

.modal-close {
	position: absolute;
	right: 1rem;
	top: 1rem;
	color: #aaa;
	font-size: 2rem;
	font-weight: bold;
	cursor: pointer;
	line-height: 1;
	transition: color 0.3s ease;
}

.modal-close:hover,
.modal-close:focus {
	color: #fff;
}

.modal-button {
	margin-top: 1rem;
}

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

@keyframes slideDown {
	from {
		transform: translateY(-50px);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

/* Responsive */
@media screen and (max-width: 736px) {
	.modal-content {
		width: 95%;
	}

	.modal-body {
		padding: 2rem 1.5rem;
	}

	.modal-icon.success span,
	.modal-icon.error span {
		font-size: 3rem;
	}
}

