/* Calculator Section - Two Column Layout */
.calculator-section {
	padding: 60px 0;
}

/* .calculator-wrapper {
	display: grid;
	width: 100%;
	grid-template-columns: 40% 60%;
	gap: 40px;
	align-items: start;
} */

@media (max-width: 991px) {
	.calculator-wrapper {
		grid-template-columns: 1fr;
	}
}

/* Input Section */
.calculator-inputs {
	background: #f8f9fa;
	padding: 30px;
	border-radius: 12px;
}

.calculator-inputs .section-header {
	font-size: 1.5rem;
	font-weight: 600;
	margin-bottom: 30px;
	color: #1a1a2e;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

/* Input Groups */
.input-group {
	margin-bottom: 30px;
	padding-bottom: 25px;
	border-bottom: 1px solid #e0e0e0;
}

.input-group:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

.input-label {
	display: block;
	font-weight: 600;
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #333;
	margin-bottom: 12px;
}

.input-description {
	font-size: 0.9rem;
	color: #666;
	margin-bottom: 15px;
}

.input-note {
	font-size: 0.8rem;
	color: #888;
	margin-top: 10px;
	font-style: italic;
}

/* Range Sliders */
.range-with-input {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-bottom: 10px;
}

.range-with-input input[type="range"] {
	flex: 1;
	height: 8px;
	-webkit-appearance: none;
	background: #ddd;
	border-radius: 4px;
	outline: none;
}

.range-with-input input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 20px;
	height: 20px;
	background: #2563eb;
	border-radius: 50%;
	cursor: pointer;
	transition: background 0.2s;
}

.range-with-input input[type="range"]::-webkit-slider-thumb:hover {
	background: #1d4ed8;
}

.range-value {
	min-width: 50px;
	font-weight: 600;
	color: #2563eb;
	font-size: 1.1rem;
}

.exact-input {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 0.9rem;
	color: #666;
}

.exact-input input[type="number"] {
	width: 80px;
	padding: 6px 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 0.9rem;
}

/* Device Mix */
.device-mix {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.device-row {
	display: grid;
	grid-template-columns: 90px 1fr 50px 60px;
	align-items: center;
	gap: 10px;
}

.device-name {
	font-weight: 500;
	color: #444;
}

.device-row input[type="range"] {
	width: 100%;
	height: 6px;
	-webkit-appearance: none;
	background: #ddd;
	border-radius: 3px;
}

.device-row input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 16px;
	height: 16px;
	background: #2563eb;
	border-radius: 50%;
	cursor: pointer;
}

.device-value {
	font-weight: 600;
	color: #2563eb;
	text-align: right;
}

.small-input {
	width: 50px !important;
	padding: 4px 6px !important;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 0.85rem;
	text-align: center;
}

.percent-warning {
	color: #dc2626;
	font-size: 0.85rem;
	font-weight: 500;
	margin-top: 8px;
}

.percent-warning.over {
	color: #dc2626;
}

/* Sub Groups */
.sub-group {
	margin-bottom: 20px;
}

.sub-group:last-child {
	margin-bottom: 0;
}

.sub-label {
	display: block;
	font-weight: 500;
	font-size: 0.9rem;
	color: #444;
	margin-bottom: 10px;
}

/* Radio Options */
.radio-options {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
}

.radio-options.vertical {
	flex-direction: column;
	gap: 10px;
}

.radio-label {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	font-size: 0.9rem;
	color: #444;
}

.radio-label input[type="radio"] {
	width: 16px;
	height: 16px;
	accent-color: #2563eb;
}

/* Time Inputs */
.time-inputs {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
}

.time-inputs label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.9rem;
	color: #444;
}

.time-inputs select {
	padding: 6px 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 0.9rem;
	background: white;
}

/* Schedule Summary */
.schedule-summary {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin-top: 15px;
	padding: 12px;
	background: #e8f4fd;
	border-radius: 6px;
	font-size: 0.9rem;
	color: #444;
}

.schedule-summary strong {
	color: #2563eb;
}

/* Custom Rate */
.custom-rate {
	margin-top: 15px;
	padding-top: 15px;
	border-top: 1px dashed #ddd;
}

.custom-rate label {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 0.9rem;
	color: #444;
}

.custom-rate input[type="number"] {
	width: 80px;
	padding: 6px 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 0.9rem;
}

/* Currency Select */
#currency {
	width: 100%;
	max-width: 250px;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 0.95rem;
	background: white;
}

/* Advanced Options */
.advanced-options {
	border-bottom: none !important;
}

.toggle-advanced {
	display: flex;
	align-items: center;
	gap: 8px;
	background: none;
	border: none;
	padding: 0;
	font-size: 0.95rem;
	font-weight: 600;
	color: #2563eb;
	cursor: pointer;
	transition: color 0.2s;
}

.toggle-advanced:hover {
	color: #1d4ed8;
}

.toggle-icon {
	font-size: 0.8rem;
	transition: transform 0.2s;
}

.advanced-content {
	margin-top: 20px;
	padding: 20px;
	background: #fff;
	border-radius: 8px;
	border: 1px solid #e0e0e0;
}

/* Wattage Table */
.wattage-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 10px;
	font-size: 0.9rem;
}

.wattage-table th,
.wattage-table td {
	padding: 10px 8px;
	text-align: left;
	border-bottom: 1px solid #e0e0e0;
}

.wattage-table th {
	font-weight: 600;
	color: #444;
	font-size: 0.8rem;
	text-transform: uppercase;
}

.wattage-table input[type="number"] {
	width: 70px;
	padding: 6px 8px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 0.9rem;
}

.default-values {
	color: #888;
	font-size: 0.8rem;
}

/* Results Section */
.calculator-results {
	background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
	padding: 40px;
	border-radius: 12px;
	color: white;
	position: sticky;
	top: 20px;
}

.results-header {
	font-size: 1.3rem;
	font-weight: 600;
	margin-bottom: 30px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	opacity: 0.9;
}

/* Results Main - Two Column Layout */
.results-main {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 10px;
	padding: 25px;
	margin-bottom: 30px;
	align-items: center;
}

/* Primary Result */
.primary-result {
	text-align: center;
	padding: 20px 15px;
	border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.primary-result h4 {
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	opacity: 0.8;
	margin-bottom: 15px;
}

.primary-result .amount {
	font-size: 3rem;
	font-weight: 700;
	color: #4ade80;
	line-height: 1;
	margin-bottom: 10px;
}

.primary-result p {
	font-size: 0.85rem;
	opacity: 0.7;
}

/* Secondary Results - Stacked Metrics with Bars */
.secondary-results {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.secondary-results .metric {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.secondary-results .metric-label {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	opacity: 0.8;
}

.secondary-results .metric-value {
	font-size: 0.85rem;
	font-weight: 500;
	opacity: 0.9;
}

/* Metric Bar Styles */
.metric-bar-container {
	width: 100%;
	height: 12px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 6px;
	overflow: hidden;
}

.metric-bar {
	height: 100%;
	width: 0%;
	border-radius: 6px;
	transition: width 0.8s ease-out;
}

.metric-bar.energy-bar {
	background: linear-gradient(90deg, #06b6d4, #22d3ee, #67e8f9);
}

.metric-bar.co2-bar {
	background: linear-gradient(90deg, #f87171, #fb923c);
}

.metric-bar.per-computer-bar {
	background: linear-gradient(90deg, #a78bfa, #c4b5fd);
}

/* ROI Results */
.roi-results {
	padding: 20px;
	background: rgba(255, 255, 255, 0.08);
	border-radius: 8px;
	margin-bottom: 25px;
}

.roi-results h4 {
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	opacity: 0.8;
	margin-bottom: 15px;
}

.roi-metrics {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.roi-metric {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.roi-metric-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.roi-label {
	font-size: 0.9rem;
	opacity: 0.8;
}

.roi-value {
	font-size: 1.1rem;
	font-weight: 600;
	color: #4ade80;
}

.roi-value.highlight {
	color: #38bdf8;
}

/* ROI Bar Charts */
.roi-bar-container {
	width: 100%;
	height: 8px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 4px;
	overflow: hidden;
}

.roi-bar {
	height: 100%;
	width: 0%;
	background: linear-gradient(90deg, #4ade80, #22c55e);
	border-radius: 4px;
	transition: width 0.6s ease-out;
}

.roi-bar.payback-bar {
	background: linear-gradient(90deg, #38bdf8, #0ea5e9);
}

.roi-bar.roi-percent-bar {
	background: linear-gradient(90deg, #4ade80, #22c55e);
}

/* Environmental Impact */
.environmental-impact {
	padding: 20px 0 0;
}

.environmental-impact h4 {
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	opacity: 0.8;
	margin-bottom: 15px;
}

.environmental-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
}

.env-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 20px 10px;
	border-radius: 8px;
	text-align: center;
}

.env-card.trees {
	background: linear-gradient(135deg, #166534, #15803d);
}

.env-card.flights {
	background: linear-gradient(135deg, #1e40af, #2563eb);
}

.env-card.water {
	background: linear-gradient(135deg, #0e7490, #0891b2);
}

.env-label {
	font-size: 0.65rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	opacity: 0.9;
	margin-bottom: 8px;
}

.env-value {
	font-size: 2rem;
	font-weight: 700;
	line-height: 1;
	margin-bottom: 4px;
}

.env-unit {
	font-size: 0.7rem;
	text-transform: uppercase;
	opacity: 0.8;
	margin-bottom: 12px;
}

.env-bar-container {
	width: 100%;
	height: 6px;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 3px;
	overflow: hidden;
}

.env-bar {
	height: 100%;
	width: 0%;
	background: rgba(255, 255, 255, 0.8);
	border-radius: 3px;
	transition: width 0.8s ease-out;
}

.env-card.trees .env-bar {
	background: linear-gradient(90deg, #86efac, #4ade80);
}

.env-card.flights .env-bar {
	background: linear-gradient(90deg, #93c5fd, #60a5fa);
}

.env-card.water .env-bar {
	background: linear-gradient(90deg, #67e8f9, #22d3ee);
}

/* Responsive Adjustments */
@media (max-width: 767px) {
	.calculator-inputs,
	.calculator-results {
		padding: 20px;
	}

	.device-row {
		grid-template-columns: 80px 1fr 40px 50px;
	}

	.results-main {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.primary-result {
		border-right: none;
		border-bottom: 1px solid rgba(255, 255, 255, 0.15);
		padding-bottom: 20px;
	}

	.primary-result .amount {
		font-size: 2.5rem;
	}

	.calculator-results {
		position: static;
	}

	.time-inputs {
		flex-direction: column;
		gap: 10px;
	}

	.environmental-cards {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.env-value {
		font-size: 1.5rem;
	}
}
