/* ===== CSS VARIABLES FOR THEMEING ===== */
:root {
	--modal-bg: #ffffff;
	--modal-text: #1f2937; /* text-gray-800 */
	--scrollbar-thumb: #cbd5e1; /* gray-300 */
	--modal-overlay: rgba(0, 0, 0, 0.5);
}

.dark {
	--modal-bg: #1f2937; /* bg-gray-800 */
	--modal-text: #f3f4f6; /* text-gray-100 */
	--scrollbar-thumb: #4b5563; /* gray-600 */
	--modal-overlay: rgba(0, 0, 0, 0.75);
}

/* ===== MODAL BASE ===== */
.modal {
	position: fixed;
	inset: 0;
	background: var(--modal-overlay);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 50;
}

.modal.active {
	display: flex;
}

/* ===== MODAL CONTENT ===== */
.modal-content {
	background: var(--modal-bg);
	color: var(--modal-text);
	padding: 1.5rem;
	border-radius: 0.5rem;
	width: 100%;
	max-width: 28rem;
	transform: scale(0.95);
	opacity: 0;
	transition: all 0.2s ease;
}

.modal.active .modal-content {
	transform: scale(1);
	opacity: 1;
}

.modal-sm .modal-content {
	max-width: 20rem;
	text-align: center;
}

/* ===== COMPLETED TASK STYLE ===== */
.task-completed {
	text-decoration: line-through;
	opacity: 0.6;
}

/* ===== SCROLLBAR ===== */
#task-list::-webkit-scrollbar {
	width: 6px;
}

#task-list::-webkit-scrollbar-thumb {
	background: var(--scrollbar-thumb);
	border-radius: 4px;
}

/* ===== TRANSITIONS ===== */
button,
.fa-sun,
.fa-moon,
#add-category-inline {
	transition: all 0.2s ease-in-out;
}

.fa-sun,
.fa-moon {
	font-size: 21px;
}
