/* Coach Game Stats Styles */

/* Update All Button */
.update-all-banner {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-blue, #007bff) 0%, #6b7280 100%);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.22);
}

.update-all-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.update-all-banner-text {
    color: white;
}

.update-all-banner-title {
    margin: 0 0 0.25rem;
    color: white;
    font-size: 1.1rem;
}

.update-all-banner-description {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.9;
}

.update-all-button {
    background: white;
    color: var(--primary-blue, #007bff);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    cursor: pointer;
}

/* Score Panel */
.score-panel {
    margin-bottom: 1.25rem;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
}

.score-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.score-panel-title {
    margin: 0 0 0.25rem;
}

.score-panel-status {
    color: #667;
}

.score-inputs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 0.75rem;
}

.score-input-group {
    display: block;
}

.score-input-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.score-input {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.score-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 0.75rem;
}

.final-score-display {
    margin-top: 0.75rem;
    color: #333;
}

.btn-final-score {
    background: #28a745;
}

/* Box Score Section */
.box-score-section {
    margin-bottom: 1.25rem;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
}

.box-score-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.box-score-header h2 {
    margin: 0;
}

.box-score-table-wrapper {
    overflow-x: auto;
}

.box-score-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 400px;
}

.box-score-table thead tr {
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.box-score-table th {
    padding: 0.5rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #495057;
}

.box-score-table th.box-score-period {
    text-align: center;
    min-width: 50px;
}

.box-score-table th.box-score-total {
    text-align: center;
    font-weight: 700;
    font-size: 0.85rem;
    background: #e9ecef;
    min-width: 70px;
}

.box-score-table tbody tr {
    border-bottom: 1px solid #dee2e6;
}

.box-score-table td {
    padding: 0.75rem 0.5rem;
    font-weight: 600;
}

.box-score-table td.box-score-cell {
    padding: 0.5rem;
    text-align: center;
}

.box-score-table td.box-score-total-cell {
    padding: 0.5rem;
    text-align: center;
    font-weight: 700;
    background: #f8f9fa;
}

.box-score-input {
    width: 60px;
    padding: 0.35rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

.box-score-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
}

.btn-add-period {
    font-size: 0.85rem;
}

/* Stats Form */
.stats-form-intro {
    margin-bottom: 1.5rem;
    color: #667;
}

.stats-form-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    background: #fff;
}

.stats-section-title {
    margin: 0 0 1rem;
    color: #495057;
    font-size: 1.25rem;
    border-bottom: 2px solid var(--primary-blue, #007bff);
    padding-bottom: 0.5rem;
}

.football-primary-heading {
    margin: 2.5rem 0 1rem;
    padding: 0.8rem 1rem;
    border-left: 5px solid var(--primary-blue, #007bff);
    border-radius: 6px;
    background: linear-gradient(90deg, #eaf4ff, #f8fafc);
    color: #173b65;
    font-size: 1.55rem;
}

.field-goal-table select {
    min-width: 150px;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
}

.add-player-section {
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 4px;
}

.add-player-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.add-player-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.add-player-select {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.btn-add-player {
    background: #28a745;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.stats-table-wrapper {
    overflow-x: auto;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
}

.stats-table thead tr {
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.stats-table th {
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
}

.stats-table th.stats-table-center {
    text-align: center;
}

.stats-table input {
    width: 80px;
    padding: 0.4rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.stats-table input.stats-input-small {
    width: 50px;
    padding: 0.25rem;
}

.stats-table input.stats-input-medium {
    width: 60px;
    padding: 0.25rem;
}

.stats-table input.stats-input-large {
    width: 80px;
    padding: 0.25rem;
}

.stats-table input.stats-input-small {
    width: 50px;
    padding: 0.25rem;
}

.stats-table input.stats-input-medium {
    width: 60px;
    padding: 0.25rem;
}

.stats-table input.stats-input-large {
    width: 80px;
    padding: 0.25rem;
}

.btn-remove-player {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
}

.empty-stats-message {
    color: #6c757d;
    font-style: italic;
    padding: 1rem;
    text-align: center;
    background: #f8f9fa;
    border-radius: 4px;
}

.form-actions {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #dee2e6;
}

.btn-save-all {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
}

/* Subsection titles */
.stats-subsection-title {
    margin: 1.25rem 0 0.5rem;
}

.final-score-warning {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid #f59e0b;
    border-left-width: 4px;
    border-radius: 6px;
    background: #fffbeb;
    color: #78350f;
}

.player-picker {
    flex: 1;
    min-width: 240px;
    position: relative;
}

.player-picker-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.player-picker-trigger:focus,
.player-picker:focus-within .player-picker-trigger {
    border-color: var(--primary-blue, #007bff);
    outline: 2px solid color-mix(in srgb, var(--primary-blue, #007bff) 20%, transparent);
}

.player-picker-menu {
    position: absolute;
    z-index: 1000;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.18);
}

.player-picker-search-wrap {
    position: sticky;
    top: 0;
    padding: 0.65rem;
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
}

.player-picker-search {
    width: 100%;
    padding: 0.55rem 0.65rem;
    border: 1px solid #94a3b8;
    border-radius: 5px;
    font: inherit;
}

.player-picker-options {
    max-height: 260px;
    overflow-y: auto;
}

.player-picker-option {
    display: block;
    width: 100%;
    padding: 0.65rem 0.8rem;
    border: 0;
    border-bottom: 1px solid #f1f5f9;
    background: #fff;
    color: #0f172a;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.player-picker-option[hidden] {
    display: none;
}

.player-picker-option:hover,
.player-picker-option:focus {
    background: #eff6ff;
    outline: none;
}

.player-picker-empty {
    padding: 0.8rem;
    color: #64748b;
    text-align: center;
}

.player-picker-empty[hidden],
.player-picker-menu[hidden] {
    display: none;
}

.add-player-select--hidden {
    display: none;
}

/* Game Header Styles */
.game-header-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.5rem 0;
}

.game-header-team {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.game-header-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}
