:root {
	color: rgba(255, 255, 220, 0.87);
	color-scheme: light dark;
	--detail-bg: #1e1e1e;
	--input-text: #fff8dc;
	--input-border: #5c4f1d;
	--btn-primary-bg: #facc15; /* amber-400 */
	--btn-primary-text: #1a1a1a;
	--btn-border: #d97706; /* amber-600 */
	--btn-radius: 0.5rem;
	--btn-padding: 0.75rem 1.25rem;
	--btn-font-size: 1rem;
	--btn-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
	--transition-fast: 0.1s;
	--transition-normal: 0.2s;
	--error-box-color: #fde68a; /* amber-300 */
	--error-box-text: #000;
	--warning-box-color: #fbbf24; /* amber-500 */
	--warning-box-text: #000;
	--normal-font-size: 14px;
}

:root[data-theme="dark"] {
	--detail-bg: #1e1e1e;
}

html, body {
	height: 100%;
	margin: 0;
	padding: 0;
	background: linear-gradient(0.25turn, #1a1a1a, #2c2c2c, #1f1f1f);
	color: #fef9c3;
	font-family: system-ui, sans-serif;
}

.app {
	background: rgba(0, 0, 0, 0.8);
}

.site-footer {
	text-align: center;
	color: rgba(255, 255, 200, 0.5);
	font-size: 14px;
	padding: 32px 16px 48px;
	background: transparent;
	margin-top: auto;
}

.site-footer a {
	color: #fefcbf;
	text-decoration: none;
	transition: color 0.2s ease, text-decoration 0.2s ease;
}

.site-footer a:hover {
	color: #fde047; /* amber-300 */
	text-decoration: underline;
}

.footer-links {
	display: flex;
	justify-content: center;
	gap: 24px;
	margin-top: 12px;
}

.wallet-container {
	display: grid;
	align-items: center;
	font-size: 13px;
	margin-bottom: 8px;
}

.wallet-connected-label {
	color: #d6bb46;
	font-weight: 400;
	font-family: sans-serif;
	text-overflow: ellipsis;
	white-space: nowrap;
	overflow: hidden;
}

.wallet-connect-button {
	padding: 6px 12px;
	font-size: 13px;
	background-color: #facc15;
	color: #1a1a1a;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.wallet-connect-button:hover {
	background-color: #eab308;
}

.wallet-balances {
	display: flex;
	justify-content: flex-end;
	gap: 16px;
	color: #fde68a;
	font-family: 'JetBrains Mono', monospace;
	font-size: 13px;
}

.form-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem;
}

input, textarea, select {
	color: var(--input-text);
	border: 1px solid var(--input-border);
	border-radius: 0.5rem;
	padding: 0.75rem 1rem;
	box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
	transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
	font-size: 1rem;
	outline: none;
	background-color: #2a2a2a;
	box-sizing: border-box;
}

input::placeholder, textarea::placeholder {
	color: rgba(255, 255, 200, 0.5);
}

input:focus, textarea:focus, select:focus {
	border-color: #facc15;
	box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.3);
}

input:disabled, textarea:disabled, select:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.reporting-panel-input {
	background-color: #2a2a2a;
	border: 1px solid #4b4b29;
	color: #fefce8;
	border-radius: 0.375rem;
	padding: 0.5rem;
	width: 100%;
	outline: none;
}

.reporting-panel-input input::placeholder {
	color: #e7e5c4;
}

.unit {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	max-width: 100px;
	font-size: 0.9rem;
	color: #fff9c4;
	flex-shrink: 0;
}

.button-primary {
	background-color: var(--btn-primary-bg);
	color: var(--btn-primary-text);
	padding: var(--btn-padding);
	font-size: var(--btn-font-size);
	border: none;
	border-radius: var(--btn-radius);
	box-shadow: var(--btn-shadow);
	cursor: pointer;
	transition: background-color var(--transition-normal), box-shadow var(--transition-normal), transform var(--transition-fast);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.button-primary:hover {
	background-color: #facc15;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.button-primary:active {
	transform: translateY(1px);
}

.button-primary:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.3);
}

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

.button-small {
	padding: 5px;
}

.crowdsourcer-header {
	display: flex;
	align-items: center;
	gap: 16px;
	color: #fef9c3;
	font-size: 18px;
	position: relative;
}

.crowdsourcer-header img {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: #111;
	padding: 6px;
	box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.4);
}

.crowdsourcer-header .sub-title {
	margin: 0;
	margin-top: 4px;
	font-size: 14px;
	color: #e7e5c4;
}

.main-window {
	max-width: 900px;
	margin: 2rem auto;
	padding: 2rem;
	background: #2c2c2c;
	border-radius: 1rem;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	margin-top: 0;
}

.form-group {
	display: flex;
	flex-direction: column;
}

.form-group label {
	font-size: 0.875rem;
	color: #fefcbf;
	margin-bottom: 0.25rem;
}

.form-group .note {
	font-size: 0.75rem;
	color: #d6bb46;
	margin-left: 0.5rem;
}

.warning-box {
	padding: 10px;
	color: var(--warning-box-text);
	background-color: var(--warning-box-color);
	border-radius: 0.5rem;
	text-align: center;
}

.error-box {
	padding: 10px;
	color: var(--error-box-text);
	background-color: var(--error-box-color);
	border-radius: 0.5rem;
	text-align: center;
}

.micah-buttons {
	gap: 1em;
	padding-bottom: 1em;
	display: flex;
	flex-flow: wrap;
}

h3 {
	margin-bottom: 0px;
	margin-top: 0em;
}

.funding-status {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding-bottom: 30px;
}

.funding-circle {
	position: relative;
	width: 130px;
	height: 130px;
	border-radius: 50%;
	border: 8px solid #facc15; /* yellow-400 */
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fde68a; /* yellow-300 */
	font-size: 2rem;
	font-weight: bold;
	background: radial-gradient(circle at center, #1f1f1f 60%, #111);
	box-shadow:
		0 0 10px #facc15aa,
		0 0 20px #facc15aa inset;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	animation: pulse-glow 6s infinite linear;
}

.funding-circle:hover {
	transform: scale(1.05);
	box-shadow:
		0 0 15px #fde68a,
		0 0 25px #facc15 inset;
}

@keyframes pulse-glow {
	0% {
		box-shadow: 0 0 10px #facc15aa, 0 0 20px #facc15aa inset;
	}
	50% {
		box-shadow: 0 0 15px #fde68a, 0 0 30px #fde68a inset;
	}
	100% {
		box-shadow: 0 0 10px #facc15aa, 0 0 20px #facc15aa inset;
	}
}

.balance {
	margin-top: 8px;
	color: #d1d5db;
	font-size: 0.9rem;
}

.highlight {
	padding: 20px;
	border-radius: 20px;
	background:rgba(1, 1, 1, 0.2);
	font-size: larger;
}

a {
	color: var(--btn-primary-bg);
}

.external-link {
	stroke: var(--btn-primary-bg);
}
