:root {
	--primary-color: #6c5ce7;
	--primary-light: #a29bfe;
	--secondary-color: #00b894;
	--text-color: #2d3436;
	--light-text: #636e72;
	--background: #f9f9f9;
	--card-bg: #ffffff;
	--border-color: #dfe6e9;
	--hover-color: #74b9ff;
	--error-color: #d63031;
	--shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	background-color: var(--background);
	color: var(--text-color);
	line-height: 1.6;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 2rem;
}

header {
	text-align: center;
	margin-bottom: 2rem;
}

h1 {
	color: var(--primary-color);
	margin-bottom: 0.5rem;
	font-size: 2.5rem;
}

.tagline {
	color: var(--light-text);
	font-size: 1.1rem;
}

.card {
	background-color: var(--card-bg);
	border-radius: 10px;
	box-shadow: var(--shadow);
	padding: 1.5rem;
	margin-bottom: 2rem;
}

.card-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1.5rem;
}

h2 {
	color: var(--primary-color);
	margin-bottom: 1.5rem;
	font-size: 1.5rem;
}

.form-group {
	margin-bottom: 1.5rem;
}

label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 600;
}

input,
textarea,
select {
	width: 100%;
	padding: 0.75rem;
	border-radius: 5px;
	border: 1px solid var(--border-color);
	font-size: 1rem;
	transition: border 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
	outline: none;
	border-color: var(--primary-color);
}

select {
	width: 100%;
	padding: 0.75rem;
	border-radius: 5px;
	border: 1px solid var(--border-color);
	font-size: 1rem;
	background-color: white;
	cursor: pointer;
	transition: border 0.3s ease;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236c5ce7' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: calc(100% - 12px) center;
	padding-right: 35px;
}

select:focus {
	outline: none;
	border-color: var(--primary-color);
}

select:hover {
	border-color: var(--hover-color);
}

.model-info {
	margin-top: 0.5rem;
	font-size: 0.85rem;
	color: var(--light-text);
}

textarea {
	min-height: 100px;
	resize: vertical;
}

.helper-text {
	color: var(--light-text);
	font-size: 0.9rem;
	margin-top: 0.5rem;
}

.btn-primary {
	background-color: var(--primary-color);
	color: white;
	border: none;
	border-radius: 5px;
	padding: 0.75rem 1.5rem;
	font-size: 1rem;
	cursor: pointer;
	transition: background-color 0.3s ease;
	display: block;
	margin: 0 auto;
	font-weight: 600;
}

.btn-primary:hover {
	background-color: var(--primary-light);
}

.btn-add {
	background-color: var(--secondary-color);
	color: white;
	border: none;
	border-radius: 5px;
	padding: 0.5rem 1rem;
	font-size: 0.9rem;
	cursor: pointer;
	transition: opacity 0.3s ease;
}

.btn-add:hover {
	opacity: 0.9;
}

.parameter-row {
	display: grid;
	grid-template-columns: 3fr 1fr 1fr 1fr 40px;
	gap: 10px;
	margin-bottom: 1rem;
	align-items: center;
}

.btn-remove {
	background-color: var(--error-color);
	color: white;
	border: none;
	border-radius: 5px;
	width: 36px;
	height: 36px;
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
	transition: opacity 0.3s ease;
}

.btn-remove:hover {
	opacity: 0.9;
}

.api-input-container {
	position: relative;
}

.api-buttons {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	gap: 5px;
}

.toggle-btn,
.action-btn {
	background: none;
	border: none;
	color: var(--light-text);
	cursor: pointer;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: all 0.2s ease;
}

.toggle-btn:hover,
.action-btn:hover {
	background-color: rgba(0, 0, 0, 0.05);
}

.save-btn:hover {
	color: var(--primary-color);
}

.delete-btn:hover {
	color: var(--error-color);
}

/* Animation for save confirmation */
@keyframes savePulse {
	0% {
		transform: scale(1);
	}

	50% {
		transform: scale(1.2);
	}

	100% {
		transform: scale(1);
	}
}

.save-animation {
	animation: savePulse 0.5s ease;
	color: var(--secondary-color);
}

.helper-container {
	background-color: #f8f9fa;
	border-radius: 5px;
	padding: 1rem;
	border-left: 4px solid var(--primary-color);
}

.helper-item {
	margin-bottom: 0.5rem;
}

.helper-item:last-child {
	margin-bottom: 0;
}

.helper-item i {
	color: var(--primary-color);
}

.loading {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 2rem;
}

.spinner {
	border: 4px solid rgba(0, 0, 0, 0.1);
	border-radius: 50%;
	border-top: 4px solid var(--primary-color);
	width: 40px;
	height: 40px;
	animation: spin 1s linear infinite;
	margin-bottom: 1rem;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

.charts-container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-bottom: 2rem;
}

.chart-container {
	height: 300px;
	position: relative;
}

.prediction-details {
	margin-bottom: 2rem;
}

.factors-section {
	background-color: #f8f9fa;
	padding: 1rem;
	border-radius: 5px;
}

.factor-item {
	display: flex;
	justify-content: space-between;
	padding: 0.75rem;
	border-bottom: 1px solid var(--border-color);
}

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

.factor-name {
	font-weight: 600;
}

.factor-value {
	color: var(--primary-color);
}

footer {
	text-align: center;
	margin-top: 3rem;
	color: var(--light-text);
	font-size: 0.9rem;
}

.disclaimer {
	margin-top: 0.5rem;
	font-style: italic;
}

@media (max-width: 768px) {
	.parameter-row {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.charts-container {
		grid-template-columns: 1fr;
	}

	.btn-remove {
		margin-left: auto;
	}
}