/* Vox Yield Maintenance Calculator Stylesheet */

.vox-tool-ym-calc {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	padding: 32px 28px;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
	margin-bottom: 32px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
	color: #0f172a;
}

.vox-ym-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 20px;
	border-bottom: 2px solid #f1f5f9;
	padding-bottom: 20px;
	margin-bottom: 28px;
}

.vox-ym-badge {
	display: inline-block;
	background: #eff6ff;
	color: #0284c7;
	font-size: 0.78rem;
	font-weight: 700;
	padding: 4px 12px;
	border-radius: 20px;
	margin-bottom: 8px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.vox-currency-selector-box {
	display: flex;
	align-items: center;
	gap: 10px;
	background: #f8fafc;
	padding: 8px 14px;
	border-radius: 10px;
	border: 1px solid #cbd5e1;
}

.vox-select-compact {
	padding: 6px 12px;
	font-size: 0.92rem;
	font-weight: 600;
	border-radius: 6px;
	background: #ffffff;
	cursor: pointer;
}

.vox-ym-form-section {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 20px;
	margin-bottom: 24px;
}

.vox-ym-sec-title {
	margin: 0 0 16px 0;
	font-size: 1.1rem;
	font-weight: 700;
	color: #1e293b;
	border-bottom: 1px solid #e2e8f0;
	padding-bottom: 8px;
}

.vox-ym-input-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 20px;
}

.vox-group-highlight {
	background: #ffffff;
	border: 2px solid #3b82f6;
	padding: 16px;
	border-radius: 10px;
	box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.vox-tooltip {
	display: inline-block;
	margin-left: 4px;
	color: #0284c7;
	cursor: help;
	font-size: 0.85rem;
	position: relative;
}

.vox-tooltip:hover::after {
	content: attr(data-tooltip);
	position: absolute;
	bottom: 125%;
	left: 50%;
	transform: translateX(-50%);
	background: #0f172a;
	color: #ffffff;
	padding: 6px 12px;
	border-radius: 6px;
	font-size: 0.78rem;
	font-weight: 400;
	white-space: normal;
	width: 200px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
	z-index: 100;
}

/* INPUT PREFIX & SUFFIX WRAPPERS */
.vox-input-prefix-wrapper,
.vox-input-suffix-wrapper {
	position: relative;
	display: flex;
	align-items: center;
}

.vox-input-symbol {
	position: absolute;
	left: 12px;
	font-weight: 700;
	color: #64748b;
}

.vox-input-suffix {
	position: absolute;
	right: 14px;
	font-weight: 700;
	color: #64748b;
}

.vox-input.vox-has-prefix {
	padding-left: 32px;
}

.vox-input.vox-has-suffix {
	padding-right: 32px;
}

.vox-input-disabled {
	background-color: #e2e8f0;
	color: #475569;
	cursor: not-allowed;
	font-weight: 600;
}

/* SEGMENTED CONTROL BUTTONS */
.vox-segmented-control {
	display: flex;
	background: #e2e8f0;
	padding: 4px;
	border-radius: 10px;
	gap: 4px;
}

.vox-segment-btn {
	flex: 1;
	padding: 10px 16px;
	border: none;
	background: transparent;
	font-size: 0.9rem;
	font-weight: 600;
	color: #475569;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.2s;
}

.vox-segment-btn.active {
	background: #0f172a;
	color: #ffffff;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
}

/* ACTION BUTTONS ROW */
.vox-ym-action-row {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	margin-top: 28px;
}

.vox-btn-lg {
	padding: 14px 24px;
	font-size: 1.05rem;
	border-radius: 12px;
}

.vox-animated-btn {
	background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
	box-shadow: 0 6px 18px rgba(2, 132, 199, 0.3);
	transition: transform 0.2s, box-shadow 0.2s;
}

.vox-animated-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(2, 132, 199, 0.4);
}

.vox-btn-secondary {
	background: #f1f5f9;
	color: #475569;
	border: 1px solid #cbd5e1;
	font-weight: 600;
}

.vox-btn-secondary:hover {
	background: #e2e8f0;
	color: #0f172a;
}

/* 5 SECONDS TIMER LOADER BOX */
.vox-ym-loader-box {
	background: #f0f9ff;
	border: 2px solid #38bdf8;
	border-radius: 14px;
	padding: 24px;
	margin-top: 28px;
	text-align: center;
	box-shadow: 0 6px 20px rgba(56, 189, 248, 0.15);
}

.vox-ym-spinner {
	display: inline-block;
	width: 40px;
	height: 40px;
	border: 4px solid #bae6fd;
	border-top-color: #0284c7;
	border-radius: 50%;
	animation: voxSpin 1s infinite linear;
	margin-bottom: 12px;
}

@keyframes voxSpin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.vox-ym-loader-text h4 {
	margin: 0 0 4px 0;
	font-size: 1.15rem;
	color: #0369a1;
}

.vox-ym-loader-text p {
	margin: 0 0 16px 0;
	color: #0284c7;
	font-size: 0.9rem;
}

.vox-ym-progress-bar {
	width: 100%;
	max-width: 450px;
	height: 10px;
	background: #e0f2fe;
	border-radius: 10px;
	margin: 0 auto;
	overflow: hidden;
}

.vox-ym-progress-fill {
	width: 0%;
	height: 100%;
	background: linear-gradient(90deg, #0284c7, #38bdf8);
	border-radius: 10px;
	transition: width 0.1s linear;
}

/* RESULTS SECTION */
.vox-ym-results-wrapper {
	outline: none;
}

.vox-ym-results-divider {
	height: 3px;
	background: linear-gradient(90deg, #0284c7, #38bdf8, #e0f2fe);
	margin: 36px 0 28px 0;
	border-radius: 3px;
}

.vox-ym-results-title {
	font-size: 1.35rem;
	font-weight: 800;
	color: #0f172a;
	margin-bottom: 24px;
}

.vox-ym-highlight-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 20px;
	margin-bottom: 28px;
}

.vox-ym-summary-card {
	padding: 24px;
	border-radius: 14px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	box-shadow: 0 4px 14px rgba(0,0,0,0.04);
	transition: transform 0.25s, box-shadow 0.25s;
}

.vox-ym-summary-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.card-penalty {
	background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
	border-color: #fde047;
}

.card-balance {
	background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
	border-color: #7dd3fc;
}

.card-total {
	background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
	border-color: #86efac;
}

.vox-ym-card-header {
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 0.05em;
	color: #475569;
	margin-bottom: 8px;
}

.vox-ym-card-value {
	font-size: 1.8rem;
	font-weight: 800;
	color: #0f172a;
	margin-bottom: 4px;
}

.card-penalty .vox-ym-card-value { color: #b45309; }
.card-balance .vox-ym-card-value { color: #0369a1; }
.card-total .vox-ym-card-value { color: #15803d; }

.vox-ym-card-sub {
	font-size: 0.85rem;
	color: #64748b;
	font-weight: 600;
}

/* BREAKDOWN TABLE BOX */
.vox-ym-breakdown-card {
	background: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 14px;
	padding: 24px;
	margin-bottom: 28px;
}

.vox-ym-disclaimer {
	font-size: 0.85rem;
	color: #64748b;
	margin-top: 0;
	margin-bottom: 20px;
	font-style: italic;
}

.vox-ym-detail-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 28px;
}

@media (max-width: 768px) {
	.vox-ym-detail-grid {
		grid-template-columns: 1fr;
	}
}

.vox-detail-row {
	display: flex;
	justify-content: space-between;
	padding: 10px 0;
	border-bottom: 1px dashed #e2e8f0;
	font-size: 0.95rem;
}

.vox-detail-label {
	color: #475569;
}

.vox-detail-val {
	font-weight: 700;
	color: #0f172a;
}

.vox-detail-highlight {
	background: #f0fdf4;
	margin: 8px -12px -10px -12px;
	padding: 12px;
	border-radius: 8px;
	border-bottom: none;
}

.vox-detail-highlight .vox-detail-label {
	color: #166534;
	font-weight: 700;
}

.vox-detail-highlight .vox-detail-val {
	color: #15803d;
	font-size: 1.15rem;
}

/* CHART BOX */
.vox-ym-chart-box {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	padding: 24px;
	margin-bottom: 28px;
}

.vox-chart-container {
	position: relative;
	width: 100%;
	min-height: 260px;
}

/* DOWNLOAD PDF CARD */
.vox-ym-download-card {
	background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
	color: #ffffff;
	border-radius: 16px;
	padding: 28px;
}

.vox-download-header h4 {
	margin: 0 0 6px 0;
	font-size: 1.25rem;
	color: #ffffff;
}

.vox-download-header p {
	margin: 0 0 20px 0;
	color: #94a3b8;
	font-size: 0.92rem;
}

.vox-download-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 16px;
	align-items: end;
}

.vox-download-grid label {
	color: #cbd5e1;
}

.vox-align-end {
	display: flex;
	align-items: flex-end;
}

.vox-btn-success {
	background-color: #10b981;
	color: #ffffff;
	font-weight: 700;
}

.vox-btn-success:hover {
	background-color: #059669;
}

.vox-btn-block {
	width: 100%;
}
