/* This class is used by JavaScript to hide/show elements */
/* Use !important to override other display properties */
/* .hidden {
	display: none !important;
} */

/* --- Corrected Modal Styling --- */
/* Targets the ID used in your HTML */
#customModalOverlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.7);
	/* This is required for the centering properties to work */
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 1000;
	/* Added for smooth fade-in effect */
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* New class to control visibility with transition */
#customModalOverlay.visible {
	opacity: 1;
	visibility: visible;
}

/* Targets the ID used in your HTML */
#customModalContent {
	background-color: #ffffff; /* Changed to white for better contrast */
	color: #1e293b; /* Dark text color */
	padding: 2rem;
	border-radius: 0.75rem;
	box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
	max-width: 400px;
	width: 90%;
	text-align: center;
	position: relative;
	border: 1px solid #e2e8f0; /* Lighter border */
	/* Added for smooth scale-in effect */
	transform: scale(0.95);
	transition: transform 0.3s ease;
}

#customModalOverlay.visible #customModalContent {
	transform: scale(1);
}

#modalCloseBtn {
	position: absolute;
	top: 0.5rem;
	right: 0.75rem;
	background: none;
	border: none;
	font-size: 1.75rem;
	color: #64748b; /* Gray color for better contrast */
	cursor: pointer;
	transition: color 0.2s ease;
}
#modalCloseBtn:hover {
	color: #1e293b;
}

#modalHeader {
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 1rem;
}

#modalMessage {
	margin-bottom: 1.5rem;
	color: #475569; /* Slightly lighter gray for body text */
	line-height: 1.6;
}

#modalOkBtn {
	padding: 0.75rem 1.5rem;
	background-color: #0ea5e9; /* sky-500 */
	color: white;
	font-weight: 600;
	border: none;
	border-radius: 0.5rem;
	cursor: pointer;
	transition: background-color 0.2s ease;
}
#modalOkBtn:hover {
	background-color: #0284c7; /* sky-600 */
}

/* Success/Error specific styles */
.modal-success #modalHeader {
	color: #22c55e; /* green-500 */
}

.modal-error #modalHeader {
	color: #ef4444; /* red-500 */
}
