/**
 * SolarEdge Monitor — Frontend widget styles
 * BEM naming: .sem-widget, .sem-widget__*
 */

.sem-widget {
	box-sizing: border-box;
	padding: 1.25rem 1.5rem;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	background: #fff;
	font-family: inherit;
	max-width: 360px;
}

.sem-title {
	margin: 0 0 0.75rem;
	font-size: 1.1rem;
	font-weight: 600;
}

.sem-stats {
	list-style: none;
	margin: 0 0 0.75rem;
	padding: 0;
}

.sem-stats li {
	display: flex;
	justify-content: space-between;
	padding: 0.3rem 0;
	border-bottom: 1px solid #f0f0f0;
}

.sem-stats li:last-child {
	border-bottom: none;
}

.sem-label {
	color: #555;
	font-size: 0.9rem;
}

.sem-value {
	font-weight: 600;
	font-size: 0.9rem;
}

.sem-stale-warning {
	margin: 0.5rem 0;
	padding: 0.4rem 0.75rem;
	background: #fff8e1;
	border-left: 3px solid #f9a825;
	font-size: 0.8rem;
	color: #555;
}

.sem-logo-link {
	display: inline-block;
	margin: 0.75rem 0 0.25rem;
}

.sem-logo {
	height: 24px;
	width: auto;
	display: block;
}

.sem-updated {
	margin: 0.25rem 0 0;
	font-size: 0.75rem;
	color: #888;
}

.sem-notice {
	padding: 0.5rem 0.75rem;
	background: #f5f5f5;
	border-left: 3px solid #bbb;
	font-size: 0.875rem;
	color: #555;
}

.sem-notice--error {
	background: #fef2f2;
	border-left-color: #ef4444;
	color: #b91c1c;
}
