﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #00843D 0%, #111111 50%, #8C8B89 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    background: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 106, 78, 0.3);
    border: 2px solid #00843D;
}

.main-title {
    font-size: 3.5rem;
    font-weight: bold;
    text-align: center;
    background: linear-gradient(135deg, #00843D 0%, #8C8B89 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,106,78,0.3);
}

.nav-menu {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.nav-btn {
    background: linear-gradient(135deg, #00843D 0%, #111111 100%);
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 106, 78, 0.4);
    border: 1px solid #8C8B89;
}

    .nav-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 106, 78, 0.6);
        background: linear-gradient(135deg, #8C8B89 0%, #00843D 100%);
    }

.content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 106, 78, 0.2);
    border: 1px solid #8C8B89;
}

.scoreboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.score-section {
    background: linear-gradient(135deg, #00843D 0%, #111111 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 106, 78, 0.4);
    border: 2px solid #8C8B89;
}

    .score-section h3 {
        font-size: 1.5rem;
        margin-bottom: 15px;
        color: #8C8B89;
    }

.score {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 10px 0;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.subs-container {
    margin-top: 30px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

    .subs-container h3 {
        grid-column: 1 / -1;
        text-align: center;
        color: #00843D;
        margin-bottom: 20px;
        font-weight: bold;
    }

.substitutes-list {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid #00843D;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 106, 78, 0.2);
}

.substitute-item {
    background: linear-gradient(135deg, #00843D 0%, #8C8B89 100%);
    color: white;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    display: grid;
    grid-template-columns: 1fr 100px 80px auto;
    gap: 10px;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 106, 78, 0.3);
}

    .substitute-item:last-child {
        margin-bottom: 0;
    }

.substitute-field {
    font-size: 14px;
    font-weight: 500;
}

.substitute-remove {
    background: #dc3545;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

    .substitute-remove:hover {
        background: #c82333;
        transform: translateY(-1px);
    }

.add-substitute-form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid #00843D;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 106, 78, 0.2);
}

    .add-substitute-form h4 {
        margin-bottom: 15px;
        color: #00843D;
        text-align: center;
        font-weight: bold;
    }

    .add-substitute-form select {
        width: 100%;
        padding: 10px;
        border: 2px solid #8C8B89;
        border-radius: 8px;
        font-size: 1rem;
        background: white;
        margin-bottom: 15px;
    }

        .add-substitute-form select:focus {
            outline: none;
            border-color: #00843D;
            box-shadow: 0 0 0 0.2rem rgba(0, 106, 78, 0.25);
        }

.add-substitute-btn {
    background: linear-gradient(135deg, #00843D 0%, #111111 100%);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 106, 78, 0.4);
}

    .add-substitute-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 106, 78, 0.6);
        background: linear-gradient(135deg, #8C8B89 0%, #00843D 100%);
    }

.empty-state {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 20px;
}

/* Responsive for substitutes */
@media (max-width: 768px) {
    .subs-container {
        grid-template-columns: 1fr;
    }

    .substitute-item {
        grid-template-columns: 1fr;
        gap: 5px;
    }
}

.roster-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
    justify-content: center;
}

.roster-container.saved-rosters {
    grid-template-columns: 1fr 1fr;
}

.saved-rosters .roster-column {
    min-height: 0;
}

.saved-rosters .roster-column h3 {
    margin-bottom: 8px;
}

.roster-column {
    background: #f8f9fa;
    border: 2px dashed #8C8B89;
    border-radius: 10px;
    padding: 20px;
    min-height: 400px;
    transition: all 0.3s ease;
}

    .roster-column.drag-over {
        border-color: #00843D;
        background: rgba(0, 106, 78, 0.1);
    }

    .roster-column h3 {
        text-align: center;
        margin-bottom: 20px;
        color: #00843D;
        font-size: 1.3rem;
        font-weight: bold;
    }

.drop-zone {
    min-height: 400px;
    height: 100%;
    padding: 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

    /* Visual feedback when dragging over a drop zone */
    .drop-zone.drag-over {
        background-color: rgba(0, 106, 78, 0.1);
        border: 2px dashed #00843D;
        transform: scale(1.02);
    }

.player-item {
    background: linear-gradient(135deg, #00843D 0%, #8C8B89 100%);
    color: white;
    padding: 12px;
    margin: 8px 0;
    border-radius: 8px;
    cursor: grab;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 106, 78, 0.3);
}

    .player-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 106, 78, 0.4);
    }

    .player-item.dragging {
        opacity: 0.5;
        transform: rotate(5deg);
    }

.pick-badge {
    display: inline-block;
    min-width: 1.6em;
    padding: 0 6px;
    margin-right: 4px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.25);
    font-size: 0.8em;
    font-weight: 700;
    text-align: center;
}

.slot1-player {
    background: linear-gradient(135deg, #00843D 0%, #111111 100%);
    color: #8C8B89;
    border: 1px solid #8C8B89;
}

.slot2-player {
    background: linear-gradient(135deg, #8C8B89 0%, #111111 100%);
    color: white;
    border: 1px solid #00843D;
}

.league-select {
    background: #111111;
    color: white;
    border: 1px solid #8C8B89;
    border-radius: 25px;
    padding: 10px 16px;
    font-weight: bold;
    min-width: 180px;
}

.league-select.ng-hide {
    display: none !important;
}

.join-code-hint {
    text-align: center;
    color: #8C8B89;
    margin-top: 12px;
}

.league-manage-list {
    margin-bottom: 32px;
}

.league-manage-list > h3 {
    text-align: center;
    color: #00843D;
    margin-bottom: 16px;
}

.league-manage-list .setup-card {
    margin-bottom: 16px;
}

.join-code-row {
    margin-bottom: 16px;
    color: #495057;
}

.join-code-copy {
    margin-left: 8px;
    padding: 6px 12px;
    font-size: 0.9rem;
}

.league-manage-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.welcome-steps {
    margin: 16px 0 0 20px;
    color: #495057;
    line-height: 1.6;
}

.setup-copy {
    text-align: center;
    margin-bottom: 24px;
    color: #495057;
}

.setup-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.setup-card {
    border: 1px solid #8C8B89;
    border-radius: 12px;
    padding: 20px;
}

.setup-card h3 {
    margin-bottom: 16px;
    color: #00843D;
}

@media (max-width: 768px) {
    .setup-grid {
        grid-template-columns: 1fr;
    }
}

.save-btn {
    background: linear-gradient(135deg, #00843D 0%, #111111 100%);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 106, 78, 0.4);
    border: 1px solid #8C8B89;
}

    .save-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 106, 78, 0.6);
        background: linear-gradient(135deg, #8C8B89 0%, #00843D 100%);
    }

.player-list {
    max-width: 600px;
    margin: 0 auto;
}

.player-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    margin: 10px 0;
    background: linear-gradient(135deg, #00843D 0%, #111111 100%);
    color: white;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 106, 78, 0.3);
    border: 1px solid #8C8B89;
}

    .player-row.inactive {
        background: linear-gradient(135deg, #8C8B89 0%, #6c757d 100%);
        opacity: 0.7;
    }

    .player-row:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 106, 78, 0.4);
    }

    /* When being dragged */
    .player-row[draggable="true"]:active {
        opacity: 0.5;
        transform: rotate(5deg);
    }

.checkbox {
    width: 20px;
    height: 20px;
    margin-left: 15px;
}

.resync-roster-btn {
    background: linear-gradient(135deg, #00843D 0%, #111111 100%);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 106, 78, 0.4);
    border: 1px solid #8C8B89;
}

.resync-roster-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 106, 78, 0.6);
        background: linear-gradient(135deg, #8C8B89 0%, #00843D 100%);
    }

.page-heading-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.page-title {
    text-align: center;
    color: #495057;
    margin: 0;
}

.page-heading-row .page-title {
    grid-column: 2;
}

.refresh-week-btn {
    grid-column: 3;
    justify-self: end;
    background: linear-gradient(135deg, #00843D 0%, #111111 100%);
    color: white;
    border: 1px solid #8C8B89;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 106, 78, 0.3);
    white-space: nowrap;
}

    .refresh-week-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 106, 78, 0.5);
        background: linear-gradient(135deg, #8C8B89 0%, #00843D 100%);
    }

.week-nav {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 12px 0 28px;
}

.week-label {
    display: block;
    color: #00843D;
    font-size: 1.35rem;
    font-weight: bold;
    min-width: 7rem;
    text-align: center;
    margin: 0;
    line-height: 1.2;
    flex: 0 0 auto;
}

.week-chevron {
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    border: 1px solid #8C8B89;
    background: linear-gradient(135deg, #00843D 0%, #111111 100%);
    color: white;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    flex: 0 0 44px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 106, 78, 0.4);
}

    .week-chevron::before {
        content: "";
        display: block;
        width: 0;
        height: 0;
        border-style: solid;
    }

    .week-chevron-prev::before {
        border-width: 7px 10px 7px 0;
        border-color: transparent #fff transparent transparent;
        margin-right: 2px;
    }

    .week-chevron-next::before {
        border-width: 7px 0 7px 10px;
        border-color: transparent transparent transparent #fff;
        margin-left: 2px;
    }

    .week-chevron:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 106, 78, 0.6);
        background: linear-gradient(135deg, #8C8B89 0%, #00843D 100%);
    }

.week-chevron-spacer {
    width: 44px;
    height: 44px;
    min-width: 44px;
    flex: 0 0 44px;
    visibility: hidden;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 17, 17, 0.8);
}

    .modal.show {
        display: flex;
        align-items: center;
        justify-content: center;
    }

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0, 106, 78, 0.5);
    border: 2px solid #00843D;
}

.modal-content.welcome-modal {
    max-width: 480px;
}

    .modal-content h3 {
        margin-bottom: 20px;
        color: #00843D;
        font-weight: bold;
    }

.form-group {
    margin-bottom: 15px;
}

    .form-group label {
        display: block;
        margin-bottom: 5px;
        font-weight: bold;
        color: #00843D;
    }

    .form-group input {
        width: 100%;
        padding: 10px;
        border: 2px solid #8C8B89;
        border-radius: 8px;
        font-size: 1rem;
    }

        .form-group input:focus {
            outline: none;
            border-color: #00843D;
            box-shadow: 0 0 0 0.2rem rgba(0, 106, 78, 0.25);
        }

        .form-group input:disabled {
            background: #e9ecef;
            color: #6c757d;
            cursor: not-allowed;
        }

.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #00843D 0%, #111111 100%);
    color: white;
}

.btn-secondary {
    background: #8C8B89;
    color: white;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 106, 78, 0.3);
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .content {
        padding: 14px;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .header {
        padding: 12px 14px;
        margin-bottom: 12px;
    }

    .main-title {
        font-size: 2.5rem;
    }

    .scoreboard {
        grid-template-columns: 1fr;
    }

    .roster-container {
        grid-template-columns: 1fr;
    }

    .roster-container.saved-rosters {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .saved-rosters .roster-column {
        padding: 12px;
    }

    .saved-rosters .roster-column h3 {
        font-size: 1.05rem;
        margin-bottom: 6px;
    }

    .saved-rosters .player-item {
        font-size: 0.85rem;
        padding: 8px 10px;
        margin: 4px 0;
    }

    .nav-menu {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .nav-btn {
        padding: 10px 18px;
    }

    .header.has-nav-toggle .main-title {
        font-size: 1.35rem;
        margin-bottom: 8px;
    }

    .header.nav-collapsed.has-nav-toggle .main-title {
        margin-bottom: 0;
    }

    .page-heading-row {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .page-title,
    .refresh-week-btn {
        grid-column: auto;
        justify-self: center;
    }
}

.games-top-scoreboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.games-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.game-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 106, 78, 0.2);
    border: 1px solid #8C8B89;
    overflow: hidden;
    transition: all 0.3s ease;
}

    .game-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 40px rgba(0, 106, 78, 0.3);
    }

.game-header {
    background: linear-gradient(135deg, #00843D 0%, #111111 100%);
    color: white;
    padding: 20px;
    text-align: center;
    border-bottom: 2px solid #8C8B89;
}

.game-date {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #8C8B89;
}

.hockey-teams {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.hockey-team {
    font-size: 1.3rem;
    font-weight: bold;
    color: white;
}

.vs {
    font-size: 1rem;
    color: #8C8B89;
    font-weight: normal;
}

.hockey-score {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}

.score-separator {
    color: #8C8B89;
}

.fantasy-scores {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 25px 20px;
    background: #f8f9fa;
}

.fantasy-team {
    text-align: center;
    flex: 1;
}

    .fantasy-team.team-1 .team-name {
        color: #00843D;
        font-weight: bold;
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .fantasy-team.team-1 .team-score {
        background: linear-gradient(135deg, #00843D 0%, #111111 100%);
        color: white;
        font-size: 2rem;
        font-weight: bold;
        padding: 15px;
        border-radius: 10px;
        box-shadow: 0 4px 15px rgba(0, 106, 78, 0.4);
        border: 1px solid #8C8B89;
    }

    .fantasy-team.team-2 .team-name {
        color: #8C8B89;
        font-weight: bold;
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .fantasy-team.team-2 .team-score {
        background: linear-gradient(135deg, #8C8B89 0%, #111111 100%);
        color: white;
        font-size: 2rem;
        font-weight: bold;
        padding: 15px;
        border-radius: 10px;
        box-shadow: 0 4px 15px rgba(140, 139, 137, 0.4);
        border: 1px solid #00843D;
    }

.fantasy-vs {
    font-size: 1.5rem;
    font-weight: bold;
    color: #6c757d;
    padding: 0 20px;
}

.show-more-container {
    text-align: center;
    padding: 15px 20px;
    border-top: 1px solid #8C8B89;
}

.show-more-btn {
    background: linear-gradient(135deg, #00843D 0%, #111111 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
    box-shadow: 0 2px 8px rgba(0, 106, 78, 0.3);
}

    .show-more-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 106, 78, 0.4);
        background: linear-gradient(135deg, #8C8B89 0%, #00843D 100%);
    }

.arrow {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.arrow-up {
    transform: rotate(180deg);
}

.arrow-down {
    transform: rotate(0deg);
}

.player-breakdown {
    border-top: 1px solid #8C8B89;
    background: #f8f9fa;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }

    to {
        opacity: 1;
        max-height: 1000px;
    }
}

.breakdown-section {
    padding: 20px;
}

    .breakdown-section h4 {
        color: #00843D;
        margin-bottom: 20px;
        text-align: center;
        font-size: 1.3rem;
        font-weight: bold;
    }

.team-breakdowns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.team-breakdown {
    margin-bottom: 0;
    padding: 15px;
    border-radius: 10px;
    border: 2px solid;
}

.team-1-breakdown {
    border-color: #00843D;
    background: rgba(0, 106, 78, 0.05);
}

    .team-1-breakdown h5 {
        color: #00843D;
        margin-bottom: 15px;
        font-size: 1.2rem;
        font-weight: bold;
    }

.team-2-breakdown {
    border-color: #8C8B89;
    background: rgba(140, 139, 137, 0.05);
}

    .team-2-breakdown h5 {
        color: #8C8B89;
        margin-bottom: 15px;
        font-size: 1.2rem;
        font-weight: bold;
    }

.player-stats {
    padding: 8px;
    margin-bottom: 8px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 106, 78, 0.1);
    border: 1px solid #8C8B89;
}

    .player-stats:last-child {
        margin-bottom: 0;
    }

.player-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.player-name {
    font-weight: bold;
    color: #00843D;
    min-width: 120px;
}

.player-score-details {
    display: flex;
    gap: 12px;
    align-items: center;
    flex: 1;
}

.stat-item {
    display: flex;
    gap: 5px;
    align-items: center;
}

.stat-label {
    color: #6c757d;
    font-size: 0.9rem;
}

.stat-value {
    font-weight: bold;
    color: #00843D;
    background: rgba(0, 106, 78, 0.1);
    padding: 2px 6px;
    border-radius: 3px;
    min-width: 18px;
    text-align: center;
    font-size: 0.85rem;
}

.no-scoring {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 20px;
}

.empty-state {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 20px;
}

/* Responsive design for games page */
@media (max-width: 768px) {
    .games-container {
        padding: 10px;
    }

    .games-container .scoreboard {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-top: 16px;
        margin-bottom: 16px;
    }

    .games-container .score-section {
        padding: 12px 8px;
    }

    .games-container .score-section h3 {
        font-size: 1rem;
        margin-bottom: 6px;
        overflow-wrap: anywhere;
    }

    .games-container .score {
        font-size: 1.75rem;
        margin: 4px 0;
    }

    .game-card {
        margin-bottom: 20px;
    }

    .team-breakdowns {
        grid-template-columns: 1fr;
    }

    .player-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .player-name {
        min-width: auto;
    }

    .player-score-details {
        align-self: stretch;
    }
}

/* Styles for the Alerting */
.alert-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
}

.alert {
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    animation: slideIn 0.3s ease-out;
}

.alert-success {
    background-color: #4CAF50;
    color: white;
}

.alert-error {
    background-color: #f44336;
    color: white;
}

.alert-icon {
    font-size: 20px;
    font-weight: bold;
}

.alert-message {
    flex: 1;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.roster-mode-toggle {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 8px 0 4px;
}

.roster-mode-btn {
    background: #111111;
    color: white;
    border: 1px solid #8C8B89;
    border-radius: 25px;
    padding: 10px 20px;
    font-weight: bold;
    font-size: 0.95rem;
    cursor: pointer;
}

.roster-mode-btn.active {
    background: linear-gradient(135deg, #00843D 0%, #111111 100%);
    border-color: #00843D;
}

.draft-board {
    max-width: 720px;
    margin: 0 auto 20px;
}

.draft-first-picker,
.draft-available {
    margin-bottom: 16px;
}

.draft-first-picker h3,
.draft-available h3 {
    text-align: center;
    color: #00843D;
    margin-bottom: 10px;
}

.draft-first-hint {
    text-align: center;
    color: #495057;
    font-size: 0.95rem;
    margin: 0 0 12px;
}

.draft-first-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.draft-first-btn {
    flex: 1 1 140px;
    max-width: 280px;
    background: #111111;
    color: white;
    border: 1px solid #8C8B89;
    border-radius: 25px;
    padding: 10px 16px;
    font-weight: bold;
    cursor: pointer;
}

.draft-first-btn.active {
    background: linear-gradient(135deg, #00843D 0%, #111111 100%);
}

.draft-first-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.draft-on-clock {
    background: #111111;
    color: white;
    border: 1px solid #8C8B89;
    border-radius: 10px;
    padding: 12px 14px;
    text-align: center;
    margin-bottom: 16px;
}

.draft-on-clock-label {
    color: #8C8B89;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.draft-on-clock-team {
    font-size: 1.1rem;
    font-weight: bold;
    margin-top: 0;
}

.draft-on-clock-meta {
    color: #8C8B89;
    font-size: 0.9rem;
    margin-top: 4px;
}

.draft-picked-first {
    text-align: center;
    color: #00843D;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: -4px 0 8px;
    min-height: 1em;
}

.draft-picked-first.off {
    visibility: hidden;
}

button.player-item {
    display: block;
    width: 100%;
    font-family: inherit;
    font-size: inherit;
    text-align: left;
    cursor: pointer;
}

.player-item.selected {
    outline: 3px solid #111111;
    outline-offset: 1px;
}

.draft-confirm-btn {
    margin-top: 12px;
    width: 100%;
}

.draft-undo-btn {
    display: block;
    width: 100%;
    margin-top: 8px;
    background: transparent;
    color: #00843D;
    border: 1px solid #8C8B89;
    border-radius: 25px;
    padding: 10px 16px;
    font-weight: bold;
    cursor: pointer;
}

.draft-teams {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}

.draft-teams .roster-column {
    min-height: 0;
}

.header-top {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header.has-nav-toggle .header-top {
    padding-left: 52px;
}

.nav-toggle {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: 1px solid #8C8B89;
    border-radius: 8px;
    cursor: pointer;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #ffffff;
    border-radius: 1px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.header.nav-collapsed {
    padding: 10px 14px;
    margin-bottom: 12px;
}

.header.nav-collapsed .main-title {
    font-size: 1.35rem;
    margin-bottom: 0;
}

.header.has-nav-toggle .main-title {
    margin-bottom: 12px;
}

.header.nav-collapsed.has-nav-toggle .main-title {
    margin-bottom: 0;
}

.header.has-nav-toggle:not(.nav-collapsed) .nav-menu {
    margin-top: 4px;
}

.draft-page .week-nav {
    margin: 0 0 8px;
}

.draft-page .roster-mode-toggle {
    margin: 0 0 8px;
}

.draft-page .roster-mode-btn {
    padding: 8px 14px;
    font-size: 0.9rem;
}

.draft-board .roster-column {
    min-height: 0;
    padding: 12px;
}

.draft-board .roster-column h3 {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.draft-first-picker {
    margin-bottom: 12px;
}

.draft-first-picker.compact {
    margin-bottom: 8px;
}

.draft-first-label {
    text-align: center;
    color: #8C8B89;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 6px;
}

.draft-first-picker.compact .draft-first-btn {
    padding: 6px 12px;
    font-size: 0.9rem;
}

.draft-on-clock {
    padding: 8px 12px;
    margin-bottom: 10px;
}

.draft-on-clock-kicker {
    display: block;
    color: #8C8B89;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.draft-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: fixed;
    left: max(10px, calc(50% - 360px));
    right: max(10px, calc(50% - 360px));
    bottom: 8px;
    z-index: 20;
    background: rgba(255, 255, 255, 0.96);
    padding: 8px 10px 10px;
    margin-bottom: 0;
    border: 1px solid #8C8B89;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.draft-picking {
    padding-bottom: 200px;
}

.draft-confirm-btn {
    margin-top: 0;
    width: 100%;
}

.draft-confirm-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.draft-undo-btn {
    margin-top: 0;
}

.draft-available-list {
    max-height: min(42vh, 360px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.draft-board .player-item {
    padding: 8px 10px;
    margin: 4px 0;
}

.draft-teams {
    margin-top: 12px;
}

@media (max-width: 768px) {
    .draft-teams {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .draft-teams .roster-column {
        padding: 8px;
    }

    .draft-teams .roster-column h3 {
        font-size: 0.95rem;
        margin-bottom: 6px;
    }

    .draft-teams .player-item {
        font-size: 0.85rem;
        padding: 6px 8px;
        margin: 3px 0;
    }

    .draft-picking {
        padding-bottom: 200px;
    }

    .draft-confirm-btn {
        padding: 12px 16px;
        font-size: 1rem;
    }

    .draft-undo-btn {
        padding: 8px 16px;
    }

    .draft-available-list {
        max-height: min(50vh, 400px);
    }

    .draft-page .week-label {
        font-size: 1.1rem;
        min-width: 0;
    }
}

/* Default draft order editor */
.draft-order-toolbar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.draft-order-toolbar label {
    margin: 0;
    font-weight: 600;
}

.draft-order-column {
    max-width: 520px;
    margin: 0 auto;
}

    .draft-order-column .drop-zone {
        min-height: 120px;
    }

.draft-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.draft-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    font-weight: bold;
}

/* Weekly Rosters action buttons (save / auto-draft / reset) */
.roster-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

    .roster-actions .save-btn {
        margin-top: 0;
    }

/* Per-league auto-draft switch on the Leagues page.
   More specific than .form-group label so the row stays a flex switch. */
.form-group label.auto-draft-toggle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 0;
    font-weight: normal;
    cursor: pointer;
}

.auto-draft-toggle-text {
    flex: 1;
}

.auto-draft-toggle input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    opacity: 0;
    pointer-events: none;
}

.auto-draft-switch {
    position: relative;
    flex: 0 0 auto;
    width: 46px;
    height: 26px;
    border-radius: 999px;
    background: #d8d7d5;
    border: 2px solid #8C8B89;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.auto-draft-switch::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(17, 17, 17, 0.35);
    transition: transform 0.2s ease;
}

.auto-draft-toggle input:checked + .auto-draft-switch {
    background: linear-gradient(135deg, #00843D 0%, #00642e 100%);
    border-color: #00843D;
    box-shadow: 0 2px 8px rgba(0, 106, 78, 0.4);
}

.auto-draft-toggle input:checked + .auto-draft-switch::after {
    transform: translateX(20px);
}

.auto-draft-toggle input:focus-visible + .auto-draft-switch {
    outline: 2px solid #00843D;
    outline-offset: 3px;
}

.auto-draft-toggle input:disabled + .auto-draft-switch {
    opacity: 0.55;
}

.auto-draft-toggle:has(input:disabled) {
    cursor: not-allowed;
}
