*{
    margin:0;
    padding:0;
    box-sizing:border-box
}
body{
    font-family:Arial,sans-serif;
    line-height:1.6;
    background:#f5f5f5;
    padding-bottom:20px
}
.container{
    max-width:1200px;
    margin:0 auto;
    padding:1rem;
    padding-top:90px
}
h1{
    color:#2c3e50;
    font-size:2rem;
    font-weight:600;
    margin-bottom:1.5rem;
    padding-bottom:.5rem;
    border-bottom:2px solid #3498db
}
h2{
    color:#34495e;
    font-size:1.5rem;
    font-weight:500;
    margin:1.5rem 0 1.5rem;
    position:relative;
    padding-left:1rem
}
h2::before{
    content:'';
    position:absolute;
    left:0;
    top:0;
    height:100%;
    width:4px;
    background-color:#579057;
    border-radius:2px
}
h3{
    color:#34495e;
    font-size:1.3rem;
    font-weight:500;
    margin:1.5rem 0 1rem 0;
    position:relative;
    padding-left:1rem
}
h3::before{
    content:'';
    position:absolute;
    left:0;
    top:0;
    bottom:0;
    width:3px;
    background:#3498db;
    border-radius:2px
}
.main-header{
    background:#fff;
    box-shadow:0 2px 10px rgba(0,0,0,.1);
    position:fixed;
    top:0;
    left:0;
    right:0;
    z-index:1000
}
.header-container{
    max-width:1200px;
    margin:0 auto;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:1rem;
    height:70px
}
.logo-container{
    display:flex;
    align-items:center;
    gap:.75rem
}
.site-logo{
    height:35px;
    width:auto
}
.site-title{
    font-size:1.5rem;
    color:#2c3e50;
    font-weight:600;
    margin:0;
    padding:0;
    border:none
}
.main-nav .nav-links{
    display:flex;
    gap:1rem;
    list-style:none;
    margin:0;
    padding:0
}
.nav-links a{
    color:#2c3e50;
    text-decoration:none;
    font-size:1rem;
    font-weight:500;
    padding:.5rem;
    transition:color .3s ease;
    position:relative
}
.nav-links a::after{
    content:'';
    position:absolute;
    bottom:0;
    left:0;
    width:100%;
    height:2px;
    background:#579057;
    transform:scaleX(0);
    transition:transform .3s ease
}
.nav-links a:hover::after{
    transform:scaleX(1)
}
.auth-link{
    background:#579057;
    color:#fff!important;
    padding:.5rem 1rem!important;
    border-radius:4px;
    transition:background-color .3s ease!important
}
.auth-link:hover{
    background:#477647
}
.auth-link::after{
    display:none!important
}
.mobile-menu-btn{
    display:none;
    flex-direction:column;
    gap:6px;
    background:0 0;
    border:none;
    cursor:pointer;
    padding:5px
}
.mobile-menu-btn span{
    display:block;
    width:25px;
    height:2px;
    background:#2c3e50;
    transition:.3s ease
}
@media (max-width:768px){
    .mobile-menu-btn{
        display:flex
    }
    .main-nav{
        position:fixed;
        top:70px;
        left:0;
        right:0;
        background:#fff;
        padding:1rem;
        transform:translateY(-150%);
        transition:transform .3s ease;
        box-shadow:0 2px 10px rgba(0,0,0,.1);
        height:auto;
        max-height:calc(100vh - 70px);
        overflow-y:auto
    }
    .main-nav.active{
        transform:translateY(0);
        visibility:visible
    }
    .nav-links{
        flex-direction:column;
        gap:1rem!important;
        padding:.5rem 0
    }
    .nav-links a{
        display:block;
        padding:.75rem!important;
        width:100%
    }
    .mobile-menu-btn.active span:nth-child(1){
        transform:translateY(8px) rotate(45deg)
    }
    .mobile-menu-btn.active span:nth-child(2){
        opacity:0
    }
    .mobile-menu-btn.active span:nth-child(3){
        transform:translateY(-8px) rotate(-45deg)
    }
}
.form-group{
    margin-bottom:1rem
}
label{
    display:block;
    margin-bottom:.25rem;
    font-size:.9rem
}
input[type=date],input[type=number],input[type=password],input[type=text],select{
    width:100%;
    padding:.5rem;
    border:1px solid #ddd;
    border-radius:4px;
    font-size:.9rem
}
.btn{
    background-color:#579057;
    color:#fff;
    border:none;
    padding:.5rem 1rem;
    border-radius:4px;
    cursor:pointer;
    transition:background-color .2s
}
.btn:hover{
    background-color:#477647
}
.back-btn{
    color:#666;
    text-decoration:none;
    display:inline-flex;
    align-items:center;
    gap:.5rem;
    margin-bottom:1rem;
    font-size:.9rem;
    cursor:pointer
}
.back-btn:hover{
    color:#333
}

.stats-summary {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.stats-highlight {
    color: #579057;
    font-weight: 600;
    font-size: 1.1em;
}

.stats-container{
    background:#fff;
    border-radius:8px;
    padding:1rem;
    box-shadow:0 1px 3px rgba(0,0,0,.1);
    margin-bottom:1.5rem
}
.stat-row{
    display:flex;
    gap:1.5rem;
    margin-bottom:.75rem;
    padding-bottom:.75rem;
    border-bottom:1px solid #eee
}
.stat-group{
    display:flex;
    gap:1.5rem;
    flex:1
}
.stat-item{
    display:flex;
    flex-direction:column;
    align-items:center;
    min-width:60px
}
.stat-number{
    font-size:1.25rem;
    font-weight:600;
    color:#2c3e50
}
.stat-label{
    font-size:.75rem;
    color:#666;
    text-transform:uppercase;
    letter-spacing:.5px
}
.last-seen{
    display:flex;
    flex-direction:column;
    align-items:flex-start
}
.last-seen-date{
    font-size:.9rem;
    font-weight:500;
    color:#2c3e50
}
.last-seen-ago{
    font-size:.75rem;
    color:#666
}
@media (max-width:600px){
    .stat-row{
        flex-direction:column;
        gap:1rem
    }
    .stat-group{
        justify-content:space-between
    }
}
table{
    width:100%;
    margin-bottom:1rem;
    font-size:.85rem;
    border-collapse:collapse;
    background-color:#fff
}
th{
    background-color:#f8f9fa;
    font-weight:600;
    text-align:left;
    padding:.5rem;
    border-bottom:2px solid #dee2e6
}
td{
    padding:.4rem .5rem;
    border-bottom:1px solid #dee2e6;
    white-space:nowrap
}
@media (max-width:576px){
    table{
        font-size:.75rem
    }
    td,th{
        padding:.3rem .4rem
    }
}
.table-responsive{
    width:100%;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    margin-bottom:1rem
}
.clickable-row:hover{
    background-color:rgba(0,0,0,.075);
    cursor:pointer
}
.match-score{
    font-size:1.5rem;
    color:#2c3e50;
    font-weight:700;
    display:flex;
    justify-content:center;
    align-items:center;
    background:#f8f9fa;
    padding:.75rem 1.5rem;
    border-radius:8px;
    box-shadow:inset 0 0 10px rgba(0,0,0,.1)
}
.matches-list{
    background:#fff;
    border-radius:8px;
    box-shadow:0 2px 4px rgba(0,0,0,.1);
    overflow:hidden
}
.match-item{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:1rem 1.5rem;
    border-bottom:1px solid #dee2e6
}
.match-item:last-child{
    border-bottom:none
}
.match-goals{
    background:#ebf5fb;
    color:#2c3e50;
    padding:.25rem .75rem;
    border-radius:4px;
    font-weight:500;
    display:flex;
    align-items:center;
    gap:.25rem
}
.match-goals::before{
    content:'⚽';
    font-size:.9em
}
.player-selection{
    margin-top:1rem;
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(300px,1fr));
    gap:1rem;
    margin-bottom:1rem
}
.player-button{
    width:100%;
    height:3.5rem;
    padding:.75rem;
    display:flex;
    justify-content:space-between;
    align-items:center;
    background:#fff;
    border:1px solid #ddd;
    border-radius:4px;
    cursor:pointer;
    transition:all .2s ease;
    position:relative;
    color:#333
}
.player-button:hover{
    background:#f8f9fa
}
.player-button.selected{
    background:#e8f5e9;
    border-color:#a5d6a7
}
.player-name{
    font-weight:500;
    color:#333
}
.goals-section{
    position:absolute;
    right:.75rem;
    top:50%;
    transform:translateY(-50%);
    display:flex;
    align-items:center;
    gap:.5rem;
    min-width:140px
}
.goals-section .goals-input, 
.goals-section .payment-input {
    width: 3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.25rem 0.5rem 0.25rem;
    text-align: left;
}
.toggle-icon{
    cursor:pointer;
    opacity:.5;
    transition:all .2s ease;
    font-size:1.2rem;
    border-radius:4px;
    padding:4px;
    width:28px;
    height:28px;
    display:flex;
    align-items:center;
    justify-content:center
}
.toggle-icon:hover{
    background:rgba(0,0,0,.05)
}
.toggle-icon.active{
    opacity:1;
    transform:scale(1.25)
}
.gk-toggle.active {
    color: #2e7d32;
    text-shadow: 0 0 10px rgba(46, 125, 50, 0.3);
    background-color: #e8f5e9;
    border: 1px solid #81c784;
}
.mom-toggle.active {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    background-color: #fff8e1;
    border: 1px solid #ffd700;
}
.goals-icon.active {
    color: #1976d2;
    text-shadow: 0 0 10px rgba(25, 118, 210, 0.3);
    background-color: #e3f2fd;
    border: 1px solid #64b5f6;
}
.payment-icon.active {
    color: #ff8f00;
    text-shadow: 0 0 10px rgba(255, 143, 0, 0.3);
    background-color: #fff3e0;
    border: 1px solid #ffb74d;
}
.goals-input, .payment-input {
    width: 40px;
    padding: 2px 4px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}

.payment-input {
    text-align: right;
}
.management-card{
    background:#fff;
    border-radius:8px;
    padding:1.5rem;
    margin-bottom:2rem;
    box-shadow:0 2px 4px rgba(0,0,0,.1);
    text-align:center
}
.add-player-form{
    margin-top:1rem
}
.form-row{
    display:flex;
    flex-direction:column;
    gap:.5rem;
    width:100%
}
.form-row input{
    padding:.5rem;
    border:1px solid #ddd;
    border-radius:4px;
    font-size:.9rem
}
.form-row button{
    width:100%;
    padding:1rem;
    background:#579057;
    color:#fff;
    border:none;
    border-radius:4px;
    font-size:1rem;
    cursor:pointer;
    transition:background-color .2s
}
.form-row button:hover{
    background:#477647
}
.hidden{
    display:none
}
@media (max-width:600px){
    .form-row{
        flex-direction:column;
        align-items:stretch
    }
}
.players-selected-count{
    color:#666;
    font-size:.9rem;
    margin:1rem 0
}
.form-submit-button{
    width:100%;
    padding:1rem;
    background:#579057;
    color:#fff;
    border:none;
    border-radius:4px;
    font-size:1rem;
    cursor:pointer;
    transition:background-color .2s;
    margin-top:1rem
}
.form-submit-button:hover{
    background:#477647
}
.season-filter-container{
    margin:1.5rem 0;
    display:flex;
    justify-content:flex-end
}
.season-filter select{
    padding:.5rem 1rem;
    border:1px solid #ddd;
    border-radius:4px;
    background:#fff;
    font-size:.9rem;
    cursor:pointer;
    transition:border-color .2s
}
.season-filter select:hover{
    border-color:#a5d6a7
}
.match-date{
    color:#666;
    font-size:.9rem
}
.match-score{
    font-weight:500
}
@media (max-width:600px){
    .match-date{
        grid-area:date;
        font-size:.8rem
    }
    .match-score{
        grid-area:score
    }
}



/* Result badge styles */
.result-badge {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    border-radius: 50%;
    font-weight: bold;
    font-size: 0.8rem;
}

.result-badge.win {
    background: #e8f5e9;
    color: #2e7d32;
}

.result-badge.loss {
    background: #ffebee;
    color: #c62828;
}

.result-badge.draw {
    background: #fff3e0;
    color: #ef6c00;
}

.table-score{
    display:inline-flex;
    align-items:center;
    gap:.25rem;
    padding:.25rem .5rem;
    background:#f8f9fa;
    border-radius:4px;
    box-shadow:inset 0 0 5px rgba(0,0,0,.1)
}
.table-score-number{
    font-family: monospace;
    color: #77ac6b;
    text-shadow: 0 0 8px rgba(119, 172, 107, 0.4);
    font-weight: bold;
    min-width: 1em;
    text-align: center;
}
.table-score-divider{
    color:#77ac6b;
    margin:0 .1rem;
    text-shadow:0 0 8px rgba(119,172,107,.4)
}
.match-link{
    text-decoration:none;
    color:inherit;
    display:block;
    transition:transform .2s
}
.match-link:hover{
    // Remove transform
}
.activity-timeline {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    width: 100%;
    box-sizing: border-box;
}
.season-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
    width: 100%;
}
.season-label {
    font-weight: bold;
    min-width: 40px;
    flex-shrink: 0;
    color: #666;
}
.activity-graph {
    display: flex;
    gap: 4px;
    flex: 1;
    flex-wrap: nowrap;
    overflow: hidden;
}
.activity-cell {
    height: 20px;
    border-radius: 2px;
    background-color: #ebedf0;
    transition: all 0.2s ease;
    position: relative;
    text-decoration: none;
    display: block;
    flex-shrink: 0;
}
.activity-cell.participated{
    background-color:#40c463
}
.activity-cell.missed{
    background-color:#ff7b72
}
.activity-cell:hover{
    transform:scale(1.2);
    z-index:1;
    cursor:pointer
}
.activity-cell:hover::after{
    content:attr(title);
    position:absolute;
    bottom:100%;
    left:50%;
    transform:translateX(-50%);
    padding:4px 8px;
    background:#333;
    color:#fff;
    border-radius:4px;
    font-size:12px;
    white-space:nowrap;
    z-index:2
}
.timeline{
    position:relative;
    padding-left:2rem;
    margin:2rem 0
}
.timeline::before{
    content:'';
    position:absolute;
    left:7px;
    top:0;
    bottom:0;
    width:2px;
    background:#579057
}
.timeline-item{
    position:relative;
    padding-bottom:2rem
}
.timeline-item:last-child{
    padding-bottom:0
}
.timeline-content{
    background:#fff;
    padding:1rem 1.5rem;
    border-radius:8px;
    box-shadow:0 2px 4px rgba(0,0,0,.05)
}
.timeline-content h4{
    color:#2c3e50;
    margin:.5rem 0;
    font-size:1.1rem
}
.timeline-content p{
    color:#666;
    margin:0;
    font-size:.95rem
}
.timeline-container{
    background:#fff;
    border-radius:15px;
    padding:2rem;
    box-shadow:0 4px 6px rgba(0,0,0,.1)
}
.timeline{
    position:relative;
    padding-left:2rem
}
.timeline::before{
    content:'';
    position:absolute;
    left:0;
    top:0;
    bottom:0;
    width:2px;
    background:#579057;
    border-radius:1px
}
.timeline-item{
    position:relative;
    padding-bottom:2rem
}
.timeline-content h4{
    color:#2c3e50;
    margin:.5rem 0
}
.timeline-content p{
    color:#666;
    margin:0
}
.scoreboard {
    width: 100%;
    max-width: none;
    background: var(--primary-color, #f8f9fa);
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.25rem 0.75rem;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-color, #212529);
    transition: transform .2s ease, box-shadow .2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    gap: 0.5rem;
}

.team {
    text-align: center;
    flex: 0 0 auto;
    width: 90px;
    margin-top: 60px;
}

.team-logo {
    width: 40px;
    height: 40px;
    margin: 0 auto 0.5rem;
}

.team-logo__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.team-name-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    min-height: 2.4em;
}

.team-emblem {
    font-size: 0.9rem;
}

.scoreboard-team-name {
    font-size: 0.75rem;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90px;
    font-weight: 500;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
    line-height: 1.2;
    text-align: center;
}

.match-details {
    flex: 0 1 auto;
    text-align: center;
    padding: 0 0.5rem;
    min-width: 140px;
}

.match-meta {
    margin-bottom: 0.5rem;
    font-size: 0.65rem;
    color: var(--secondary-text-color, #6c757d);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.match-score {
    font-family: 'DS-Digital', monospace;
    font-size: 2rem;
    font-weight: bold;
    color: #77ac6b;
    margin: 0.4rem 0;
}

.match-score__divider {
    margin: 0 0.25rem;
}

.match-subtitle {
    font-size: 0.7rem;
    color: var(--secondary-text-color, #6c757d);
    line-height: 1.2;
}

.the-one-where-label {
    font-weight: 600;
    margin-bottom: 0.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.65rem;
    color: #2c3e50;
}

.memorable-text {
    font-size: 0.7rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: #666;
    font-weight: 400;
}


#clearFilter{
    padding:.5rem 1rem;
    border:1px solid #ddd;
    border-radius:4px;
    background:#f8f9fa;
    cursor:pointer;
    transition:background-color .2s
}
#clearFilter:hover{
    background:#e0e0e0
}
.opponent-input-container{
    position:relative;
    width:100%
}
.opponent-suggestions{
    display:none;
    position:absolute;
    top:100%;
    left:0;
    right:0;
    background:#fff;
    border:1px solid #ddd;
    border-top:none;
    max-height:200px;
    overflow-y:auto;
    z-index:1000;
    box-shadow:0 2px 4px rgba(0,0,0,.1);
    font-size:.9rem
}
.opponent-suggestions div{
    padding:8px 12px;
    cursor:pointer
}
.opponent-suggestions div:hover{
    background-color:#f5f5f5
}

.league-table {
    min-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.league-table table {
    min-width: 400px;  /* Minimum width for the table */
    width: 100%;
}


.last-updated {
    color: #666;
    font-size: 0.8rem;
    text-align: right;
    margin-top: -0.5rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}
tr.our-team {
    background-color: rgba(87, 144, 87, 0.1); /* Using your site's green with low opacity */
}

.loading-indicator {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.loading-indicator::after {
    content: '';
    display: inline-block;
    width: 1em;
    height: 1em;
    border: 2px solid #ddd;
    border-top: 2px solid #579057;
    border-radius: 50%;
    margin-left: 0.5rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.kitty-summary {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.balance-amount {
    font-size: 2rem;
    font-weight: bold;
    margin: 1rem 0;
}

.positive {
    color: #28a745;
}

.negative {
    color: #dc3545;
}

.player-balances table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}


.player-payment {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.payment-icon {
    font-size: 1.2rem;
}

.add-transaction-form {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.add-transaction-form h3 {
    margin-top: 0;
}



.management-card select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    margin-bottom: 1rem;
}

.management-card select:focus {
    outline: none;
    border-color: #007bff;
}

/* Messages and Alerts */
.message {
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.error {
    background: #ff6b6b;
    color: white;
}

.success {
    background: #51cf66;
    color: white;
}

.kitty-summary {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.balance-amount {
    font-size: 2rem;
    font-weight: bold;
    margin: 1rem 0;
}

.positive {
    color: #28a745;
}

.negative {
    color: #dc3545;
}



/* Remove spinner buttons from number inputs in player selection */
.goals-section input[type="number"]::-webkit-inner-spin-button,
.goals-section input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.goals-section input[type="number"] {
    -moz-appearance: textfield; /* Firefox */
}

.player-item.hidden {
    display: none;
}

#loadMorePlayers {
    width: 100%;
    margin: 1rem 0;
    background: #666;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

#loadMorePlayers:hover {
    background: #555;
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.photo-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.photo-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.photo-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    cursor: zoom-in;
}

.gallery-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.photo-item:hover .gallery-image {
    // Remove transform
}

@media (max-width: 600px) {
    .photo-gallery {
        grid-template-columns: 1fr;
    }
    
    .gallery-image {
        height: 200px;
    }
}

/* Custom lightbox styling to match your theme */
.lb-data .lb-caption {
    font-family: Arial, sans-serif;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
}

.lb-data .lb-number {
    color: #ddd;
}

.lb-nav a.lb-prev,
.lb-nav a.lb-next {
    opacity: 0.8;
}

.lb-nav a.lb-prev:hover,
.lb-nav a.lb-next:hover {
    opacity: 1;
}

.last-seen-card {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.last-seen-icon {
    font-size: 2rem;
}

.last-seen-details {
    flex-grow: 1;
}

.last-seen-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.last-seen-date {
    font-size: 1.2rem;
    font-weight: 600;
}

.last-seen-ago {
    font-size: 0.9rem;
    opacity: 0.9;
}

.modern-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.stat-card-content {
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.player-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.player-profile {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.profile-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-placeholder {
    width: 100%;
    height: 100%;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-name {
    font-size: 2rem;
    font-weight: 500;
}

.last-appearance {
    color: #666;
    margin-bottom: 2rem;
}

.player-stats-container, 
.goalkeeper-stats-container {
    margin-bottom: 2rem;
}

.player-stats-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.player-stats-table th {
    background-color: #f8f9fa;
    padding: 0.75rem;
    text-align: left;
    border-bottom: 2px solid #dee2e6;
}

.player-stats-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #dee2e6;
}

.goalkeeper-stats-container h3 {
    margin-bottom: 1rem;
}

.sortable {
    cursor: pointer;
}

.sortable.sort-asc {
    color:#d32f2f;  /* Red for ascending (A-Z, low to high) */
}

.sortable.sort-desc {
    color:#2e7d32;  /* Green for descending (Z-A, high to low) */
}

.filter-row th {
    background-color: #f8f9fa;
    border-bottom: none;
    padding: 1.5rem;
    border-radius: 8px 8px 0 0;
}

.season-filter-container {
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.season-filter {
    width: 100%;
    position: relative;
}

.season-filter select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    background: #fff;
    font-size: 1rem;
    font-weight: 500;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23579057' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 1rem) center;
    padding-right: 2.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.season-filter select:hover {
    border-color: #579057;
    background-color: #f8f9fa;
}

.season-filter select:focus {
    border-color: #579057;
    box-shadow: 0 0 0 3px rgba(87, 144, 87, 0.2);
    outline: none;
    background-color: #fff;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .filter-row th {
        padding: 1rem;
    }
    
    .season-filter select {
        padding: 0.6rem 0.75rem;
        font-size: 0.9rem;
        background-position: calc(100% - 0.75rem) center;
        padding-right: 2rem;
    }
    
    .season-filter::before {
        top: -1.2rem;
        font-size: 0.7rem;
    }
}

.match-score__number {
    font-family: monospace;
    font-weight: bold;
    padding: 0 0.5rem;
}

.true-balance {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.true-balance-label {
    display: block;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.true-balance .balance-amount {
    font-size: 1.5rem;
}

.welcome-message {
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.welcome-message::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 4px;
    width: 100%;
    background: linear-gradient(to right, #579057, #77ac6b);
}

.welcome-message h1 {
    color: #2c3e50;
    font-size: 1.5rem;
    padding-bottom: 0;
    margin-bottom: 0;
    border: none;
}

.season-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px 8px 0 0;
    margin: -1px;  /* To ensure no gap between header and table */
}

.season-date {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

.season-start:not(:first-of-type) {
    border-top: 20px solid #f5f5f5;
}

.season-start th {
    border-bottom-width: 1px;
}

.season-stats-last-row {
    border-bottom: none !important;
}

/* Remove the top border when it's immediately after season-stats-last-row */
.season-stats-last-row + tr.season-start {
    border-top: none;
}

/* Add these styles to handle table responsiveness */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Style for team name cells */
td:nth-child(2) {  /* Targets the team name column */
    max-width: 150px;  /* Adjust this value as needed */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Make table cells wrap on very small screens */
@media (max-width: 576px) {
    td:nth-child(2) {
        max-width: 100px;  /* Smaller max-width for mobile */
    }
}