/* ============================================================================
   SETTINGS MODAL STYLES
   ============================================================================ */

.settings-modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
	z-index: 23000;
	align-items: center;
	justify-content: center;
}

.settings-modal.active {
	display: flex;
}

.settings-content {
	background: #2d2d30;
	border: 1px solid #3e3e42;
	border-radius: 12px;
	padding: 2.5rem;
	min-width: 750px;
	max-width: 900px;
	width: 90%;
	max-height: 90vh;
	overflow-y: auto;
	color: white;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(78, 201, 176, 0.1);
	animation: settingsSlideIn 0.3s ease-out;
}

@keyframes settingsSlideIn {
	from {
		opacity: 0;
		transform: scale(0.95) translateY(-20px);
	}
	to {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
}

.settings-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 2rem;
	padding-bottom: 1.25rem;
	border-bottom: 2px solid #3e3e42;
}

.settings-header h2 {
	color: #4ec9b0;
	font-size: 1.75rem;
	font-weight: 600;
	letter-spacing: 0.5px;
	margin: 0;
}

.close-settings {
	background: transparent;
	border: none;
	color: #ccc;
	font-size: 2rem;
	cursor: pointer;
	padding: 0.5rem;
	line-height: 1;
	transition: all 0.2s ease;
	border-radius: 4px;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.close-settings:hover {
	color: #e74c3c;
	background: rgba(231, 76, 60, 0.1);
	transform: scale(1.1);
}

.settings-group {
	margin-bottom: 2rem;
}

.settings-label {
	display: block;
	margin-bottom: 0.75rem;
	color: #e0e0e0;
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0.3px;
}

.settings-select {
	width: 100%;
	padding: 1rem 1.25rem;
	background: #1e1e1e;
	border: 2px solid #3e3e42;
	border-radius: 8px;
	color: white;
	font-size: 1rem;
	cursor: pointer;
	transition: all 0.2s ease;
}

.settings-select:hover {
	border-color: #4ec9b0;
	background: #252525;
}

.settings-select:focus {
	outline: none;
	border-color: #4ec9b0;
	box-shadow: 0 0 0 3px rgba(78, 201, 176, 0.2);
}

.theme-preview {
	margin-top: 1rem;
	padding: 1.25rem;
	background: #1e1e1e;
	border: 2px solid #3e3e42;
	border-radius: 8px;
	font-family: 'Courier New', monospace;
	font-size: 0.95rem;
	line-height: 1.6;
	transition: border-color 0.2s ease;
}

.theme-preview:hover {
	border-color: #4ec9b0;
}

.color-picker {
	width: 100%;
	height: 40px;
	border: 1px solid #3e3e42;
	border-radius: 4px;
	cursor: pointer;
	margin-top: 0.25rem;
}

.color-picker:hover {
	border-color: #4ec9b0;
}

/* ============================================================================
   THEME CARDS
   ============================================================================ */

.theme-category {
	margin-bottom: 2rem;
}

.theme-category:last-child {
	margin-bottom: 0;
}

.theme-category-title {
	color: #e0e0e0;
	font-size: 0.95rem;
	font-weight: 600;
	margin: 0 0 1rem 0;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	opacity: 0.8;
}

.theme-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 1rem;
	margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
	.theme-grid {
		grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
		gap: 0.75rem;
	}

	.theme-card-preview {
		height: 70px;
		font-size: 0.7rem;
		padding: 0.5rem;
	}

	.theme-card-label {
		padding: 0.5rem;
		font-size: 0.8rem;
	}
}

.theme-card {
	cursor: pointer;
	border-radius: 8px;
	overflow: hidden;
	transition: all 0.2s ease;
	border: 2px solid #3e3e42;
	background: #1e1e1e;
}

.theme-card:hover {
	border-color: #4ec9b0;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(78, 201, 176, 0.2);
}

.theme-card.active {
	border-color: #4ec9b0;
	box-shadow: 0 0 0 3px rgba(78, 201, 176, 0.3);
}

.theme-card-preview {
	height: 80px;
	padding: 0.75rem;
	font-family: 'Courier New', monospace;
	font-size: 0.75rem;
	line-height: 1.4;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.theme-card-label {
	padding: 0.75rem;
	background: #252525;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 0.85rem;
	color: #e0e0e0;
	font-weight: 500;
}

.theme-badge {
	background: #4ec9b0;
	color: #1e1e1e;
	font-size: 0.7rem;
	padding: 0.2rem 0.5rem;
	border-radius: 4px;
	font-weight: 600;
}

/* ============================================================================
   COLLAPSIBLE SECTION
   ============================================================================ */

.collapsible-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	cursor: pointer;
	padding: 0.5rem 0;
	user-select: none;
	transition: opacity 0.2s ease;
}

.collapsible-header:hover {
	opacity: 0.8;
}

.collapse-toggle {
	background: transparent;
	border: none;
	color: #4ec9b0;
	cursor: pointer;
	padding: 0.25rem 0.5rem;
	border-radius: 4px;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.collapse-toggle:hover {
	background: rgba(78, 201, 176, 0.1);
}

.collapse-icon {
	display: inline-block;
	transition: transform 0.3s ease;
	font-size: 0.8rem;
}

.collapsible-header.collapsed .collapse-icon {
	transform: rotate(-90deg);
}

.collapsible-content {
	overflow: hidden;
	transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
	max-height: 2000px;
	opacity: 1;
	padding-top: 0.5rem;
}

.collapsible-content.collapsed {
	max-height: 0;
	opacity: 0;
	padding-top: 0;
	padding-bottom: 0;
	margin-top: 0;
}

/* ============================================================================
   VERSION CONTROL STYLES
   ============================================================================ */

.settings-input {
	width: 100%;
	padding: 1rem 1.25rem;
	background: #1e1e1e;
	border: 2px solid #3e3e42;
	border-radius: 8px;
	color: white;
	font-size: 1rem;
	transition: all 0.2s ease;
	font-family: inherit;
}

.settings-input:hover {
	border-color: #4ec9b0;
	background: #252525;
}

.settings-input:focus {
	outline: none;
	border-color: #4ec9b0;
	box-shadow: 0 0 0 3px rgba(78, 201, 176, 0.2);
}

.settings-button {
	background: #4ec9b0;
	color: #1e1e1e;
	border: none;
	padding: 0.75rem 1.5rem;
	border-radius: 8px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
}

.settings-button:hover {
	background: #3db89d;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(78, 201, 176, 0.3);
}

.settings-button:active {
	transform: translateY(0);
}

/* Old .history-item / .snapshot-item styles removed — see version-history-panel.css */

/* ============================================================================
   DIFF VIEW STYLES
   ============================================================================ */

.diff-view {
	font-family: 'Courier New', monospace;
	font-size: 0.9rem;
	line-height: 1.6;
	background: #1e1e1e;
	border-radius: 6px;
	overflow: hidden;
}

.diff-line {
	display: flex;
	padding: 0.25rem 0.5rem;
	border-left: 3px solid transparent;
	transition: background-color 0.2s ease;
}

.diff-line:hover {
	background: rgba(255, 255, 255, 0.05);
}

.diff-line-number {
	display: inline-block;
	min-width: 3rem;
	padding-right: 1rem;
	color: #666;
	text-align: right;
	user-select: none;
	font-size: 0.85rem;
}

.diff-content {
	flex: 1;
	white-space: pre-wrap;
	word-break: break-word;
}

.diff-equal {
	color: #ccc;
}

.diff-delete {
	background: rgba(231, 76, 60, 0.15);
	border-left-color: #e74c3c;
	color: #ff6b6b;
}

.diff-delete .diff-line-number {
	color: #e74c3c;
}

.diff-insert {
	background: rgba(46, 204, 113, 0.15);
	border-left-color: #2ecc71;
	color: #51cf66;
}

.diff-insert .diff-line-number {
	color: #2ecc71;
}

.diff-word {
	padding: 0.1rem 0.2rem;
	border-radius: 2px;
}

.diff-word.diff-equal {
	background: transparent;
}

.diff-word.diff-delete {
	background: rgba(231, 76, 60, 0.3);
	text-decoration: line-through;
}

.diff-word.diff-insert {
	background: rgba(46, 204, 113, 0.3);
}

.diff-viewer {
	background: #1e1e1e;
	border-radius: 6px;
	padding: 1rem;
	max-height: 500px;
	overflow-y: auto;
	margin-top: 1rem;
}

.diff-viewer-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid #3e3e42;
}

.diff-viewer-title {
	color: #4ec9b0;
	font-weight: 600;
	font-size: 1rem;
}

.diff-viewer-close {
	background: transparent;
	border: none;
	color: #999;
	cursor: pointer;
	font-size: 1.5rem;
	padding: 0.25rem 0.5rem;
	border-radius: 4px;
	transition: all 0.2s ease;
}

.diff-viewer-close:hover {
	color: #e74c3c;
	background: rgba(231, 76, 60, 0.1);
}

.diff-file-header {
	background: #252525;
	padding: 0.75rem 1rem;
	border-radius: 6px;
	margin-bottom: 0.5rem;
	font-weight: 600;
	color: #4ec9b0;
	font-size: 0.9rem;
}

.diff-stats {
	display: flex;
	gap: 1rem;
	margin-top: 0.5rem;
	font-size: 0.85rem;
	color: #999;
}

.diff-stat {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.diff-stat-additions {
	color: #2ecc71;
}

.diff-stat-deletions {
	color: #e74c3c;
}

.diff-stat-changes {
	color: #4ec9b0;
}

