/* Floating Button Styles */
#zakatCalculatorButton {
	transition: all 0.3s ease;
	z-index: 9999;
	cursor: pointer;
}

#zakatCalculatorButton:hover {
	transform: scale(1.05);
}

#zakatCalculatorButton img {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Calculator Container Styles */
#zakatCalculatorContainer {
	z-index: 99999;
	backdrop-filter: blur(5px);
	transition: opacity 0.3s ease;
}

#zakatCalculatorContainer > div {
	max-width: 420px;
	width: 90%;
	margin: 0 auto;
	border-radius: 0.5rem;
	overflow: hidden;
	position: relative;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
	transition: transform 0.3s ease;
}

#zakatCalculatorContainer.hidden {
	opacity: 0;
	pointer-events: none;
}

#zakatCalculatorContainer:not(.hidden) {
	opacity: 1;
}

/* Close Button Styles */
#closeCalculator {
	position: absolute;
	top: 12px;
	right: 12px;
	background: rgba(0, 0, 0, 0.2);
	border-radius: 50%;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10;
	cursor: pointer;
	transition: all 0.2s ease;
}

#closeCalculator:hover {
	background: rgba(0, 0, 0, 0.4);
	transform: scale(1.1);
}

#closeCalculator svg {
	width: 20px;
	height: 20px;
	stroke-width: 2;
}

/* Form Elements */
#zakatForm {
	transition: all 0.3s ease;
}

#zakatForm.hidden {
	display: none;
}

select {
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%239CA3AF' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
	background-position: right 0.5rem center;
	background-repeat: no-repeat;
	background-size: 1.5em 1.5em;
}

select option {
	background-color: #1f2937;
	color: white;
	padding: 0.5rem;
}

/* Results Section */
#results {
	transition: all 0.3s ease;
}

#results.hidden {
	display: none;
}

/* Regenerate Button Styles */
#regenerateBtn {
	transition: all 0.3s ease;
	background-color: #374151;
	border: 1px solid #4b5563;
}

#regenerateBtn:hover {
	background-color: #4b5563;
	transform: translateY(-1px);
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Text Colors */
.text-green-400 {
	color: #34d399;
}

.text-red-400 {
	color: #f87171;
}

.text-yellow-400 {
	color: #fbbf24;
}

/* Responsive Adjustments */
@media (max-width: 640px) {
	#zakatCalculatorContainer > div {
		width: 95%;
		max-width: 95%;
		border-radius: 0.5rem;
	}

	#zakatCalculatorButton img {
		width: 45px;
		height: 45px;
	}

	#zakatCalculatorContainer > div {
		max-height: 95vh;
	}
}

/* Scrollbar Styles (for calculator content) */
#zakatCalculatorContainer > div::-webkit-scrollbar {
	width: 6px;
}

#zakatCalculatorContainer > div::-webkit-scrollbar-track {
	background: rgba(255, 255, 255, 0.1);
	border-radius: 3px;
}

#zakatCalculatorContainer > div::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.2);
	border-radius: 3px;
}

#zakatCalculatorContainer > div::-webkit-scrollbar-thumb:hover {
	background: rgba(255, 255, 255, 0.3);
}

/* Animation for modal entry */
@keyframes modalEntry {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

#zakatCalculatorContainer:not(.hidden) > div {
	animation: modalEntry 0.3s ease-out forwards;
}

/* Input focus styles */
input:focus,
select:focus {
	outline: none;
	border-color: #3b82f6;
	box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}
