/* Team and team-manager pages. */

.lineup-status-container {
    text-align: center;
    padding: 2rem;
    background-color: #f0f4f8;
    border-radius: 8px;
    max-width: 600px;
    margin: 2rem auto 0;
}

.lineup-status-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.lineup-status-icon-muted {
    color: #6c757d;
}

.lineup-status-icon-success {
    color: #28a745;
}

.lineup-confirm-modal {
    max-width: 400px;
}

.lineup-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.lineup-player-name-label {
    font-weight: 400;
    font-size: .8em;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,.8);
}

.lineup-bench-player-link {
    font-weight: 400;
    font-size: .9em;
}

.team-hub-player-link {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}

/* Select fixture lineup page extracted styles. */
.lineup-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
    margin-bottom: 1.5rem;
}

.lineup-summary-card {
    background: white;
    border: 1px solid #e8edf3;
    border-left: 4px solid var(--primary-color, #3498db);
    border-radius: 8px;
    padding: 14px;
}

.lineup-summary-card.success {
    border-left-color: #27ae60;
}

.lineup-summary-card.warning {
    border-left-color: #f39c12;
}

.lineup-summary-card span {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #7f8c8d;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
}

.lineup-summary-card strong {
    display: block;
    color: #2c3e50;
    font-size: 1.5rem;
    margin-top: 8px;
}

.lineup-summary-card small {
    color: #607080;
}

.lineup-fixture-list {
    display: grid;
    gap: 12px;
}

.lineup-fixture-item {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 10px;
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.lineup-fixture-item:not(.locked):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.lineup-fixture-item.locked {
    opacity: 0.72;
    cursor: not-allowed;
}

.fixture-main,
.fixture-lineup-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.fixture-main .team {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.fixture-main .home-team {
    justify-content: flex-end;
    text-align: right;
}

.fixture-main .away-team {
    justify-content: flex-start;
}

.team-logo {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.team-name {
    font-weight: 700;
}

.time-box {
    min-width: 92px;
    text-align: center;
}

.gameweek,
.date {
    display: block;
    color: #7f8c8d;
    font-size: 0.72rem;
    text-transform: uppercase;
}

.time {
    display: block;
    color: #2c3e50;
    font-size: 1.25rem;
    font-weight: 800;
}

.fixture-lineup-meta {
    border-top: 1px solid #edf1f5;
    padding-top: 12px;
    color: #607080;
    font-size: 0.86rem;
}

.lineup-status-badge {
    padding: 7px 10px;
    border-radius: 999px;
    font-weight: 700;
}

.lineup-status-badge.pending {
    background: #eef6ff;
    color: var(--primary-color, #3498db);
}

.lineup-status-badge.submitted {
    background: #d4edda;
    color: #155724;
}

.lineup-status-badge.locked {
    background: #f1f3f5;
    color: #6c757d;
}

@media (max-width: 700px) {
    .fixture-main,
    .fixture-lineup-meta {
        flex-direction: column;
    }

    .fixture-main .team {
        justify-content: center;
        text-align: center;
    }
}


/* Submit lineup page extracted styles. */
.lineup-page-hero { display: flex; justify-content: space-between; align-items: center; gap: 20px; background: linear-gradient(135deg, var(--primary-color, #3498db), #2c3e50); color: #fff; padding: 28px; border-radius: 12px; margin-bottom: 18px; }
.lineup-page-hero h1 { margin: 8px 0 6px 0; font-size: 2rem; }
.lineup-page-hero p { margin: 0; opacity: 0.88; font-size: 1.05rem; }
.gameweek-badge { display: inline-flex; align-items: center; background: rgba(255,255,255,0.16); padding: 5px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; }
.lineup-alert { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 8px; margin-bottom: 14px; font-weight: 600; }
.lineup-alert.error { background: #fff5f5; color: #c0392b; border: 1px solid #f5c6cb; }
.lineup-alert.success { background: #f0fff4; color: #207245; border: 1px solid #c3e6cb; }
.lineup-context-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 16px; }
.context-card { background: #fff; border: 1px solid #e8edf3; border-left: 4px solid var(--primary-color, #3498db); border-radius: 8px; padding: 14px; }
.context-card.warning { border-left-color: #f39c12; }
.context-card.danger { border-left-color: #e74c3c; }
.context-card.success { border-left-color: #27ae60; }
.context-card span { display: flex; align-items: center; gap: 7px; color: #7f8c8d; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; margin-bottom: 8px; }
.context-card strong { display: block; color: #2c3e50; font-size: 1.18rem; line-height: 1.2; }
.context-card small { color: #607080; }
.submission-guidelines { display: flex; gap: 12px; align-items: flex-start; background: #fff8e6; border: 1px solid #ffe0a3; color: #7a5415; padding: 14px; border-radius: 8px; margin-bottom: 18px; }
.submission-guidelines strong { white-space: nowrap; }
.lineup-controls { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; background: #fff; padding: 20px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); flex-wrap: wrap; gap: 15px; }
.lineup-controls .form-group { display: flex; align-items: center; gap: 15px; margin: 0; }
#formation-select { padding: 10px 20px; border-radius: 8px; border: 1px solid #ddd; background-color: #f8f9fa; font-size: 1rem; cursor: pointer; font-weight: 600; }
.lineup-live-status { display: flex; flex-wrap: wrap; gap: 8px; color: #52616f; font-size: 0.86rem; }
.lineup-live-status span { background: #f5f7fa; border: 1px solid #e8edf3; border-radius: 999px; padding: 7px 10px; }
.controls-actions { display: flex; gap: 10px; }
.lineup-builder-container { display: flex; gap: 20px; flex-wrap: wrap; }
.pitch-area { background-image: url('../../../public/assets/images/pitch.svg'); background-size: cover; background-position: center; background-color: #27ae60; border-radius: 8px; padding: 20px 10px; min-height: 600px; position: relative; border: 2px solid #fff; box-shadow: 0 4px 10px rgba(0,0,0,0.1); margin-bottom: 20px; }
.pitch { display: flex; flex-direction: column; justify-content: space-between; height: 100%; min-height: 550px; }
.pitch-row { display: flex; justify-content: space-around; align-items: center; margin-bottom: 10px; }
.player-slot { width: 80px; height: 90px; border: 2px dashed rgba(255,255,255,0.5); border-radius: 6px; display: flex; justify-content: center; align-items: center; cursor: pointer; transition: all 0.2s; position: relative; background: rgba(0,0,0,0.1); }
.player-slot:hover { background: rgba(255,255,255,0.2); transform: scale(1.05); }
.player-card { text-align: center; width: 100%; }
.player-shirt { font-size: 2.5rem; color: #fff; text-shadow: 0 2px 5px rgba(0,0,0,0.3); margin-bottom: 5px; }
.player-name-label { background: rgba(0,0,0,0.7); color: white; padding: 2px 6px; border-radius: 4px; font-size: 0.75rem; white-space: nowrap; display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.player-card.unavailable { border: 2px solid #e74c3c; background-color: rgba(231, 76, 60, 0.3); padding: 5px 0; border-radius: 4px; }
.player-card.unavailable .player-shirt i { color: #e74c3c; }
.substitutes-bench-area { background: #f8f9fa; padding: 15px; border-radius: 8px; width: 100%; margin-top: 20px; }
.substitutes-bench { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.5); opacity: 0; transition: opacity 0.3s ease; }
.modal.show { display: block; opacity: 1; }
.modal-content { background-color: #fff; margin: 10% auto; padding: 20px; border-radius: 8px; width: 90%; max-width: 500px; position: relative; }
.modal-player-item { padding: 10px; border-bottom: 1px solid #eee; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.modal-player-item:hover { background-color: #f5f7fa; }
.modal-player-item.disabled { opacity: 0.6; cursor: not-allowed; background-color: #f9f9f9; pointer-events: none; }
.unavailable-header { margin-top: 15px; margin-bottom: 5px; color: #e74c3c; border-bottom: 1px solid #eee; padding-bottom: 5px; }
#toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 10000; display: flex; flex-direction: column; gap: 10px; }
.toast { background-color: #333; color: #fff; padding: 12px 20px; border-radius: 8px; min-width: 250px; }
.toast.hide { opacity: 0; transform: translateY(20px); }
.toast-success { background-color: #28a745; }
.toast-error { background-color: #dc3545; }
@media (max-width: 760px) {
    .lineup-page-hero,
    .submission-guidelines {
        flex-direction: column;
    }

    .lineup-controls,
    .lineup-controls .form-group,
    .controls-actions {
        align-items: stretch;
        width: 100%;
    }

    .controls-actions {
        flex-direction: column;
    }

    .pitch-area {
        min-height: 520px;
        overflow-x: auto;
    }
}

/* Refined lineup workspace */
.lineup-controls {
    align-items: center;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}
.lineup-control-kicker,
.panel-heading span,
.tip-panel span {
    display: block;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}
.lineup-controls h2 {
    margin: 4px 0 0;
    color: #111827;
    font-size: 1.15rem;
    line-height: 1.25;
}
.lineup-live-status {
    align-items: center;
}
.status-chip {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    min-width: 96px;
    justify-content: center;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    color: #475569;
    border-radius: 8px;
    padding: 9px 10px;
}
.status-chip strong {
    color: #111827;
    font-size: 1.15rem;
}
.status-chip small {
    color: #64748b;
    font-weight: 800;
}
.lineup-live-status.ready .status-chip {
    background: #ecfdf5;
    border-color: #bbf7d0;
}
.lineup-builder-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    align-items: start;
}
.lineup-main,
.selection-insights-sidebar {
    display: grid;
    gap: 14px;
}
.lineup-panel {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 14px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}
.lineup-panel-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}
.formation-picker {
    display: flex;
    gap: 10px;
    align-items: center;
}
.formation-picker label {
    margin: 0;
    color: #475569;
    font-weight: 900;
}
.lineup-readiness {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.lineup-readiness span {
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    padding: 7px 10px;
    font-size: 0.8rem;
    font-weight: 800;
}
.pitch-area {
    min-height: 640px;
    margin: 0;
    padding: 26px 14px;
    background-image: url('../../../public/assets/images/pitch.svg');
    background-size: cover;
    background-position: center;
    background-color: #27ae60;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.8);
    box-shadow: inset 0 0 0 2px rgba(255,255,255,0.28), 0 14px 34px rgba(15,23,42,0.12);
}
.pitch {
    min-height: 590px;
}
.pitch-row {
    min-height: 118px;
    margin-bottom: 0;
}
.player-slot {
    width: 86px;
    height: 98px;
    border-radius: 8px;
    border-color: rgba(255,255,255,0.7);
}
.player-slot > i {
    color: rgba(255,255,255,0.84);
}
.player-card {
    padding: 4px;
}
.player-shirt {
    font-size: 2.25rem;
}
.player-name-label {
    max-width: 78px;
    font-size: 0.72rem;
}
.substitutes-bench-area {
    width: auto;
    margin-top: 0;
    background: #fff;
}
.panel-heading {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 12px;
}
.panel-heading h3 {
    margin: 3px 0 0;
    color: #111827;
    font-size: 1rem;
}
.panel-heading small {
    max-width: 220px;
    color: #64748b;
    text-align: right;
}
.substitutes-bench {
    justify-content: flex-start;
}
.substitutes-bench .player-slot {
    width: 76px;
    height: 88px;
    background: #f8fafc;
    border-color: #cbd5e1;
}
.substitutes-bench .player-slot > i {
    color: #94a3b8;
}
#balance-chart-container {
    display: grid;
    gap: 13px;
}
.balance-metric > div:first-child {
    display: flex;
    justify-content: space-between;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 800;
    margin-bottom: 6px;
}
.balance-track {
    height: 8px;
    background: #edf2f7;
    border-radius: 999px;
    overflow: hidden;
}
.balance-bar {
    width: 0%;
    height: 100%;
    transition: width 0.25s ease;
}
.balance-bar.defense { background: #16a34a; }
.balance-bar.midfield { background: #2563eb; }
.balance-bar.attack { background: #dc2626; }
.tip-panel {
    background: #0f172a;
    color: #fff;
    border-color: #0f172a;
}
.tip-panel span {
    color: #86efac;
}
.tip-panel p {
    margin: 8px 0 0;
    color: rgba(255,255,255,0.88);
    line-height: 1.45;
    font-size: 0.9rem;
}
.officials-list {
    display: grid;
    gap: 8px;
}
.official-card {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 0;
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f8fafc;
    cursor: pointer;
}
.official-card input {
    width: auto;
    margin: 0;
}
.official-card strong,
.official-card small {
    display: block;
}
.official-card strong {
    color: #111827;
}
.official-card small,
.empty-note {
    color: #64748b;
}
.modal-content {
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 24px 60px rgba(15,23,42,0.24);
}
.modal-player-item {
    border: 1px solid #eef2f7;
    border-radius: 8px;
    margin-bottom: 8px;
}
.modal-player-item:hover {
    background-color: #ecfdf5;
    border-color: #bbf7d0;
}
@media (max-width: 980px) {
    .lineup-builder-container {
        grid-template-columns: 1fr;
    }
    .selection-insights-sidebar {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}
@media (max-width: 760px) {
    .status-chip {
        min-width: calc(50% - 4px);
    }
    .lineup-panel-toolbar,
    .formation-picker {
        align-items: stretch;
        flex-direction: column;
    }
    .pitch-area {
        min-height: 560px;
        padding: 18px 8px;
    }
    .pitch {
        min-width: 520px;
        min-height: 520px;
    }
    .pitch-row {
        min-height: 104px;
    }
}


/* Add injury form extracted styles. */
.form-card-wrapper {
    max-width: 760px;
    margin: 0 auto;
}

.styled-form .form-group {
    margin-bottom: 1.4rem;
}

.styled-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.styled-form input,
.styled-form select {
    width: 100%;
    padding: 11px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--card-bg);
    color: var(--text-color);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.form-actions {
    margin-top: 1.5rem;
    text-align: right;
}


/* Suspended players page extracted styles. */
.player-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.player-avatar-xs {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
}

.badge-both {
    background: #6c757d;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    margin-left: 5px;
    vertical-align: middle;
}


/* Training attendance page extracted styles. */
.training-session-list {
    display: grid;
    gap: 12px;
}

.training-session-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.training-session-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

.session-date {
    display: block;
    color: var(--text-muted, #7f8c8d);
    font-size: 0.82rem;
    margin-bottom: 4px;
}

.attendance-ring {
    min-width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    background: #eef6ff;
    color: var(--primary-color);
}

.attendance-ring.good { background: #eafaf1; color: #27ae60; }
.attendance-ring.mid { background: #fff8e6; color: #b9770e; }
.attendance-ring.low { background: #fff5f5; color: #c0392b; }

