/**
 * SleepOps Setup Page Styles
 */

.sleepops-setup {
	max-width: 900px;
	margin: 0 auto;
	padding: 2rem 1rem;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
	line-height: 1.6;
	color: #333;
}

/* Header */
.sleepops-setup__header {
	margin-bottom: 3rem;
	padding-bottom: 2rem;
	border-bottom: 2px solid #e9ecef;
}

.sleepops-setup__title {
	font-size: 2.5rem;
	font-weight: 700;
	margin-bottom: 1.5rem;
	color: #1a1a1a;
	line-height: 1.2;
}

.sleepops-setup__goal {
	font-size: 1.2rem;
	color: #555;
	margin-bottom: 1.5rem;
	line-height: 1.6;
}

.sleepops-setup__principles {
	margin-top: 2rem;
	padding: 1.5rem;
	background: #f8f9fa;
	border-radius: 8px;
}

.sleepops-setup__principles h2 {
	font-size: 1.5rem;
	font-weight: 600;
	margin-bottom: 1rem;
	color: #2c3e50;
}

.sleepops-setup__principles ul {
	list-style: none;
	padding-left: 0;
	margin: 0;
}

.sleepops-setup__principles li {
	padding: 0.75rem 0;
	padding-left: 1.5rem;
	position: relative;
}

.sleepops-setup__principles li:before {
	content: '•';
	position: absolute;
	left: 0;
	color: #007bff;
	font-weight: bold;
	font-size: 1.2rem;
}

/* Modules */
.sleepops-setup__modules {
	margin-bottom: 3rem;
}

.sleepops-setup-module {
	margin-bottom: 3rem;
	padding: 2rem;
	background: #fff;
	border: 1px solid #e9ecef;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
	transition: box-shadow 0.2s;
}

.sleepops-setup-module:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.sleepops-module__title {
	font-size: 1.75rem;
	font-weight: 600;
	margin-bottom: 1rem;
	color: #2c3e50;
	padding-bottom: 0.75rem;
	border-bottom: 2px solid #007bff;
}

.sleepops-module__why {
	margin-bottom: 1.5rem;
	padding: 1rem;
	background: #e7f3ff;
	border-left: 4px solid #007bff;
	border-radius: 4px;
}

.sleepops-module__why p {
	margin: 0;
	color: #004085;
	font-size: 1rem;
	line-height: 1.6;
}

.sleepops-module__how {
	margin-bottom: 1.5rem;
}

.sleepops-module__how h4 {
	font-size: 1.2rem;
	font-weight: 600;
	margin-bottom: 0.75rem;
	color: #2c3e50;
}

.sleepops-module__how ul {
	list-style: none;
	padding-left: 0;
	margin: 0;
}

.sleepops-module__how li {
	padding: 0.5rem 0;
	padding-left: 1.5rem;
	position: relative;
}

.sleepops-module__how li:before {
	content: '→';
	position: absolute;
	left: 0;
	color: #007bff;
	font-weight: bold;
}

.sleepops-module__devices {
	margin-bottom: 1.5rem;
}

.sleepops-module__devices h4 {
	font-size: 1.2rem;
	font-weight: 600;
	margin-bottom: 0.75rem;
	color: #2c3e50;
}

.sleepops-device-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.sleepops-device-list li {
	margin: 0;
}

.sleepops-device-list a {
	display: inline-block;
	padding: 0.5rem 1rem;
	background: #f8f9fa;
	border: 1px solid #dee2e6;
	border-radius: 6px;
	color: #007bff;
	text-decoration: none;
	transition: all 0.2s;
	font-size: 0.95rem;
}

.sleepops-device-list a:hover {
	background: #e7f3ff;
	border-color: #007bff;
	color: #0056b3;
}

.sleepops-module__avoid {
	margin-bottom: 1.5rem;
	padding: 1rem;
	background: #fff3cd;
	border-left: 4px solid #ffc107;
	border-radius: 4px;
}

.sleepops-module__avoid h4 {
	font-size: 1.2rem;
	font-weight: 600;
	margin-bottom: 0.75rem;
	color: #856404;
}

.sleepops-module__avoid ul {
	list-style: none;
	padding-left: 0;
	margin: 0;
}

.sleepops-module__avoid li {
	padding: 0.5rem 0;
	padding-left: 1.5rem;
	position: relative;
	color: #856404;
}

.sleepops-module__avoid li:before {
	content: '⚠';
	position: absolute;
	left: 0;
	font-weight: bold;
}

.sleepops-module__guardrails {
	margin-bottom: 1.5rem;
	padding: 1rem;
	background: #f8d7da;
	border-left: 4px solid #dc3545;
	border-radius: 4px;
}

.sleepops-module__guardrails h4 {
	font-size: 1.2rem;
	font-weight: 600;
	margin-bottom: 0.75rem;
	color: #721c24;
}

.sleepops-module__guardrails ul {
	list-style: none;
	padding-left: 0;
	margin: 0;
}

.sleepops-module__guardrails li {
	padding: 0.5rem 0;
	padding-left: 1.5rem;
	position: relative;
	color: #721c24;
}

.sleepops-module__guardrails li:before {
	content: '⚡';
	position: absolute;
	left: 0;
	font-weight: bold;
}

/* Completion Check */
.sleepops-setup__completion {
	margin-bottom: 3rem;
	padding: 2rem;
	background: #d4edda;
	border: 1px solid #c3e6cb;
	border-radius: 8px;
}

.sleepops-setup__completion h2 {
	font-size: 1.5rem;
	font-weight: 600;
	margin-bottom: 1rem;
	color: #155724;
}

.sleepops-setup__completion ul {
	list-style: none;
	padding-left: 0;
	margin: 0;
}

.sleepops-setup__completion li {
	padding: 0.75rem 0;
	padding-left: 1.5rem;
	position: relative;
	color: #155724;
}

.sleepops-setup__completion li:before {
	content: '✓';
	position: absolute;
	left: 0;
	color: #28a745;
	font-weight: bold;
	font-size: 1.2rem;
}

/* Disclaimer */
.sleepops-setup__disclaimer {
	margin-bottom: 2rem;
	padding: 1.5rem;
	background: #fff3cd;
	border-left: 4px solid #ffc107;
	border-radius: 4px;
}

.sleepops-disclaimer {
	margin: 0.5rem 0;
	color: #856404;
	font-size: 0.95rem;
	line-height: 1.6;
}

/* CTA Button */
.sleepops-setup__cta {
	margin-top: 3rem;
	padding: 2rem;
	background: #f8f9fa;
	border-radius: 8px;
	text-align: center;
}

.sleepops-cta-button {
	display: inline-block;
	padding: 1rem 2rem;
	font-size: 1.1rem;
	font-weight: 600;
	color: #fff;
	background: #007bff;
	border: none;
	border-radius: 8px;
	text-decoration: none;
	transition: background 0.2s;
	cursor: pointer;
}

.sleepops-cta-button:hover {
	background: #0056b3;
	color: #fff;
	text-decoration: none;
}

/* Setup Usage Panel */
.sleepops-setup-usage {
	margin: 2.5rem 0;
	padding: 2rem;
	background: #f0f7ff;
	border: 1px solid #cce0ff;
	border-radius: 12px;
}

.sleepops-setup-usage__heading {
	font-size: 1.25rem;
	font-weight: 600;
	color: #1a4d8f;
	margin-bottom: 1.25rem;
}

.sleepops-setup-usage__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.sleepops-usage-btn {
	padding: 0.6rem 1.25rem;
	font-size: 0.95rem;
	font-weight: 600;
	border: 2px solid transparent;
	border-radius: 8px;
	cursor: pointer;
	transition: background 0.18s, border-color 0.18s, opacity 0.18s;
}

.sleepops-usage-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.sleepops-usage-btn--start {
	background: #1a73e8;
	color: #fff;
}

.sleepops-usage-btn--start:hover:not(:disabled) {
	background: #1558b0;
}

.sleepops-usage-btn--complete {
	background: #28a745;
	color: #fff;
}

.sleepops-usage-btn--complete:hover:not(:disabled) {
	background: #1e7e34;
}

.sleepops-usage-btn--dismiss {
	background: transparent;
	color: #666;
	border-color: #ccc;
}

.sleepops-usage-btn--dismiss:hover:not(:disabled) {
	background: #f1f1f1;
}

/* Feedback sub-panel */
.sleepops-setup-usage__feedback {
	margin-top: 1.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid #cce0ff;
}

.sleepops-setup-usage__feedback-title {
	font-weight: 600;
	margin-bottom: 1rem;
	color: #333;
}

.sleepops-setup-usage__rating {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 0.75rem;
}

.sleepops-setup-usage__rating-label {
	min-width: 140px;
	font-size: 0.95rem;
	color: #444;
}

.sleepops-setup-usage__stars {
	display: flex;
	gap: 0.25rem;
}

.sleepops-star-btn {
	background: none;
	border: none;
	font-size: 1.6rem;
	color: #ccc;
	cursor: pointer;
	padding: 0;
	line-height: 1;
	transition: color 0.15s, transform 0.1s;
}

.sleepops-star-btn:hover,
.sleepops-star-btn.is-active {
	color: #f5a623;
}

.sleepops-star-btn:hover {
	transform: scale(1.15);
}

.sleepops-usage-submit-btn {
	display: inline-block;
	margin-top: 1rem;
	padding: 0.6rem 1.5rem;
	font-size: 0.95rem;
	font-weight: 600;
	background: #28a745;
	color: #fff;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: background 0.18s, opacity 0.18s;
}

.sleepops-usage-submit-btn:hover:not(:disabled) {
	background: #1e7e34;
}

.sleepops-usage-submit-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* Thanks message */
.sleepops-setup-usage__thanks {
	margin-top: 1rem;
	font-weight: 600;
	color: #28a745;
	font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
	.sleepops-setup {
		padding: 1rem 0.5rem;
	}

	.sleepops-setup__title {
		font-size: 2rem;
	}

	.sleepops-setup__goal {
		font-size: 1.1rem;
	}

	.sleepops-setup-module {
		padding: 1.5rem;
	}

	.sleepops-module__title {
		font-size: 1.5rem;
	}

	.sleepops-device-list {
		flex-direction: column;
	}

	.sleepops-device-list a {
		width: 100%;
		text-align: center;
	}

	.sleepops-setup-usage {
		padding: 1.25rem;
	}

	.sleepops-setup-usage__actions {
		flex-direction: column;
	}

	.sleepops-usage-btn {
		width: 100%;
		text-align: center;
	}

	.sleepops-setup-usage__rating {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.5rem;
	}
}
