/* Sunday School Song Log -- front-end styles */

.ssl-box {
	max-width: 900px;
	margin: 1.5em 0;
	font-size: 16px;
	line-height: 1.5;
}

.ssl-notice {
	background: #f6f7f4;
	border: 1px solid #ddd;
	border-radius: 6px;
	padding: 1.2em 1.5em;
}

.ssl-success {
	background: #eaf7ea;
	border: 1px solid #a9d8a9;
	border-radius: 6px;
	padding: 0.8em 1.2em;
	color: #2a5c2a;
}

/* Log form */

.ssl-field {
	margin: 1em 0;
}

.ssl-field label {
	display: inline-block;
	margin-bottom: 0.3em;
}

.ssl-field input[type="date"],
.ssl-field input[type="text"],
.ssl-field input[type="url"],
.ssl-field textarea {
	width: 100%;
	max-width: 480px;
	padding: 0.6em 0.7em;
	font-size: 16px;
	border: 1px solid #ccc;
	border-radius: 6px;
	box-sizing: border-box;
}

.ssl-song-checklist {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 0.4em 1em;
	max-height: 420px;
	overflow-y: auto;
	padding: 1em;
	border: 1px solid #ddd;
	border-radius: 6px;
	background: #fff;
}

.ssl-song-option {
	display: flex;
	align-items: center;
	gap: 0.5em;
	padding: 0.35em 0;
	cursor: pointer;
}

.ssl-song-option input {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

.ssl-add-new-toggle a {
	text-decoration: none;
	font-weight: 600;
}

.ssl-new-song-fields {
	border-left: 3px solid #ccc;
	padding: 0.5em 0 0.5em 1em;
	margin: 1em 0;
}

.ssl-hint {
	color: #666;
	font-size: 0.9em;
}

.ssl-button {
	background: #2a5c2a;
	color: #fff;
	border: none;
	padding: 0.9em 1.6em;
	font-size: 17px;
	border-radius: 6px;
	cursor: pointer;
}

.ssl-button:hover {
	background: #1f451f;
}

.ssl-button-small {
	padding: 0.5em 1em;
	font-size: 15px;
}

/* Song library */

.ssl-library-controls {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6em;
	margin-bottom: 1.2em;
}

.ssl-library-controls input[type="text"],
.ssl-library-controls select {
	padding: 0.5em 0.7em;
	font-size: 15px;
	border: 1px solid #ccc;
	border-radius: 6px;
}

.ssl-song-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1.2em;
}

.ssl-song-card {
	border: 1px solid #ddd;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	display: flex;
	flex-direction: column;
}

.ssl-thumb img {
	width: 100%;
	display: block;
}

.ssl-song-card-body {
	padding: 0.9em 1em 1.1em;
}

.ssl-song-title {
	margin: 0 0 0.2em;
	font-size: 1.1em;
}

.ssl-song-artist {
	margin: 0 0 0.5em;
	color: #666;
	font-size: 0.9em;
}

.ssl-song-stats {
	font-size: 0.9em;
	color: #444;
}

.ssl-lyrics-toggle summary {
	cursor: pointer;
	font-weight: 600;
	margin-top: 0.5em;
}

.ssl-lyrics {
	margin-top: 0.5em;
	white-space: normal;
	font-size: 0.95em;
	line-height: 1.6;
}

.ssl-history-list {
	margin: 0.5em 0 0;
	padding-left: 1.2em;
	font-size: 0.9em;
	max-height: 200px;
	overflow-y: auto;
}

@media (max-width: 480px) {
	.ssl-song-checklist {
		grid-template-columns: 1fr;
		max-height: 320px;
	}
}
