/* ── SOFTBALL LEAGUE MANAGER STYLES ─────────────────────────── */

.slm-wrap { max-width: 900px; margin: 0 auto; font-family: inherit; }
.slm-wrap h2 { font-size: 1.6em; margin-bottom: 16px; color: #1a1a2e; }
.slm-wrap h3 { font-size: 1.2em; margin-bottom: 12px; }

/* Card */
.slm-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.slm-sub-card { border-top: 3px solid #3b82f6; }

/* Portal header */
.slm-portal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }

/* Fields */
.slm-field { margin-bottom: 16px; }
.slm-field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .9em; color: #374151; }
.slm-field input[type="text"],
.slm-field input[type="password"],
.slm-field input[type="number"],
.slm-field select,
.slm-field textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: .95em;
    box-sizing: border-box;
    transition: border-color .15s;
}
.slm-field input:focus, .slm-field select:focus, .slm-field textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}
.slm-hint { font-size: .82em; color: #6b7280; margin: 4px 0; }

/* Score row */
.slm-scores { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 8px; }
.slm-scores .slm-field { flex: 1; margin-bottom: 0; }
.slm-score-divider { font-size: 1.6em; font-weight: 700; color: #9ca3af; padding-bottom: 6px; }

/* Buttons */
.slm-btn {
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 22px;
    font-size: .95em;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
    margin-right: 8px;
}
.slm-btn:hover { background: #2563eb; }
.slm-btn-outline {
    background: transparent;
    color: #374151;
    border: 1px solid #d1d5db;
}
.slm-btn-outline:hover { background: #f9fafb; }
.slm-btn-sm { padding: 5px 12px; font-size: .82em; }

/* Messages */
.slm-error   { color: #dc2626 !important; font-size: .9em; font-weight: 600; margin-top: 12px;
               background: #fef2f2; border: 1px solid #fecaca; border-radius: 6px; padding: 8px 12px; }
.slm-success { color: #16a34a !important; font-size: .9em; font-weight: 600; margin-top: 12px;
               background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 6px; padding: 8px 12px; }
.slm-message { font-weight: 600; }
.slm-loading { color: #9ca3af; font-style: italic; }

/* Fixtures list */
.slm-fixture-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
    flex-wrap: wrap;
}
.slm-fixture-row:last-child { border-bottom: none; }
.slm-fixture-date { font-size: .82em; color: #6b7280; min-width: 80px; }
.slm-fixture-teams { flex: 1; font-weight: 500; }
.slm-fixture-teams em { color: #9ca3af; font-style: normal; }

/* Badges */
.slm-badge {
    font-size: .75em;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
}
.slm-badge-green  { background: #d1fae5; color: #065f46; }
.slm-badge-amber  { background: #fef3c7; color: #92400e; }

/* ── STANDINGS ────────────────────────────────── */
.slm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9em;
}
.slm-table th {
    background: #1e3a5f;
    color: #fff;
    padding: 10px 12px;
    text-align: center;
    font-size: .82em;
    letter-spacing: .04em;
}
.slm-table th:first-child,
.slm-table th:nth-child(2) { text-align: left; }
.slm-table td {
    padding: 9px 12px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}
.slm-table td:first-child,
.slm-table td:nth-child(2) { text-align: left; }
.slm-table tr:hover { background: #f8fafc; }
.slm-top-row td { background: #eff6ff; }
.slm-table-note { font-size: .78em; color: #9ca3af; margin-top: 8px; }

/* ── RESULTS ─────────────────────────────────── */
.slm-results-grid { display: grid; gap: 12px; }
.slm-result-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 14px 20px;
}
.slm-result-date { font-size: .78em; color: #9ca3af; margin-bottom: 6px; }
.slm-result-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.slm-result-team {
    flex: 1;
    font-weight: 500;
    font-size: .95em;
}
.slm-result-away { text-align: right; }
.slm-result-score {
    background: #1e3a5f;
    color: #fff;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 1.1em;
    white-space: nowrap;
}
.slm-winner { color: #16a34a; font-weight: 700; }

/* ── LINEUPS ─────────────────────────────────── */
.slm-lineup-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}
.slm-lineup-card h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.slm-lineup-score {
    background: #1e3a5f;
    color: #fff;
    padding: 2px 14px;
    border-radius: 20px;
    font-size: .85em;
}
.slm-lineup-teams {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.slm-lineup-team h4 { margin: 0 0 10px; color: #374151; font-size: .95em; text-transform: uppercase; letter-spacing: .05em; }
.slm-lineup-team ol { margin: 0; padding-left: 20px; }
.slm-lineup-team ol li { padding: 3px 0; font-size: .9em; }

@media (max-width: 600px) {
    .slm-scores { flex-direction: column; }
    .slm-result-row { flex-wrap: wrap; justify-content: center; }
    .slm-result-team { text-align: center !important; }
    .slm-lineup-teams { grid-template-columns: 1fr; }
    .slm-portal-header { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ── v1.2.0 ADDITIONS ────────────────────────────────────────── */

/* Fixture meta date under submission form title */
.slm-fixture-meta { color:#6b7280; font-size:.9em; margin:-8px 0 16px; }

/* Squad checkboxes */
.slm-squad-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
    margin-top: 8px;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}
.slm-squad-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    font-size: .9em;
    transition: background .1s, border-color .1s;
}
.slm-squad-item:hover { background: #eff6ff; border-color: #93c5fd; }
.slm-squad-item input[type="checkbox"] { margin: 0; width: 16px; height: 16px; cursor: pointer; }

/* Home/away labels */
.slm-home-away { font-size: .72em; color: #9ca3af; font-weight: normal; text-transform: uppercase; letter-spacing: .04em; }
.slm-home-away-tag {
    font-size: .7em;
    font-weight: 600;
    padding: 1px 7px;
    border-radius: 10px;
    background: #dbeafe;
    color: #1d4ed8;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.slm-away-tag { background: #fce7f3; color: #9d174d; }

/* Red badge for rejected */
.slm-badge-red { background: #fee2e2; color: #991b1b; }

/* Date nav tabs for lineups */
.slm-date-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}
.slm-date-tab {
    padding: 7px 14px;
    border: 1px solid #d1d5db;
    border-radius: 20px;
    font-size: .85em;
    color: #374151;
    text-decoration: none;
    background: #fff;
    transition: all .15s;
}
.slm-date-tab:hover { background: #eff6ff; border-color: #93c5fd; color: #1d4ed8; }
.slm-date-active { background: #1e3a5f !important; color: #fff !important; border-color: #1e3a5f !important; }

/* Lineup header */
.slm-lineup-header { margin-bottom: 12px; }
.slm-lineup-date { font-size: .78em; color: #9ca3af; display: block; margin-bottom: 4px; }
.slm-lineup-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0;
    font-size: 1.1em;
}
.slm-lineup-home, .slm-lineup-away { font-weight: 600; }
.slm-lineup-score-tbc {
    background: #f3f4f6;
    color: #6b7280;
    padding: 2px 14px;
    border-radius: 20px;
    font-size: .85em;
}

/* Results home/away small label */
.slm-result-team { display: flex; flex-direction: column; }
.slm-result-team .slm-home-away { margin-top: 2px; }
