/* Calculator-specific styles */

.calculator-section {
	margin: 1rem 0;
}

.calculator-card {
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	overflow: hidden;
	transition: all 0.3s ease;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.calculator-card.coming-soon {
	opacity: 0.7;
	border-style: dashed;
}

.calculator-header {
	background: #ffffff;
	text-align: center;
}

.calculator-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 1rem;
}

.calculator-icon .icon {
	width: 48px;
	height: 48px;
	opacity: 0.8;
	filter: brightness(0.5) contrast(1.2);
}

.calculator-header h2 {
	font-size: 1rem;
	font-weight: 700;
	color: #1f2937;
	margin-bottom: 0.5rem;
}

.calculator-description {
	color: #6b7280;
	font-size: 0.95rem;
	line-height: 1.5;
	margin: 0;
}

.input-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.5rem 1rem;
	margin-bottom: 1.5rem;
}

.input-group label {
	display: block;
	font-weight: 600;
	color: #374151;
	margin-bottom: 0.5rem;
	font-size: 0.95rem;
}

.input-wrapper {
	position: relative;
	display: flex;
	align-items: center;
}

.input-wrapper input {
	width: 100%;
	padding: 0.75rem 1rem;
	padding-right: 4rem;
	border: 2px solid #e5e7eb;
	border-radius: 8px;
	font-size: 1rem;
	transition: all 0.2s ease;
	background: #f8fafc;
	color: #1f2937;
	font-weight: 500;
}

.input-wrapper input:hover {
	border-color: #d1d5db;
	background: #f1f5f9;
}

.input-wrapper input:focus {
	outline: none;
	border-color: #3b82f6;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
	background: #ffffff;
}

.input-suffix {
	position: absolute;
	right: 1rem;
	color: #6b7280;
	font-weight: 500;
	pointer-events: none;
}

.network-stats {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 0rem 1rem;
	margin-bottom: 1.5rem;
}

.stat-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.5rem 0;
}

.stat-item:not(:last-child) {
	border-bottom: 1px solid #e2e8f0;
}

.stat-label {
	color: #6b7280;
	font-size: 0.9rem;
	font-weight: 500;
}

.stat-value {
	color: #1f2937;
}

.calculation-results {
	background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(147, 51, 234, 0.05));
	border: 1px solid rgba(59, 130, 246, 0.2);
	border-radius: 8px;
	padding: 1rem;
}

.calculation-results h3 {
	font-size: 1rem;
	font-weight: 700;
	color: #374151;
	margin-bottom: 1rem;
	text-align: center;
}

.results-grid {
	display: grid;
	gap: 0.75rem;
}

.results-grid-two-col {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem;
}


.results-grid-three-col {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 0.75rem;
}

.result-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.5rem;
	background: rgba(255, 255, 255, 0.7);
	border-radius: 6px;
	border: 1px solid rgba(14, 165, 233, 0.2);
}

.result-label {
	color: #374151;
	font-size: 0.9rem;
	font-weight: 500;
}

.result-value {
	color: #0c4a6e;
}

.calculator-disclaimer {
	background: #fef3c7;
	border: 1px solid #f59e0b;
	border-radius: 6px;
	padding: 1rem;
	margin-top: 1rem;
}

.calculator-disclaimer p {
	color: #92400e;
	font-size: 0.85rem;
	line-height: 1.5;
	margin: 0;
}

/* Dark theme styles */
[data-theme="dark"] .calculator-card {
	background: #2d2d2d;
	border-color: #404040;
}

[data-theme="dark"] .calculator-header {
	background: #2a2a2a;
	border-bottom-color: #404040;
	margin-bottom: 1rem;
}

[data-theme="dark"] .calculator-icon .icon {
	filter: brightness(1.2) contrast(0.8);
	opacity: 0.9;
}

[data-theme="dark"] .calculator-header h2 {
	color: #f9fafb;
}

[data-theme="dark"] .calculator-description {
	color: #d1d5db;
}

[data-theme="dark"] .input-group label {
	color: #f3f4f6;
}

[data-theme="dark"] .input-wrapper input {
	background: #2a2a2a;
	border: 1px solid #404040;
	color: #f7fafc;
	font-weight: 500;
}

[data-theme="dark"] .input-wrapper input:hover {
	border-color: #5a6c7d;
	background: #1a202c;
}

[data-theme="dark"] .input-wrapper input:focus {
	border-color: #60a5fa;
	box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
	background: #374151;
}

/* Custom styling for select dropdown to match input fields */
[data-theme="dark"] .input-wrapper select {
	width: 100%;
	padding: 0.65rem 1rem;
	padding-right: 3rem;
	border: 1px solid #404040;
	border-radius: 8px;
	background-color: #2a2a2a;
	color: #f7fafc;
	font-size: 1rem;
	font-family: inherit;
	font-weight: 500;
	appearance: none;
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f7fafc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6,9 12,15 18,9'%3E%3C/polyline%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 1rem center;
	cursor: pointer;
	transition: all 0.2s ease;
}

[data-theme="dark"] .input-wrapper select:focus {
	outline: none;
	border-color: #60a5fa;
	box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
	background-color: #374151;
}

[data-theme="dark"] .input-wrapper select:hover {
	border-color: #5a6c7d;
	background-color: #1a202c;
}

[data-theme="dark"] .input-wrapper select option {
	background-color: #2a2a2a;
	color: #ffffff;
	padding: 8px 12px;
}

[data-theme="dark"] .input-suffix {
	color: #9ca3af;
}

[data-theme="dark"] .network-stats {
	background: #374151;
	border-color: #4b5563;
}

[data-theme="dark"] .stat-item {
	border-bottom-color: #4b5563;
}

[data-theme="dark"] .stat-label {
	color: #9ca3af;
}

[data-theme="dark"] .stat-value {
	color: #f3f4f6;
}

[data-theme="dark"] .calculation-results {
	background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(147, 51, 234, 0.1));
	border-color: rgba(59, 130, 246, 0.3);
}

[data-theme="dark"] .calculation-results h3 {
	color: #f0f0f0;
}

[data-theme="dark"] .result-item {
	background: rgba(59, 130, 246, 0.1);
	border-color: rgba(59, 130, 246, 0.3);
}

[data-theme="dark"] .result-label {
	color: #d1d5db;
}

[data-theme="dark"] .result-value {
	color: #dbeafe;
}

[data-theme="dark"] .calculator-disclaimer {
	background: #451a03;
	border-color: #92400e;
}

[data-theme="dark"] .calculator-disclaimer p {
	color: #fbbf24;
}

/* Responsive design */
@media (max-width: 768px) {
	.input-grid {
		gap: 1rem;
	}

	.results-grid {
		gap: 0.5rem;
	}

	.results-grid-two-col {
		gap: 0.5rem;
	}

	.result-item {
		flex-direction: column;
		text-align: center;
		gap: 0.25rem;
	}

	.result-label,
	.result-value {
		width: 100%;
	}
}

/* Animation */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.calculator-card {
	animation: fadeInUp 0.6s ease-out;
}

.calculation-results {
	animation: fadeInUp 0.4s ease-out;
}

/* Chart styles */
.chart-container {
	position: relative;
	height: 400px;
}

.chart-controls {
	display: flex;
	justify-content: center;
	margin-top: 20px;
}

.chart-controls .input-group {
	display: flex;
	align-items: center;
	gap: 10px;
}

.chart-controls select {
	padding: 8px 12px;
	border-radius: 6px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	background-color: rgba(255, 255, 255, 0.1);
	color: #ffffff;
	font-size: 14px;
}

.chart-controls select option {
	background-color: #1a1a1a;
	color: #ffffff;
}

/* Progress Bar Styles */
.progress-container {

	width: 100%;
	height: 16px;
	border: 1px solid #404040;
	border-radius: 8px;
	overflow: hidden;
	display: flex;
	margin-bottom: 10px;
	box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-segment {
	height: 100%;
	transition: width 0.8s ease-in-out;
}

.progress-distributed {
	background: linear-gradient(90deg, rgba(34, 197, 94, 0.3), rgba(34, 197, 94, 0.5));
}

.progress-surplus {
	background: linear-gradient(90deg, rgba(251, 68, 36, 0.5), rgba(251, 68, 36, 0.3));
}

.progress-remaining {
	background-color: rgba(75, 85, 99, 0.3);
}

.progress-segment:hover {
	filter: brightness(1.1);
	transition: filter 1s ease;
}

/* Bitpanda VIP Presets */
.bitpanda-presets {
	margin-top: 1.5rem;
	padding: 1rem;
	background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(147, 51, 234, 0.05));
	border: 1px solid rgba(59, 130, 246, 0.2);
	border-radius: 8px;
}

.bitpanda-presets h4 {
	font-size: 1rem;
	font-weight: 600;
	color: #374151;
	margin-bottom: 1rem;
	text-align: center;
}

.preset-buttons {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
	justify-content: center;
}

.preset-btn.selected,
.preset-btn.selected:hover {
	background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(147, 51, 234, 0.1)) !important;
	border-color: #2d7dff !important;
}

/* Dark theme styles for presets */
[data-theme="dark"] .bitpanda-presets {
	background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(147, 51, 234, 0.1));
	border-color: rgba(59, 130, 246, 0.3);
}

[data-theme="dark"] .bitpanda-presets h4 {
	color: #e5e7eb;
}

.cooldown-list {
	display: grid;
	gap: 0.5rem;
}

.cooldown-item {
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 8px;
	padding: 0.5rem;
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 1rem;
	align-items: center;
}

.cooldown-header {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 8px;
	padding: 0.75rem 1rem;
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 1rem;
	align-items: center;
}

.cooldown-field {
	display: flex;
	flex-direction: column;
}

.cooldown-label {
	font-size: 0.9rem;
	color: #d1d5db;
}

.cooldown-value {
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.9);
	font-weight: 500;
}

.cooldown-address {
	font-family: monospace;
	font-size: 0.8rem;
}

#cooldown-arrow {
	transition: transform 0.3s ease;
	display: inline-block;
	margin-left: 0.5rem;
}

#cooldown-arrow.rotated {
	transform: rotate(180deg);
}
#advanced-arrow {
	transition: transform 0.3s ease;
	display: inline-block;
	margin-left: 0.5rem;
}

#advanced-arrow.rotated {
	transform: rotate(180deg);
}

.weekly-breakdown-list {
	max-height: 400px;
	overflow-y: auto;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.2);
	scrollbar-width: thin;
	scrollbar-color: #333333 #1e1e1e;
}

/* For Webkit browsers (Chrome, Safari) */
.weekly-breakdown-list::-webkit-scrollbar {
	width: 8px;
	background: #1e1e1e;
}

.weekly-breakdown-list::-webkit-scrollbar-thumb {
	background: #333333;
	border-radius: 4px;
}

.weekly-breakdown-header {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 1rem;
	padding: 0.5rem;
	background: rgba(255, 255, 255, 0.05);
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	font-weight: 600;
	color: rgba(255, 255, 255, 0.9);
	font-size: 0.9rem;
}

.weekly-breakdown-item {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 1rem;
	padding: 0.5rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
	font-size: 0.85rem;
}

.weekly-breakdown-item:last-child {
	border-bottom: none;
}

.weekly-breakdown-item:nth-child(even) {
	background: rgba(255, 255, 255, 0.02);
}

.weekly-breakdown-field {
	color: rgba(255, 255, 255, 0.8);
}

.weekly-breakdown-field.total {
	color: rgba(34, 197, 94, 0.9);
	font-weight: 500;
}
.weekly-breakdown-field.fusion {
	color: #ffa500;
	font-weight: 500;
}

.weekly-breakdown-field.total-EUR {
	color: lightseagreen;
	font-weight: 500;
}

/* Transaction status styles */
.weekly-breakdown-field.eligible {
	color: rgba(34, 197, 94, 0.9);
	font-weight: 500;
}

.weekly-breakdown-field.excluded {
	color: rgba(239, 68, 68, 0.9);
	font-weight: 500;
}

.weekly-breakdown-item.excluded-transaction {
	opacity: 0.6;
	background: rgba(239, 68, 68, 0.05);
}

.weekly-breakdown-item.excluded-transaction .weekly-breakdown-field {
	color: rgba(255, 255, 255, 0.5);
}

#weekly-breakdown-arrow.rotated {
	transform: rotate(180deg);
}

@media (max-width: 768px) {

	.weekly-breakdown-header,
	.weekly-breakdown-item {
		grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
		gap: 0.5rem;
		padding: 0.5rem;
		font-size: 0.8rem;
	}

	.weekly-breakdown-header .hide-mobile,
	.weekly-breakdown-item .hide-mobile {
		display: none;
	}
}

/* Transaction Table Styles */
.transaction-table-header {
	margin-bottom: 0.5rem;
}

.transaction-table-row {
	display: grid;
	grid-template-columns: 1.2fr 0.8fr 1fr 0.8fr 0.8fr 1fr 1fr;
	gap: 0.5rem;
	padding: 0.5rem;
	border-radius: 8px;
	margin-bottom: 0.25rem;
	align-items: center;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.transaction-table-row:nth-child(even) {
	background: rgba(255, 255, 255, 0.02);
}

.transaction-cell {
	padding: 0.25rem;
	font-size: 0.85rem;
	text-align: left;
	word-wrap: break-word;
}

.transaction-cell.header {
	font-weight: 600;
	color: rgba(255, 255, 255, 0.9);
	background: rgba(255, 255, 255, 0.1);
	border-radius: 4px;
	text-align: center;
	padding: 0.5rem 0.25rem;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.transaction-cell.fusion-trade {
	color: #ffa500;
	font-weight: 600;
}

/* Mobile responsiveness for transaction table */
@media (max-width: 768px) {
	.transaction-table-row {
		grid-template-columns: 1fr 0.6fr 0.8fr 0.6fr 0.5fr 0.8fr 0.8fr;
		gap: 0.25rem;
		padding: 0.25rem;
	}
	
	.transaction-cell {
		font-size: 0.75rem;
		padding: 0.2rem;
	}
	
	.transaction-cell.header {
		font-size: 0.7rem;
		padding: 0.3rem 0.1rem;
	}
}

/* Volume tier styling for monthly volumes */
.volume-silver {
	border: 2px solid #c0c0c0 !important;
	box-shadow: 0 0 15px rgba(192, 192, 192, 0.5) !important;
	animation: silverGlow 2s ease-in-out infinite alternate;
}

.volume-gold {
	border: 2px solid #ffd700 !important;
	box-shadow: 0 0 15px rgba(255, 215, 0, 0.6) !important;
	animation: goldGlow 2s ease-in-out infinite alternate;
}

@keyframes silverGlow {
	from {
		box-shadow: 0 0 15px rgba(192, 192, 192, 0.5);
	}
	to {
		box-shadow: 0 0 25px rgba(192, 192, 192, 0.8);
	}
}

@keyframes goldGlow {
	from {
		box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
	}
	to {
		box-shadow: 0 0 25px rgba(255, 215, 0, 0.9);
	}
}

/* Checkbox styling to match other inputs */
.checkbox-wrapper {
	align-items: center !important;
	gap: 0.75rem;
	padding: 0.6rem 1rem;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #f8fafc;
	transition: all 0.2s ease;
}

.checkbox-wrapper:hover {
	border-color: #d1d5db;
	background: #f1f5f9;
}

.checkbox-wrapper:focus-within {
	border-color: #3b82f6;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
	background: #ffffff;
}

.checkbox-wrapper input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin: 0;
	cursor: pointer;
	accent-color: #3b82f6;
}

.checkbox-label {
	color: #6b7280;
	font-size: 0.9rem;
	font-weight: 500;
	user-select: none;
	cursor: pointer;
	flex: 1;
}

/* Dark theme for checkbox */
[data-theme="dark"] .checkbox-wrapper {
	background: #2a2a2a;
	border-color: #404040;
}

[data-theme="dark"] .checkbox-wrapper:hover {
	border-color: #5a6c7d;
	background: #1a202c;
}

[data-theme="dark"] .checkbox-wrapper:focus-within {
	border-color: #60a5fa;
	box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
	background: #374151;
}

[data-theme="dark"] .checkbox-label {
	color: #9ca3af;
}

[data-theme="dark"] .checkbox-wrapper input[type="checkbox"] {
	accent-color: #60a5fa;
}