/* League Manager — Frontend Styles */

.lm-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9em;
}

.lm-table th,
.lm-table td {
	padding: 8px 10px;
	border-bottom: 1px solid #e0e0e0;
	text-align: center;
}

.lm-table th {
	background: #f5f5f5;
	font-weight: 600;
}

.lm-col-team {
	text-align: left;
}

.lm-col-teams {
	text-align: left;
}

.lm-align-right {
	text-align: right;
}

.lm-team-logo {
	width: 24px;
	height: 24px;
	vertical-align: middle;
	margin-right: 6px;
	object-fit: contain;
}

.lm-team-logo-lg {
	width: 80px;
	height: 80px;
	object-fit: contain;
	margin-bottom: 10px;
}

/* Zone highlights */
.lm-zone-promotion {
	border-left: 4px solid #28a745;
}

.lm-zone-playoff {
	border-left: 4px solid #fd7e14;
}

.lm-zone-relegation {
	border-left: 4px solid #dc3545;
}

/* Zone legend */
.lm-zone-legend {
	display: flex;
	gap: 16px;
	margin-bottom: 8px;
	font-size: 0.8em;
}

.lm-legend-dot {
	display: inline-block;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	margin-right: 4px;
	vertical-align: middle;
}

.lm-legend-dot.lm-zone-promotion  { background: #28a745; border-left: none; }
.lm-legend-dot.lm-zone-playoff    { background: #fd7e14; border-left: none; }
.lm-legend-dot.lm-zone-relegation { background: #dc3545; border-left: none; }

/* Form badges */
.lm-form-badge {
	display: inline-block;
	width: 20px;
	height: 20px;
	line-height: 20px;
	border-radius: 50%;
	font-size: 0.75em;
	font-weight: bold;
	color: #fff;
	text-align: center;
	margin-right: 2px;
}

.lm-form-w { background: #28a745; }
.lm-form-d { background: #aaa; }
.lm-form-l { background: #dc3545; }

/* Season filter */
.lm-season-filter {
	margin-bottom: 12px;
}

.lm-season-filter label {
	font-weight: 600;
	margin-right: 6px;
}

/* Score */
.lm-score {
	font-size: 1.1em;
}

.lm-vs {
	color: #888;
	font-size: 0.85em;
}

/* No data */
.lm-no-data {
	color: #888;
	font-style: italic;
}

/* Team card */
.lm-team-card { max-width: 700px; }

.lm-team-header {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-bottom: 20px;
}

.lm-team-name {
	font-size: 1.4em;
	margin: 0 0 6px;
}

/* Player card */
.lm-player-card {
	display: flex;
	gap: 20px;
	align-items: flex-start;
	max-width: 500px;
}

.lm-player-photo {
	width: 100px;
	height: 100px;
	object-fit: cover;
	border-radius: 50%;
}

.lm-player-name { margin: 0 0 10px; }

.lm-jersey {
	color: #555;
	font-weight: normal;
	margin-right: 4px;
}

.lm-player-details th {
	text-align: left;
	padding-right: 12px;
	font-weight: 600;
	color: #555;
}

.lm-player-details td {
	text-align: left;
}

/* Frontend forms */
.lm-frontend-form-wrap {
	max-width: 560px;
}

.lm-frontend-form label {
	display: block;
	margin-bottom: 12px;
	font-weight: 600;
}

.lm-frontend-form input[type="text"],
.lm-frontend-form input[type="number"],
.lm-frontend-form input[type="date"],
.lm-frontend-form input[type="time"],
.lm-frontend-form select {
	display: block;
	width: 100%;
	padding: 8px;
	margin-top: 4px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 1em;
	box-sizing: border-box;
}

.lm-frontend-form fieldset {
	border: 1px solid #ddd;
	padding: 12px;
	border-radius: 4px;
	margin-bottom: 12px;
}

.lm-frontend-form fieldset legend {
	font-weight: 600;
	padding: 0 6px;
}

.lm-checkbox-label {
	font-weight: normal;
	display: flex;
	align-items: center;
	gap: 6px;
}

.lm-score-row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
}

.lm-score-row label {
	flex: 1;
}

.lm-score-row input {
	width: 70px;
}

.lm-adj-points {
	margin-bottom: 12px;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
}

.lm-adj-points summary {
	cursor: pointer;
	font-weight: 600;
}

.lm-btn {
	background: #0073aa;
	color: #fff;
	border: none;
	padding: 10px 20px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 1em;
}

.lm-btn:hover { background: #005d8c; }

.lm-notice {
	padding: 10px 14px;
	border-radius: 4px;
	margin-bottom: 12px;
}

.lm-notice.success { background: #d4edda; color: #155724; }
.lm-notice.error   { background: #f8d7da; color: #721c24; }

/* Widget styles */
.lm-widget-table th,
.lm-widget-table td {
	padding: 5px 6px;
	font-size: 0.85em;
}

.lm-widget-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.lm-widget-list li {
	padding: 5px 0;
	border-bottom: 1px solid #eee;
	font-size: 0.88em;
}

.lm-w-date {
	color: #888;
	font-size: 0.85em;
	margin-right: 4px;
}

.lm-widget-team,
.lm-widget-player {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

/* Admin meta table */
.lm-meta-table {
	width: 100%;
	border-collapse: collapse;
}

.lm-meta-table th {
	width: 180px;
	text-align: left;
	padding: 8px 12px 8px 0;
	vertical-align: top;
	font-weight: 600;
}

.lm-meta-table td {
	padding: 6px 0;
}

.lm-checkbox-list label {
	display: block;
	margin-bottom: 4px;
}

.lm-meta-table select,
.lm-meta-table input[type="text"],
.lm-meta-table input[type="number"],
.lm-meta-table input[type="date"],
.lm-meta-table input[type="time"] {
	max-width: 300px;
}
