/* Base layout */
html, body {
	height: 100%;
	margin: 0;
	background: #000;
	color: #e6e6e6;
	font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

.app {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.topbar {
	position: sticky;
	top: 0;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 16px;
	background: linear-gradient(180deg, rgba(0,0,0,0.95), rgba(0,0,0,0.7));
	backdrop-filter: blur(6px);
	border-bottom: 1px solid #222;
}

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

.player {
	display: flex;
	gap: 6px;
}
.provoice-toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.player label span {
	color: #aaa;
	font-size: 12px;
	margin-left: 8px;
	margin-right: 6px;
}

label span {
	display: inline-block;
	font-size: 12px;
	color: #aaa;
	margin-right: 6px;
}

select, input, button {
	background: #111;
	color: #e6e6e6;
	border: 1px solid #333;
	padding: 8px 10px;
	border-radius: 6px;
	outline: none;
}

select:focus, input:focus, button:focus {
	border-color: #555;
}

button {
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease;
}

button:hover {
	background: #171717;
	border-color: #555;
}

.jump {
	display: flex;
	gap: 8px;
}

.content {
	flex: 1;
	max-width: 950px;
	margin: 0 auto;
	padding: 20px 16px 80px;
	line-height: 1.7;
	font-size: 22px;
}

.reference {
	font-weight: 600;
	color: #ddd;
	margin: 8px 0 16px;
	letter-spacing: 0.3px;
	font-size: 28px;
}

.verses {
	display: grid;
	grid-template-columns: 1fr;
	gap: 8px;
}

.verse {
	position: relative;
	padding: 8px 10px;
	border-radius: 6px;
	transition: background 0.15s ease;
}

.verse:hover {
	background: rgba(255,255,255,0.03);
}

.verse-number {
	color: #9acd32;
	font-variant-numeric: tabular-nums;
	margin-right: 8px;
}

.highlight {
	background: #ffff00;
	color: #000;
	box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1);
	border-radius: 6px;
}

/* Keep highlight style on hover */
.verse.highlight:hover {
	background: #ffff00;
	box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1);
}

.reading {
	outline: 3px solid #9acd32;
	/* no background here to avoid conflicting with highlights */
}

/* When a highlighted verse is being read, keep pure yellow and add outline */
.verse.highlight.reading {
	background: #ffff00;
	color: #000;
	box-shadow: inset 0 0 0 1px rgba(0,0,0,0.15), 0 0 0 3px #9acd32;
}

.loading, .error {
	margin-top: 20px;
	padding: 10px 12px;
	border-radius: 6px;
}

.loading {
	background: #0e0e0e;
	border: 1px solid #1e1e1e;
}

.error {
	background: rgba(220, 38, 38, 0.1);
	border: 1px solid rgba(220, 38, 38, 0.3);
	color: #fca5a5;
}


/* === ENHANCED HIGHLIGHT CONTROLS === */
.highlight-controls {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px;
	background: rgba(17,17,17,0.95);
	border: 1px solid #333;
	border-radius: 8px;
	margin-left: 12px;
}

.color-picker {
	display: flex;
	gap: 4px;
}

.color-option {
	width: 24px;
	height: 24px;
	border-radius: 4px;
	cursor: pointer;
	border: 2px solid transparent;
	transition: all 0.2s ease;
}

.color-option:hover {
	transform: scale(1.1);
	border-color: #fff;
}

.color-option.active {
	border-color: #9acd32;
	box-shadow: 0 0 0 1px #9acd32;
}

.highlight-action-btn {
	background: #333;
	color: #fff;
	border: 1px solid #555;
	padding: 6px 12px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 12px;
	transition: all 0.2s ease;
}

.highlight-action-btn:hover {
	background: #444;
}

.highlight-action-btn:disabled {
	background: #222;
	color: #666;
	cursor: not-allowed;
}

/* === ENHANCED HIGHLIGHT STYLES === */
.highlight-yellow { background: #ffff00 !important; color: #000 !important; }
.highlight-green { background: #90EE90 !important; color: #000 !important; }
.highlight-blue { background: #87CEEB !important; color: #000 !important; }
.highlight-pink { background: #FFB6C1 !important; color: #000 !important; }
.highlight-orange { background: #FFA500 !important; color: #000 !important; }
.highlight-purple { background: #DDA0DD !important; color: #000 !important; }
.highlight-red { background: #FF6B6B !important; color: #fff !important; }
.highlight-gray { background: #D3D3D3 !important; color: #000 !important; }

/* Make sure verse numbers aren't selectable */
.verse-number {
	user-select: none;
}

/* Better text selection appearance */
::selection {
	background: rgba(154, 205, 50, 0.3);
	color: inherit;
}

/* Enable text selection globally */
html, body {
	user-select: text;
}
