@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');

*,
*:before,
*:after {
	box-sizing: border-box;
}

body {
	line-height: 1.5;
	min-height: 100vh;
	font-family: "Inter", sans-serif;
	color: #202020;
	background-color: #F6f6f6;
}

/* Scrollbar subtle */
* {
	scrollbar-width: 0;
}

*::-webkit-scrollbar {
	background-color: transparent;
	width: 12px;
}

*::-webkit-scrollbar-thumb {
	border-radius: 99px;
	background-color: #ddd;
	border: 4px solid #fff;
}

/* Overlay that darkens the page */
.modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	opacity: 0;
	visibility: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Active overlay */
.modal-overlay.active {
	background: rgba(0,0,0,0.45);
	opacity: 1;
	visibility: visible;
}

/* Modal container */
.modal-container {
	width: 100%;
	max-width: 520px;
	margin: 0 20px;
	background-color: #fff;
	border-radius: 16px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: 0 15px 30px rgba(0,0,0,0.25);
	transform: translateY(12px) scale(0.96);
	opacity: 0;
	transition: transform 320ms cubic-bezier(.2,.9,.2,1), opacity 220ms ease;
}

/* When modal is active */
.modal-overlay.active .modal-container {
	transform: translateY(0) scale(1);
	opacity: 1;
}

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

.modal-container-title {
	display: flex;
	align-items: center;
	gap: 8px;
	line-height: 1;
	font-weight: 700;
	font-size: 1.125rem;
	margin: 0;
}

/* Body */
.modal-container-body {
	padding: 20px 24px 28px;
	max-height: 60vh;
	overflow-y: auto;
}

.rtf p {
	margin: 0 0 1em;
	color: #333;
	line-height: 1.5;
}

/* Footer */
.modal-container-footer {
	padding: 16px 24px;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
	border-top: 1px solid #e6e6e6;
}

/* Buttons */
.button {
	padding: 10px 16px;
	border-radius: 10px;
	border: none;
	font-weight: 600;
	cursor: pointer;
	transition: transform 0.15s ease, background-color 0.15s ease;
}

/* Neutral Close */
.button.is-ghost {
	background-color: #f0f0f0;
	color: #333;
}

.button.is-ghost:hover {
	transform: translateY(-2px);
	background-color: #e0e0e0;
}

/* 🟢 Approve Button */
.button.is-approve {
	background-color: #4CAF50;
	color: white;
}

.button.is-approve:hover {
	transform: translateY(-2px);
	background-color: #43a047;
}

/* 🔴 Reject Button */
.button.is-reject {
	background-color: #E53935;
	color: white;
}

.button.is-reject:hover {
	transform: translateY(-2px);
	background-color: #d32f2f;
}

/* Close icon */
.icon-button {
	padding: 0;
	border: 0;
	background-color: transparent;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	border-radius: 8px;
}

/* Responsive */
@media (max-width: 600px) {
	.modal-container {
		width: 92%;
		max-width: 420px;
	}

	.modal-container-body {
		padding: 18px;
	}

	.modal-container-header, .modal-container-footer {
		padding: 12px 16px;
	}
}