:root {
	--primary-color: #6366f1;
	--secondary-color: #8b5cf6;
	--accent-color: #06b6d4;
	--success-color: #10b981;
	--warning-color: #f59e0b;
	--danger-color: #ef4444;
	--dark-color: #1e293b;
	--light-color: #f8fafc;
	--border-color: #e2e8f0;
	--text-color: #334155;
}

body {
	background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
	min-height: 100vh;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	margin: 0;
	padding: 0;
}

.main-container {
	background: white;
	border-radius: 20px;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	margin: 20px auto;
	max-width: 1600px;
	overflow: hidden;
}

.json-editor {
	font-family: 'JetBrains Mono', 'Courier New', monospace;
	font-size: 14px;
	line-height: 1.6;
	border: 2px solid var(--border-color);
	border-radius: 12px;
	padding: 20px;
	min-height: 400px;
	resize: vertical;
	transition: all 0.3s ease;
	background: #2d3748;
	color: #e2e8f0;
}

.json-editor:focus {
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
	outline: none;
}

.json-output {
	font-family: 'JetBrains Mono', 'Courier New', monospace;
	font-size: 14px;
	line-height: 1.6;
	background: #2d3748;
	color: #e2e8f0;
	border: 2px solid var(--border-color);
	border-radius: 12px;
	padding: 20px;
	min-height: 400px;
	overflow: auto;
	white-space: pre-wrap;
}

.toolbar {
	background: var(--light-color);
	padding: 20px;
	border-bottom: 1px solid var(--border-color);
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.toolbar-group {
	display: flex;
	gap: 10px;
	align-items: center;
	padding-right: 20px;
	border-right: 1px solid var(--border-color);
}

.toolbar-group:last-child {
	border-right: none;
}

.btn-action {
	border-radius: 8px;
	padding: 10px 20px;
	font-weight: 600;
	transition: all 0.3s ease;
	border: none;
}

.btn-primary-custom {
	background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
	color: white;
}

.btn-primary-custom:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.btn-success-custom {
	background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
	color: white;
}

.btn-success-custom:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.btn-warning-custom {
	background: linear-gradient(135deg, var(--warning-color) 0%, #d97706 100%);
	color: white;
}

.btn-warning-custom:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
}

.status-bar {
	background: var(--dark-color);
	color: white;
	padding: 15px 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 0.9rem;
}

.status-indicator {
	display: flex;
	align-items: center;
	gap: 8px;
}

.status-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
}

.status-valid {
	background: var(--success-color);
}

.status-invalid {
	background: var(--danger-color);
}

.settings-panel {
	background: white;
	border: 1px solid var(--border-color);
	border-radius: 12px;
	padding: 20px;
	margin-bottom: 20px;
}

.settings-title {
	font-weight: 600;
	color: var(--text-color);
	margin-bottom: 15px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.form-check-input:checked {
	background-color: var(--primary-color);
	border-color: var(--primary-color);
}

.form-select, .form-control {
	border-radius: 8px;
	border: 1px solid var(--border-color);
	transition: all 0.3s ease;
}

.form-select:focus, .form-control:focus {
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.error-message {
	background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
	border: 1px solid #fecaca;
	border-radius: 8px;
	padding: 15px;
	margin: 10px 0;
	color: #991b1b;
	font-family: 'JetBrains Mono', monospace;
	font-size: 0.9rem;
}

.success-message {
	background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
	border: 1px solid #bbf7d0;
	border-radius: 8px;
	padding: 15px;
	margin: 10px 0;
	color: #166534;
	font-weight: 500;
}

.json-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 15px;
	margin: 20px 0;
}

.stat-card {
	background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
	border-radius: 8px;
	padding: 15px;
	text-align: center;
}

.stat-number {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--primary-color);
}

.stat-label {
	font-size: 0.8rem;
	color: var(--text-color);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.copy-btn {
	position: absolute;
	top: 10px;
	right: 10px;
	background: var(--primary-color);
	color: white;
	border: none;
	border-radius: 6px;
	padding: 8px 12px;
	font-size: 0.8rem;
	cursor: pointer;
	transition: all 0.3s ease;
}

.copy-btn:hover {
	background: var(--secondary-color);
}

.output-container {
	position: relative;
}

.string { color: #98c379; }
.number { color: #d19a66; }
.boolean { color: #56b6c2; }
.null { color: #e06c75; }
.key { color: #e5c07b; font-weight: bold; }

@media (max-width: 768px) {
	.main-container {
		margin: 10px;
		border-radius: 15px;
	}
	
	.toolbar {
		padding: 15px;
	}
	
	.toolbar-group {
		padding-right: 15px;
	}
	
	.json-editor, .json-output {
		font-size: 12px;
		padding: 15px;
	}
}
