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

/* Theme Variables */
:root {
	/* Shared Colors */
	--blue-primary: #3B82F6;
	--blue-hover: #2563EB;
	--orange-highlight: #F59E0B;
	--success-green: #10B981;
	--error-red: #DC2626;
	--hover-red: #B91C1C;

	/* Light Mode (Default) */
	--background: #ffffff;
	--calculator-bg: #f8f9fa;
	--text-primary: #2c3e50;
	--text-secondary: #6b7280;
	--input-bg: #ffffff;
	--border-color: rgba(0, 0, 0, 0.1);
	--input-text: #2c3e50;
	--card-bg: #ffffff;
	--slider-bg: #E1E4E8;
	--loader-bg: rgba(255, 255, 255, 0.9);
}

/* Base Styles */
[v-cloak] {
	display: none;
}

.dark {
	display: none;
}

html {
	background: transparent;
}
body {
	background: transparent;
	font-family: 'Nunito', sans-serif;
	margin: 0;
	padding: 0;
	color: var(--text-primary);
}

#app {
	margin: 0 auto;
	max-width: 800px;
	width: 100%;
}

.water-impact-calculator .wrap {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1rem;
}

.step, .water-impact-calculator, #app, body, html {
	/*border-radius: 24px;*/
}
.container-fluid {
	background: var(--background);
	margin-top: 0;
	padding: 0;
	position: relative;
}

/* Logo Area */
.logo-placeholder {
	text-align: center;
	min-height: 60px;
}

.logo-placeholder img {
	width: 100px;
}

/* Calculator Container */
.water-impact-calculator {
	background: var(--calculator-bg);
	padding: 3rem;
	margin: 0 auto 0;
	color: var(--text-primary);
}

/* Header */
.calculator-header {
	text-align: center;
}

.calculator-header h2 {
	font-size: 2.5rem;
	margin: 0;
	font-weight: 600;
}

/* Crypto Selector */
.crypto-selector label {
	font-size: 1.1.5rem;
	margin-bottom: 1rem;
	display: block;
}

/* Quick Select */
#quick-select {
	margin-bottom: 1rem;
}

#quick-select .row {
	display: flex;
	flex-wrap: wrap;
}

#quick-select .col-3 {
	flex: 0 0 25%;
	max-width: 25%;
}

#quick-select button {
	background: var(--input-bg);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	padding: 1rem;
	height: 80px;
	width: 100%;
	transition: all 0.2s ease;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--text-primary);
}

#quick-select button img {
	width: 40px;
	height: 40px;
	transition: all 0.2s ease;
}

#quick-select button.active {
	background: rgba(255, 255, 255, 0.2);
	border-color: var(--blue-primary);
	transform: scale(1.05);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Crypto Select Dropdown */
.crypto-select {
	width: 100%;
	padding: 1rem;
	background: var(--input-bg);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	color: var(--text-primary);
	font-size: 1.1rem;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23000000%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
	background-repeat: no-repeat;
	background-position: right 1rem center;
	background-size: 0.65rem auto;
	padding-right: 2.5rem;
}

.crypto-select option {
	background: var(--calculator-bg);
	color: var(--text-primary);
	padding: 0.5rem;
}

/* Amount Inputs */
.donation-section {
	margin-top: 1rem;
}

.amount-inputs {
	background: var(--card-bg);
	border-radius: 16px;
	padding: 1rem 1.5rem;
	display: flex;
	align-items: center;
	gap: 1.5rem;
	margin-bottom: 1rem;
}

.input-container {
	width: 200px;
	flex-shrink: 0;
}

.crypto-number-input {
	background: var(--input-bg);
	color: var(--text-primary);
	border: 1px solid var(--border-color);
	border-radius: 8px;
	padding: 1rem;
	font-size: 1.1.5rem;
	width: 100%;
	text-align: center;
	user-select: all;
	cursor: text;
}

.crypto-number-input:focus {
	outline: none;
	border-color: var(--blue-primary);
	box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.crypto-number-input:focus,
.crypto-number-input:active {
	user-select: all;
	-webkit-user-select: all;
	-moz-user-select: all;
	-ms-user-select: all;
}

.crypto-range-input {
	flex: 1;
	height: 6px;
	background: var(--slider-bg);
	border-radius: 3px;
	cursor: pointer;
	margin: 0;
	width: 100%;
}

.crypto-range-input::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 20px;
	height: 20px;
	background: var(--blue-primary);
	border-radius: 50%;
	border: 3px solid white;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	cursor: pointer;
}

.crypto-range-input::-moz-range-thumb {
	width: 20px;
	height: 20px;
	background: var(--blue-primary);
	border-radius: 50%;
	border: 3px solid white;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	cursor: pointer;
}

/* Impact Display */
.impact-display {
	background: var(--blue-primary);
	border-radius: 16px;
	padding: 1.5rem;
	color: white;
}

.impact-content {
	display: flex;
	align-items: center;
	gap: 1.5rem;
}

.impact-info {
	display: flex;
	align-items: center;
	gap: 1.5rem;
}

.impact-icons {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	font-size: 1.5rem;
	color: rgba(255, 255, 255, 0.9);
}

.impact-numbers {
	text-align: left;
}

.people-count {
	font-size: 3.5rem;
	font-weight: 700;
	color: var(--orange-highlight) !important;
	display: block;
	line-height: 1;
	margin-bottom: 0.25rem;
}

.impact-description {
	font-size: 1.1.5rem;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.9);
	margin: 0;
}

/* Calculation Details */
.calculation-details {
	text-align: center;
	margin: 1rem 0 0;
}

.conversion-info {
	color: var(--text-secondary);
	font-size: 0.9rem;
	margin-bottom: 0.5rem;
}

.disclaimer-text {
	color: var(--text-secondary);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	font-size: 0.9rem;
}

.disclaimer-text i {
	font-size: 1rem;
}

/* Donate Button */
.donate-button {
	width: 100%;
	background: var(--error-red);
}

.btn {
	margin-top: 1rem;
	padding: 1rem 1.5rem;
	font-size: 1rem;
	border: none;
	border-radius: 12px;
	color: white;
	font-weight: 600;
	transition: all 0.2s ease;
}

.donate-button:hover {
	background: var(--hover-red);
}

.donate-button:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* Form Elements */
.form-section {
	padding: 1.5rem;
	background: var(--calculator-bg);
	color: var(--text-primary);
}

.tax-receipt-toggle {
	margin-bottom: 1.5rem;
}

.form-switch {
	display: flex;
	align-items: center;
}

.form-switch label {
	margin-left: 1rem;
}

.form-check-input {
	width: 3.5em;
	height: 2em;
	margin-left: 1rem;
}

.form-check-input:checked {
	background-color: var(--blue-primary);
	border-color: var(--blue-primary);
}

/* Form Fields */
.form-floating {
	margin-bottom: 1rem;
	position: relative;
}

.form-floating > .form-control {
	height: calc(3.5rem + 2px);
	padding: 1rem 0.75rem;
	background: var(--input-bg);
	border: 1px solid var(--border-color);
	color: var(--text-primary);
}

.form-floating > label {
	color: var(--text-secondary);
	padding: 1rem 0.75rem;
}

.form-text {
	color: var(--text-secondary);
	font-size: 0.9rem;
	margin-top: 0.5rem;
}

/* Wallet Display */
.walletStuff {
	background: var(--card-bg);
	border-radius: 16px;
	padding: 1.5rem;
	margin-top: 1.5rem;
}

.walletStuff h3 {
	font-size: 1.1.5rem;
	font-weight: 600;
	color: var(--text-primary);
	margin-bottom: 1rem;
	word-break: break-all;
	cursor: pointer;
}

.copy-message {
	color: var(--text-secondary);
	font-size: 0.9rem;
	margin-top: 0.5rem;
}

/* QR Code */
#qr-wrapper {
	background: white;
	border-radius: 16px;
	padding: 1.5rem;
	margin: 1.5rem 0;
	position: relative;
	text-align: center;
}

#qr-image img {
	max-width: 100%;
	height: auto;
}

#asset-image {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 60px;
	height: 60px;
	background: white;
	border-radius: 50%;
	padding: 0.5rem;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#asset-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* Status Messages */
#countDown {
	margin: 1.5rem 0;
	position: relative;
}

#donationReceived,
#afterTimeOut,
#timeoutMessage {
	border-radius: 8px;
	padding: 1rem;
	text-align: center;
	margin-top: 0.5rem;
	font-size: 1rem;
}

#donationReceived {
	background: var(--success-green);
	color: white;
}

#afterTimeOut {
	background: var(--orange-highlight);
	color: white;
}

#timeoutMessage {
	background: var(--blue-primary);
	color: white;
}

#copyFlash {
	background: var(--success-green);
	color: white;
	border-radius: 8px;
	padding: 1rem;
	text-align: center;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	opacity: 0;
	transition: opacity 0.3s ease;
	z-index: 10;
}

#copyFlash.active {
	opacity: 1;
}

/* Loading State */
#loader {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: var(--loader-bg);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
}

#loader.active {
	opacity: 1;
	visibility: visible;
}

/* The Giving Block Logo */
.powered-by {
	margin-top: 3rem;
	text-align: center;
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
	:root {
		--calculator-bg: #2E3947;
		--text-primary: #ffffff;
		--text-secondary: rgba(255, 255, 255, 0.7);
		--input-bg: rgba(255, 255, 255, 0.1);
		--border-color: rgba(255, 255, 255, 0.2);
		--input-text: #ffffff;
		--card-bg: #37485e;
		--slider-bg: rgba(255, 255, 255, 0.2);
		--loader-bg: rgba(26, 36, 51, 0.9);
	}

	html, body {
		background: var(--calculator-bg);
	}

	.light {
		display: none;
	}

	.dark {
		display: block;
	}

	/* Override specific dark mode styles */

	#quick-select button.active {
		background: rgba(255, 255, 255, 0.2);
		border-color: var(--blue-primary);
	}

	.crypto-select {
		background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23FFFFFF%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
	}
}

/* Responsive Design */
@media (max-width: 768px) {

	.water-impact-calculator {
		padding: 1rem;
	}

	.calculator-header h2 {
		font-size: 1.5rem;
	}

	.input-container {
		width: 100%;
	}

	#quick-select button {
		height: 60px;
		padding: 0.5rem;
	}

	#quick-select button img {
		width: 30px;
		height: 30px;
	}

	.impact-content {
		flex-direction: column;
		text-align: center;
		gap: 1rem;
	}

	.impact-info {
		justify-content: center;
	}

	.impact-numbers {
		text-align: center;
	}

	.people-count {
		font-size: 2.5rem;
	}

	.impact-description {
		font-size: 1rem;
	}

	.amount-inputs {
		display: block;
	}
}

@media (max-width: 480px) {
	.calculator-header h2 {
		font-size: 1.25rem;
	}

	.logo-placeholder img {
		width: 50px;
	}



	.crypto-selector label {
		font-size: 1.1rem;
	}

	#quick-select button {
		height: 50px;
	}

	#quick-select button img {
		width: 24px;
		height: 24px;
	}

	.crypto-number-input {
		font-size: 1rem;
		padding: 0.75rem;
	}

	.impact-icons i {
		font-size: 1rem;
	}

	.form-switch .form-check-label {
		font-size: 1.1rem;
	}

	.donate-button {
		padding: 0.875rem 1rem;
		font-size: 1.1rem;
	}

	.amount-inputs {
		display: block;
	}
}

/* Utility Classes */
.text-center { text-align: center; }
.full { width: 100%; }

/* Remove Number Input Spinners */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

input[type=number] {
	-moz-appearance: textfield;
}



/* Animations */
@keyframes pulse {
	0% { transform: scale(1); }
	50% { transform: scale(1.02); }
	100% { transform: scale(1); }
}

.impact-display {
	background: var(--blue-primary);
	border-radius: 16px;
	padding: 1.5rem;
	margin: 1rem 0 0;
	color: white;
}

.impact-display.pulse {
	animation: pulse 0.5s ease-in-out;
}


.max-message {
	max-height: 0;
	background: rgb(74, 144, 226);
	border-radius: 8px;
	text-align: center;
	color: white;
	opacity: 0;
	overflow: hidden;
	transition: all 0.3s ease-in-out;
	box-sizing: border-box;
	margin: 1rem 0;
	visibility: hidden; /* Add this */
}

.max-message.show {
	opacity: 1;
	max-height: 400px;
	visibility: visible; /* Add this */
}

.max-message-content {
	padding: 30px;
	transform: translateY(20px);
	transition: all 0.3s ease-in-out;
}

.max-message.show .max-message-content {
	transform: translateY(0);
}

.max-message h3 {
	margin: 0 0 10px 0;
	font-size: 1.2em;
	color: #fff;
}

.max-message p {
	margin: 0;
}

[v-cloak] .max-message {
	display: none;
}


#navigation {
	margin: 1.5rem 0;
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	width: 100%;
}

#navigation button {
	padding: 1rem 1.5rem;
	width: 49%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
}

@media (max-width: 768px) {
	#navigation {
		flex-direction: column;
		gap: 1rem;
	}

	#navigation button {
		width: 100%;
		justify-content: center !important;
	}
}

#copyFlash.active {
	opacity: 1;
}

#countDown {
	position: relative;
}

#walletAddress {
	border: 1px solid;
	padding: .5rem;
	border-radius: 5px;
}