/* CSS Variables for Theme Switching */
:root {
	/* Light theme (default) */
	--bg-primary: #fbfcff;
	--bg-secondary: #f4f7ff;
	--bg-gradient: radial-gradient(1200px 600px at 80% -10%, #e9f3ff, transparent),
		linear-gradient(180deg, #fbfcff, #f4f7ff);
	--text-primary: #0f172a;
	--text-secondary: #475569;
	--text-muted: #64748b;
	--card-bg: #ffffffcc;
	--card-border: #e2e8f0;
	--input-bg: #fff;
	--input-border: #cbd5e1;
	--accent-color: #0ea5e9;
	--accent-gradient: linear-gradient(135deg, #2563eb, #22d3ee);
	--shadow: 0 10px 30px rgba(2, 8, 23, 0.06);
	--theme-icon: '🌙';
}

[data-theme="dark"] {
	/* Dark theme */
	--bg-primary: #0f172a;
	--bg-secondary: #1e293b;
	--bg-gradient: radial-gradient(1200px 600px at 80% -10%, #1e293b, transparent),
		linear-gradient(180deg, #0f172a, #1e293b);
	--text-primary: #f8fafc;
	--text-secondary: #cbd5e1;
	--text-muted: #94a3b8;
	--card-bg: #1e293bcc;
	--card-border: #334155;
	--input-bg: #334155;
	--input-border: #475569;
	--accent-color: #22d3ee;
	--accent-gradient: linear-gradient(135deg, #22d3ee, #0ea5e9);
	--shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
	--theme-icon: '☀️';
}

/* Reset & base */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
	margin: 0;
	font-family: 'Heebo', system-ui, -apple-system, Segoe UI, Roboto, 'Noto Sans Hebrew', Arial, sans-serif;
	background: var(--bg-gradient);
	color: var(--text-primary);
	transition: background 0.3s ease, color 0.3s ease;
}

.app-header {
	padding: 32px 20px 12px;
	text-align: center;
}

.theme-toggle-row {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 16px;
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
}

.logo-container {
	margin-bottom: 16px;
	text-align: center;
}

.theme-switch-container {
	display: flex;
	align-items: center;
	gap: 12px;
	background: var(--card-bg);
	padding: 8px 16px;
	border-radius: 25px;
	border: 1px solid var(--card-border);
	backdrop-filter: blur(6px);
	box-shadow: var(--shadow);
}

.theme-label {
	font-size: 18px;
	transition: opacity 0.3s ease;
}

.theme-switch {
	position: relative;
	display: inline-block;
	width: 50px;
	height: 24px;
}

.theme-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: var(--input-bg);
	border: 1px solid var(--input-border);
	transition: 0.3s;
	border-radius: 24px;
}

.slider:before {
	position: absolute;
	content: "";
	height: 18px;
	width: 18px;
	left: 2px;
	bottom: 2px;
	background: var(--accent-color);
	transition: 0.3s;
	border-radius: 50%;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked + .slider {
	background: var(--accent-color);
}

input:checked + .slider:before {
	transform: translateX(26px);
	background: white;
}

.slider:hover {
	box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

/* Dark mode specific styling */
[data-theme="dark"] .theme-label:first-child {
	opacity: 0.5;
}

[data-theme="dark"] .theme-label:last-child {
	opacity: 1;
}

[data-theme="light"] .theme-label:first-child {
	opacity: 1;
}

[data-theme="light"] .theme-label:last-child {
	opacity: 0.5;
}

.logo-link {
	display: inline-block;
	text-decoration: none;
	border-radius: 12px;
	transition: all 0.2s ease;
}

.logo-link:hover {
	transform: scale(1.05);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.site-logo {
	width: 80px;
	height: 80px;
	transition: transform 0.2s ease;
}
.app-header h1 {
	margin: 0 0 8px;
	font-weight: 900;
	letter-spacing: -0.02em;
	font-size: 36px;
}
.app-header .subtitle {
	margin: 0 auto;
	max-width: 780px;
	color: var(--text-secondary);
}
.app-header .subtitle-info {
	margin: 8px auto 0;
	max-width: 780px;
	color: var(--text-muted);
	font-size: 14px;
	font-weight: 500;
}

/* Public Stats */
.public-stats {
	display: flex;
	justify-content: center;
	gap: 40px;
	margin-top: 20px;
	padding: 20px;
	background: var(--card-bg);
	border-radius: 16px;
	border: 1px solid var(--card-border);
	max-width: 400px;
	margin-left: auto;
	margin-right: auto;
	backdrop-filter: blur(6px);
	box-shadow: var(--shadow);
}
.stat-item {
	text-align: center;
}
.stat-number {
	display: block;
	font-size: 28px;
	font-weight: 900;
	color: var(--accent-color);
	line-height: 1;
}
.stat-label {
	display: block;
	font-size: 14px;
	color: var(--text-muted);
	font-weight: 600;
	margin-top: 4px;
}

.container {
	max-width: 1100px;
	margin: 0 auto;
	padding: 12px 20px 40px;
}

/* SEO Intro Section */
.seo-intro {
	background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
	color: white;
	padding: 30px;
	border-radius: 15px;
	margin-bottom: 30px;
	text-align: center;
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.seo-intro h2 {
	font-size: 1.8rem;
	font-weight: 700;
	margin-bottom: 15px;
	line-height: 1.3;
}

.seo-intro p {
	font-size: 1.1rem;
	line-height: 1.6;
	margin: 0;
	opacity: 0.95;
}

@media (max-width: 768px) {
	.seo-intro {
		padding: 20px;
		margin-bottom: 20px;
	}
	
	.seo-intro h2 {
		font-size: 1.5rem;
	}
	
	.seo-intro p {
		font-size: 1rem;
	}
}

/* Navigation */
.nav-buttons {
	display: flex;
	justify-content: center;
	margin-bottom: 20px;
	gap: 8px;
}
.nav-btn {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	color: #64748b;
	padding: 12px 24px;
	border-radius: 12px;
	cursor: pointer;
	font-weight: 600;
	transition: all .2s ease;
}
.nav-btn:hover {
	background: #f1f5f9;
	border-color: #cbd5e1;
}
.nav-btn.active {
	background: linear-gradient(135deg, #2563eb, #22d3ee);
	color: white;
	border-color: #2563eb;
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}
.view {
	display: none !important;
}
.view.active {
	display: block !important;
}

/* Calculator View Layout */
#calculator-view.active {
	display: grid !important;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 20px;
}

.card {
	background: var(--card-bg);
	backdrop-filter: blur(6px);
	border: 1px solid var(--card-border);
	border-radius: 16px;
	padding: 20px;
	box-shadow: var(--shadow);
	transition: background 0.3s ease, border-color 0.3s ease;
}
.card h2 { margin-top: 0; }

.form-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
}

label { font-weight: 600; color: var(--text-primary); }
select, input[type="range"], input[type="text"], input[type="number"] {
	width: 100%;
	padding: 12px 14px;
	border-radius: 12px;
	border: 1px solid var(--input-border);
	background: var(--input-bg);
	color: var(--text-primary);
	transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.inline-input { display: flex; align-items: center; gap: 10px; }
.pill {
	background: #0ea5e9;
	color: white;
	padding: 6px 10px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 12px;
}

/* Number input with +/- buttons */
.number-input-container {
	display: flex;
	align-items: center;
	gap: 0;
	border: 1px solid #cbd5e1;
	border-radius: 12px;
	background: #fff;
	overflow: hidden;
}

.number-btn {
	background: #f8fafc;
	border: none;
	color: #0f172a;
	font-size: 18px;
	font-weight: 700;
	width: 40px;
	height: 48px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
}

.number-btn:hover {
	background: #e2e8f0;
	color: #0ea5e9;
}

.number-btn:active {
	background: #cbd5e1;
	transform: scale(0.95);
}

.minus-btn {
	border-right: 1px solid #e2e8f0;
}

.plus-btn {
	border-left: 1px solid #e2e8f0;
}

.number-input {
	border: none;
	background: transparent;
	text-align: center;
	font-size: 16px;
	font-weight: 600;
	color: #0f172a;
	width: 60px;
	padding: 12px 8px;
	outline: none;
}

.number-input::-webkit-outer-spin-button,
.number-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

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

.primary {
	margin-top: 8px;
	background: var(--accent-gradient);
	color: white;
	border: none;
	padding: 14px 18px;
	border-radius: 14px;
	font-weight: 800;
	cursor: pointer;
	box-shadow: 0 8px 18px rgba(34, 211, 238, 0.35);
	transition: transform .08s ease, filter .2s ease;
}
.primary:hover { filter: brightness(1.05); }
.primary:active { transform: translateY(1px); }

/* Cheque */
.cheque {
	position: relative;
	margin-top: 10px;
	background: repeating-linear-gradient(45deg, #f6f9ff, #f6f9ff 12px, #f1f5ff 12px, #f1f5ff 24px);
	border: 1px dashed #94a3b8;
	border-radius: 14px;
	padding: 18px;
	min-height: 180px;
	box-shadow: inset 0 0 0 3px #ffffffaa;
}
.cheque-header {
	display: flex;
	justify-content: space-between;
	color: #334155;
	font-weight: 600;
}
.cheque-body { margin-top: 12px; }
.cheque .amount {
	font-size: 42px;
	font-weight: 900;
	letter-spacing: 0.5px;
	color: var(--accent-color);
}
.cheque .amount-words { color: var(--text-primary); opacity: 0.7; }
.cheque .memo { margin-top: 8px; color: var(--text-secondary); }

/* Vote */
.vote { 
	margin-top: 20px; 
	padding: 20px;
	background: var(--card-bg);
	border-radius: 16px;
	border: 1px solid var(--card-border);
	backdrop-filter: blur(6px);
	box-shadow: var(--shadow);
}
.vote-title { 
	margin: 0 0 8px; 
	font-weight: 700; 
	font-size: 18px;
	color: var(--text-primary);
	text-align: center;
}
.vote-subtitle {
	margin: 0 0 16px;
	font-size: 14px;
	color: var(--text-muted);
	text-align: center;
	font-weight: 500;
}
.vote-actions { 
	display: flex; 
	gap: 12px; 
	flex-wrap: wrap; 
	justify-content: center;
	margin-bottom: 16px;
}
.chip {
	border: 2px solid var(--card-border);
	background: var(--input-bg);
	color: var(--text-primary);
	padding: 12px 20px;
	border-radius: 25px;
	cursor: pointer;
	transition: all .2s ease;
	font-weight: 600;
	position: relative;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.chip::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
	transition: left .5s ease;
}
.chip:hover { 
	background: var(--card-bg); 
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
	border-color: var(--input-border);
}
.chip:hover::before {
	left: 100%;
}
.chip:active { 
	transform: translateY(0px);
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.chip[data-vote="tooLow"]:hover {
	background: linear-gradient(135deg, #fef3c7, #fde68a);
	border-color: #f59e0b;
	color: #92400e;
}
.chip[data-vote="justRight"]:hover {
	background: linear-gradient(135deg, #d1fae5, #a7f3d0);
	border-color: #10b981;
	color: #065f46;
}
.chip[data-vote="tooHigh"]:hover {
	background: linear-gradient(135deg, #fee2e2, #fecaca);
	border-color: #ef4444;
	color: #991b1b;
}
.vote-stats { 
	color: var(--text-muted); 
	margin: 0;
	text-align: center;
	font-size: 14px;
	font-weight: 500;
}
.vote-stats strong {
	color: var(--accent-color);
	font-weight: 700;
}


/* Amount change highlight animation */
.amount-change-highlight {
	animation: amountChangePulse 2s ease-in-out;
}

@keyframes amountChangePulse {
	0% { 
		background: linear-gradient(135deg, #fef3c7, #fde68a);
		transform: scale(1);
	}
	25% { 
		background: linear-gradient(135deg, #fde68a, #f59e0b);
		transform: scale(1.05);
		box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
	}
	50% { 
		background: linear-gradient(135deg, #f59e0b, #d97706);
		transform: scale(1.02);
		box-shadow: 0 6px 25px rgba(245, 158, 11, 0.4);
	}
	75% { 
		background: linear-gradient(135deg, #fde68a, #f59e0b);
		transform: scale(1.01);
		box-shadow: 0 4px 20px rgba(245, 158, 11, 0.2);
	}
	100% { 
		background: transparent;
		transform: scale(1);
		box-shadow: none;
	}
}

/* Public Votes */
.public-votes-card {
	max-width: 800px;
	margin: 0 auto;
}
.votes-subtitle {
	text-align: center;
	color: #64748b;
	font-size: 14px;
	margin-bottom: 20px;
	font-weight: 500;
}
.public-votes-list {
	max-height: 60vh;
	overflow-y: auto;
}
.public-vote-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px;
	border-bottom: 1px solid #f1f5f9;
	transition: background .2s ease;
	animation: slideIn 0.3s ease;
}
.public-vote-item:hover {
	background: #f8fafc;
}
.public-vote-item:last-child {
	border-bottom: none;
}

.public-vote-left {
	flex: 1;
}
.public-vote-scenario {
	font-size: 14px;
	color: #0f172a;
	font-weight: 600;
	margin-bottom: 4px;
}
.public-vote-amount {
	font-size: 18px;
	font-weight: 700;
	color: #0ea5e9;
	margin-bottom: 4px;
}
.public-vote-time {
	font-size: 12px;
	color: #64748b;
}
.public-vote-right {
	display: flex;
	align-items: center;
	gap: 12px;
}
.public-vote-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 600;
	padding: 8px 12px;
	border-radius: 8px;
	min-width: 100px;
	justify-content: center;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.public-vote-badge:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.public-vote-badge.too-low {
	background: linear-gradient(135deg, #fef3c7, #fde68a);
	border: 2px solid #f59e0b;
	color: #92400e;
}
.public-vote-badge.just-right {
	background: linear-gradient(135deg, #d1fae5, #a7f3d0);
	border: 2px solid #10b981;
	color: #065f46;
}
.public-vote-badge.too-high {
	background: linear-gradient(135deg, #fee2e2, #fecaca);
	border: 2px solid #ef4444;
	color: #991b1b;
}
.empty-state {
	text-align: center;
	padding: 40px 20px;
	color: #64748b;
}
.empty-state p {
	margin: 8px 0;
}
.empty-state p:first-child {
	font-size: 18px;
	font-weight: 600;
	color: #475569;
}

/* Vote Notifications */
.vote-notifications {
	position: fixed;
	bottom: 20px;
	left: 20px;
	z-index: 1000;
	pointer-events: none;
	max-width: 300px;
}
.vote-notification {
	background: linear-gradient(135deg, #10b981, #059669);
	color: white;
	padding: 8px 12px;
	border-radius: 8px;
	margin-bottom: 6px;
	box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
	transform: translateX(-100%);
	opacity: 0;
	transition: all 0.3s ease;
	pointer-events: auto;
	display: flex;
	align-items: center;
	gap: 6px;
	font-weight: 500;
	font-size: 12px;
}
.vote-notification.show {
	transform: translateX(0);
	opacity: 1;
}
.vote-notification .vote-icon {
	font-size: 16px;
}

.app-footer { text-align: center; color: #64748b; padding: 20px; }

.footer-seo-content {
	background: var(--bg-primary);
	padding: 30px;
	border-radius: 15px;
	margin-bottom: 20px;
	text-align: right;
	border: 1px solid var(--border-color);
}

.footer-seo-content h3 {
	color: var(--text-primary);
	font-size: 1.4rem;
	font-weight: 600;
	margin-bottom: 15px;
}

.footer-seo-content p {
	font-size: 1rem;
	line-height: 1.6;
	margin-bottom: 15px;
	color: var(--text-secondary);
}

.footer-seo-content ul {
	text-align: right;
	margin: 15px 0;
	padding-right: 20px;
}

.footer-seo-content li {
	font-size: 1rem;
	line-height: 1.6;
	margin-bottom: 8px;
	color: var(--text-secondary);
}

.footer-info {
	margin-top: 20px;
}

.footer-links {
	margin: 12px 0;
}
.footer-link {
	color: #64748b;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	transition: color 0.2s ease;
	margin: 0 12px;
}
.footer-link:hover {
	color: #0ea5e9;
}
.creator-credit {
	margin-top: 12px;
	font-size: 12px;
	color: #94a3b8;
}
.creator-credit a {
	color: #64748b;
	text-decoration: none;
	transition: all 0.2s ease;
	display: inline-block;
}
.creator-credit a:hover {
	color: #0ea5e9;
	transform: scale(1.1);
}
.creator-credit a[title] {
	font-size: 16px;
	margin: 0 4px;
	text-decoration: none;
}

/* Micro interactions */
.pop {
	animation: pop .24s ease;
}
.vote-impact {
	animation: voteImpact .6s ease;
}
@keyframes pop {
	0% { transform: scale(0.98); opacity: 0.6; }
	100% { transform: scale(1); opacity: 1; }
}
@keyframes voteImpact {
	0% { transform: scale(0.95); opacity: 0.8; }
	25% { transform: scale(1.05); opacity: 1; }
	50% { transform: scale(0.98); opacity: 1; }
	75% { transform: scale(1.02); opacity: 1; }
	100% { transform: scale(1); opacity: 1; }
}
@keyframes slideIn {
	0% { transform: translateX(-20px); opacity: 0; }
	100% { transform: translateX(0); opacity: 1; }
}

/* Responsive tweaks */
@media (min-width: 900px) {
	.form-card { align-self: start; position: sticky; top: 16px; }
}

/* Screen Reader Only */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Accessibility Widget */
.accessibility-toggle {
	position: fixed;
	bottom: 20px;
	left: 20px;
	z-index: 9999;
	background: #3b82f6;
	color: white;
	padding: 16px;
	border-radius: 50%;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	border: 2px solid white;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.accessibility-toggle:hover {
	background: #2563eb;
	transform: scale(1.05);
}

.accessibility-toggle:focus {
	outline: none;
	box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.3);
}

.accessibility-panel {
	position: fixed;
	bottom: 100px;
	left: 20px;
	right: 20px;
	z-index: 9998;
	background: white;
	border-radius: 12px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
	border: 2px solid #e5e7eb;
	padding: 24px;
	max-height: 80vh;
	overflow-y: auto;
	display: none;
}

.accessibility-content {
	text-align: right;
}

.accessibility-content h3 {
	font-size: 18px;
	font-weight: 700;
	color: #1f2937;
	margin: 0 0 16px 0;
}

.accessibility-options {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.accessibility-option {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px;
	border-radius: 8px;
	border: 2px solid #e5e7eb;
	background: #f9fafb;
	color: #374151;
	cursor: pointer;
	transition: all 0.2s ease;
	text-align: right;
}

.accessibility-option:hover {
	background: #f3f4f6;
}

.accessibility-option.active {
	background: #3b82f6;
	color: white;
	border-color: #3b82f6;
}

.option-content {
	display: flex;
	align-items: center;
	gap: 8px;
}

.option-icon {
	flex-shrink: 0;
}

.option-status {
	font-size: 14px;
	font-weight: 500;
}

.accessibility-reset {
	width: 100%;
	background: #e5e7eb;
	color: #374151;
	padding: 12px;
	border-radius: 8px;
	border: none;
	cursor: pointer;
	transition: background-color 0.2s ease;
	font-weight: 500;
	margin-top: 8px;
}

.accessibility-reset:hover {
	background: #d1d5db;
}

.accessibility-footer {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid #e5e7eb;
}

.accessibility-footer p {
	font-size: 12px;
	color: #6b7280;
	text-align: center;
	margin: 0;
}

/* Responsive design for accessibility widget */
@media (min-width: 768px) {
	.accessibility-toggle {
		top: 20px;
		bottom: auto;
	}
	
	.accessibility-panel {
		top: 80px;
		bottom: auto;
		right: auto;
		min-width: 320px;
		max-width: 400px;
	}
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
	.accessibility-toggle,
	.accessibility-option,
	.accessibility-reset {
		transition: none;
	}
}

/* High contrast support */
@media (prefers-contrast: high) {
	.accessibility-toggle {
		border-color: #000;
	}
	
	.accessibility-panel {
		border-color: #000;
	}
	
	.accessibility-option {
		border-color: #000;
	}
}

/* Theme Toggle Styles */
.header-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 16px;
}

.theme-toggle-container {
	position: relative;
}

.theme-toggle {
	background: #f8fafc;
	border: 2px solid #e2e8f0;
	border-radius: 50%;
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.3s ease;
	font-size: 20px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.theme-toggle:hover {
	transform: scale(1.1);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.theme-toggle:active {
	transform: scale(0.95);
}

.theme-icon {
	transition: transform 0.3s ease;
}

/* Dark Mode Styles */
[data-theme="dark"] {
	--bg-primary: #0f172a;
	--bg-secondary: #1e293b;
	--bg-tertiary: #334155;
	--text-primary: #f1f5f9;
	--text-secondary: #cbd5e1;
	--text-muted: #94a3b8;
	--border-color: #475569;
	--border-light: #334155;
	--shadow: rgba(0, 0, 0, 0.3);
	--accent: #3b82f6;
	--accent-hover: #2563eb;
	--success: #10b981;
	--warning: #f59e0b;
	--error: #ef4444;
}

[data-theme="dark"] body {
	background: radial-gradient(1200px 600px at 80% -10%, #1e293b, transparent),
		linear-gradient(180deg, #0f172a, #1e293b);
	color: var(--text-primary);
}

[data-theme="dark"] .app-header .subtitle {
	color: var(--text-secondary);
}

[data-theme="dark"] .app-header .subtitle-info {
	color: var(--text-muted);
}

[data-theme="dark"] .card {
	background: var(--bg-secondary);
	border: 1px solid var(--border-color);
	box-shadow: 0 4px 6px -1px var(--shadow), 0 2px 4px -1px var(--shadow);
}

[data-theme="dark"] .form-grid label {
	color: var(--text-primary);
}

[data-theme="dark"] .form-grid select,
[data-theme="dark"] .form-grid input {
	background: var(--bg-tertiary);
	border: 1px solid var(--border-color);
	color: var(--text-primary);
}

[data-theme="dark"] .form-grid select:focus,
[data-theme="dark"] .form-grid input:focus {
	border-color: var(--accent);
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

[data-theme="dark"] .form-grid select option {
	background: var(--bg-tertiary);
	color: var(--text-primary);
}

[data-theme="dark"] .number-input-container {
	background: var(--bg-tertiary);
	border: 1px solid var(--border-color);
}

[data-theme="dark"] .number-btn {
	background: var(--bg-secondary);
	border: 1px solid var(--border-color);
	color: var(--text-primary);
}

[data-theme="dark"] .number-btn:hover {
	background: var(--bg-primary);
}

[data-theme="dark"] .number-input {
	background: transparent;
	color: var(--text-primary);
}

[data-theme="dark"] .primary {
	background: var(--accent);
	color: white;
}

[data-theme="dark"] .primary:hover {
	background: var(--accent-hover);
}

[data-theme="dark"] .cheque {
	background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
	border: 2px solid var(--border-color);
	color: var(--text-primary);
}

[data-theme="dark"] .cheque-header {
	border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .vote-actions .chip {
	background: var(--bg-tertiary);
	border: 1px solid var(--border-color);
	color: var(--text-primary);
}

[data-theme="dark"] .vote-actions .chip:hover {
	background: var(--bg-primary);
	border-color: var(--accent);
}

[data-theme="dark"] .vote-actions .chip.selected {
	background: var(--accent);
	border-color: var(--accent);
	color: white;
}

[data-theme="dark"] .nav-btn {
	background: var(--bg-tertiary);
	border: 1px solid var(--border-color);
	color: var(--text-secondary);
}

[data-theme="dark"] .nav-btn:hover {
	background: var(--bg-primary);
	color: var(--text-primary);
}

[data-theme="dark"] .nav-btn.active {
	background: var(--accent);
	border-color: var(--accent);
	color: white;
}

[data-theme="dark"] .public-votes-list .vote-item {
	background: var(--bg-tertiary);
	border: 1px solid var(--border-color);
}

[data-theme="dark"] .public-votes-list .vote-item:hover {
	background: var(--bg-primary);
}

[data-theme="dark"] .vote-item .vote-scenario {
	color: var(--text-primary);
}

[data-theme="dark"] .vote-item .vote-amount {
	color: var(--text-secondary);
}

[data-theme="dark"] .vote-item .vote-feedback {
	color: var(--text-muted);
}

[data-theme="dark"] .vote-item .vote-time {
	color: var(--text-muted);
}

[data-theme="dark"] .app-footer {
	background: var(--bg-secondary);
	border-top: 1px solid var(--border-color);
	color: var(--text-secondary);
}

[data-theme="dark"] .footer-link {
	color: var(--text-secondary);
}

[data-theme="dark"] .footer-link:hover {
	color: var(--text-primary);
}

[data-theme="dark"] .creator-credit {
	color: var(--text-muted);
}

[data-theme="dark"] .creator-credit a {
	color: var(--text-muted);
}

[data-theme="dark"] .creator-credit a:hover {
	color: var(--text-primary);
}

[data-theme="dark"] .theme-toggle {
	background: var(--bg-secondary);
	border-color: var(--border-color);
	color: var(--text-primary);
}

[data-theme="dark"] .theme-toggle:hover {
	background: var(--bg-primary);
}

/* Theme toggle icon animation */
[data-theme="dark"] .theme-icon {
	transform: rotate(180deg);
}

/* Accessibility widget dark mode */
[data-theme="dark"] .accessibility-toggle {
	background: var(--bg-secondary);
	border-color: var(--border-color);
	color: var(--text-primary);
}

[data-theme="dark"] .accessibility-panel {
	background: var(--bg-secondary);
	border-color: var(--border-color);
}

[data-theme="dark"] .accessibility-option {
	background: var(--bg-tertiary);
	border-color: var(--border-color);
	color: var(--text-primary);
}

[data-theme="dark"] .accessibility-option:hover {
	background: var(--bg-primary);
}

[data-theme="dark"] .accessibility-reset {
	background: var(--accent);
	color: white;
}

[data-theme="dark"] .accessibility-reset:hover {
	background: var(--accent-hover);
}


