/* Tabellák & Csapatok stílusok */
.tables-teams-container {
    margin-top: 20px;
    margin-bottom: 40px;
}

.search-filters {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.content-tabs .nav-tabs .nav-link {
    color: #495057;
    font-weight: 500;
}

.content-tabs .nav-tabs .nav-link.active {
    color: #1a73e8;
    font-weight: 600;
}

.loading-container {
    min-height: 200px;
    position: relative;
}

.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Tabella stílusok */
.standings-table {
    width: 100%;
    border-collapse: collapse;
}

.standings-table th {
    background-color: #f0f4f8;
    padding: 10px;
    text-align: center;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
}

.standings-table td {
    padding: 12px 10px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}

.standings-table tr:hover {
    background-color: #f8f9fa;
}

.standings-table tr.selected {
    background-color: #e8f0fe;
}

.team-cell {
    display: flex;
    align-items: center;
    text-align: left;
}

.team-logo {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    object-fit: contain;
}

.team-name {
    font-weight: 500;
}

.qualification-zone {
    width: 4px;
    height: 100%;
    margin-right: 10px;
}

.champions-league {
    background-color: #1a73e8;
}

.europa-league {
    background-color: #ff9800;
}

.conference-league {
    background-color: #4caf50;
}

.relegation {
    background-color: #f44336;
}

/* Csapatok kártya stílusok */
.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.team-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.team-card-header {
    background-color: #f8f9fa;
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}

.team-card-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 10px;
}

.team-card-name {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 5px;
}

.team-card-body {
    padding: 15px;
}

.team-card-info {
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
}

.team-card-info-label {
    font-weight: 500;
    color: #6c757d;
}

/* Mérkőzés kártya stílusok */
.round-selector {
    margin-bottom: 20px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.match-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.match-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.match-league {
    display: flex;
    align-items: center;
}

.league-logo {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    object-fit: contain;
}

.match-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}

.status-finished {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.status-live {
    background-color: #ffebee;
    color: #c62828;
}

.status-scheduled {
    background-color: #e3f2fd;
    color: #1565c0;
}

.match-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 15px;
}

.match-team {
    display: flex;
    align-items: center;
    width: 40%;
}

.match-team.home {
    justify-content: flex-end;
    text-align: right;
}

.match-team.away {
    justify-content: flex-start;
    text-align: left;
}

.match-team-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.match-team.home .match-team-logo {
    margin-left: 10px;
}

.match-team.away .match-team-logo {
    margin-right: 10px;
}

.match-team-name {
    font-weight: 500;
}

.match-team.winner .match-team-name {
    font-weight: 700;
    color: #2e7d32;
}

.match-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 20%;
}

.match-score-main {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.match-score-halftime {
    font-size: 14px;
    color: #6c757d;
}

.match-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 15px;
    border-top: 1px solid #e9ecef;
    background-color: #f8f9fa;
}

.match-detail-item {
    display: flex;
    align-items: center;
}

.match-detail-label {
    font-weight: 500;
    margin-right: 5px;
    color: #6c757d;
}

.h2h-button {
    background-color: #1a73e8;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
}

.h2h-button:hover {
    background-color: #1557b0;
}

/* Statisztikák stílusok */
.selected-team, .selected-match {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.match-teams-info {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

.match-teams-info .team-name {
    font-weight: 600;
    font-size: 18px;
}

.match-teams-info .vs {
    margin: 0 15px;
    font-weight: 500;
    color: #6c757d;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.stats-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.stats-card.full-width {
    grid-column: 1 / -1;
}

.stats-card-header {
    background-color: #f8f9fa;
    padding: 12px 15px;
    border-bottom: 1px solid #e9ecef;
}

.stats-card-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.stats-card-body {
    padding: 15px;
}

.stats-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.stats-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.stats-label {
    font-weight: 500;
    color: #6c757d;
}

.stats-value {
    font-weight: 600;
}

.team-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.form-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-weight: 600;
    font-size: 14px;
}

.form-item.win {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.form-item.draw {
    background-color: #fff3e0;
    color: #e65100;
}

.form-item.loss {
    background-color: #ffebee;
    color: #c62828;
}

.team-streaks, .team-goals {
    margin-top: 15px;
}

.streak-item, .goal-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.streak-label, .goal-label {
    font-weight: 500;
    color: #6c757d;
}

.streak-value, .goal-value {
    font-weight: 600;
}

.last-matches-container, .h2h-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.last-match-item, .h2h-match-item {
    padding: 12px;
    border-radius: 8px;
    background-color: #f8f9fa;
    border-left: 4px solid #1a73e8;
}

.last-match-item.result-win {
    border-left-color: #2e7d32;
}

.last-match-item.result-draw {
    border-left-color: #e65100;
}

.last-match-item.result-loss {
    border-left-color: #c62828;
}

.last-match-date, .h2h-match-date {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 5px;
}

.last-match-teams, .h2h-match-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.last-match-team, .h2h-match-team {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 10pc;
    
}

.last-match-team.highlighted {
    font-weight: 600;
}

.last-match-team-logo, .h2h-match-team-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.last-match-score, .h2h-match-score {
    font-weight: 600;
    margin: 0 10px;
}

.last-match-league, .h2h-match-league {
    color: #6c757d;
    font-size: 14px;
    font-style: italic;
}

.h2h-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.h2h-stat-item {
    text-align: center;
}

.h2h-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #1a73e8;
}

.h2h-stat-label {
    font-size: 14px;
    color: #6c757d;
}

.match-stats-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.match-stat-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.match-stat-label {
    font-weight: 500;
    text-align: center;
}

.match-stat-values {
    display: flex;
    align-items: center;
    gap: 10px;
}

.match-stat-value {
    width: 50px;
    text-align: center;
    font-weight: 600;
}

.match-stat-value.home {
    text-align: right;
}

.match-stat-value.away {
    text-align: left;
}

.match-stat-bar {
    flex-grow: 1;
    height: 10px;
    display: flex;
    border-radius: 5px;
    overflow: hidden;
}

.match-stat-bar-home {
    background-color: #1a73e8;
    height: 100%;
}

.match-stat-bar-away {
    background-color: #f44336;
    height: 100%;
}

.winner {
    font-weight: 600;
}

/* H2H Modal stílusok */
.h2h-match {
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 8px;
    background-color: #f8f9fa;
    border-left: 4px solid #1a73e8;
}

.h2h-match-date {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 5px;
}


.h2h-match-score {
    min-width: 48px;
    max-width: 48px;
    text-align: center;
    font-size: 19px;
    font-weight: 700;
    flex: 0 0 48px;
}

.h2h-match-competition {
    color: #6c757d;
    font-size: 14px;
    font-style: italic;
}

/* Sötét mód stílusok */
.dark-mode .search-filters {
    background-color: #2d2d2d !important;
}

.dark-mode .content-tabs .nav-tabs .nav-link {
    color: #e0e0e0 !important;
}

.dark-mode .content-tabs .nav-tabs .nav-link.active {
    color: #4285f4 !important;
}

.dark-mode .tab-content {
    background-color: #1e1e1e !important;
    border-color: #333;
}

.dark-mode .standings-table th {
    background-color: #2d2d2d !important;
    border-bottom-color: #444 !important;
    color: #e0e0e0;
}

.dark-mode .standings-table td {
    border-bottom-color: #333 !important;
    color: #e0e0e0;
}

.dark-mode .standings-table tr:hover {
    background-color: #2a2a2a !important;
}

.dark-mode .standings-table tr.selected {
    background-color: #1a3c6e;
}

.dark-mode .team-card {
    border-color: #333 !important;
    background-color: #1e1e1e !important;
}

.dark-mode .team-card-header {
    background-color: #2d2d2d !important;
    border-bottom-color: #333 !important;
}

.dark-mode .team-card-name,
.dark-mode .team-card-country {
    color: #e0e0e0;
}

.dark-mode .team-card-info-label {
    color: #aaa;
}

.dark-mode .round-selector {
    background-color: #2d2d2d !important;
}

.dark-mode .match-card {
    border-color: #333 !important;
    background-color: #1e1e1e !important;
}

.dark-mode .match-header {
    background-color: #2d2d2d !important;
    border-bottom-color: #333 !important;
}

.dark-mode .match-league {
    color: #e0e0e0;
}

.dark-mode .match-team-name {
    color: #e0e0e0;
}

.dark-mode .match-score-main {
    color: #e0e0e0;
}

.dark-mode .match-score-halftime {
    color: #aaa;
}

.dark-mode .match-details {
    background-color: #2d2d2d !important;
    border-top-color: #333 !important;
}

.dark-mode .match-detail-label {
    color: #aaa;
}

.dark-mode .selected-team,
.dark-mode .selected-match {
    background-color: #2d2d2d;
    color: #e0e0e0;
}

.dark-mode .stats-card {
    border-color: #333;
    background-color: #1e1e1e;
}

.dark-mode .stats-card-header {
    background-color: #2d2d2d;
    border-bottom-color: #333;
    color: #e0e0e0;
}

.dark-mode .stats-card-header h4 {
    color: #e0e0e0;
}

.dark-mode .stats-item {
    border-bottom-color: #333;
}

.dark-mode .stats-label,
.dark-mode .streak-label,
.dark-mode .goal-label {
    color: #aaa;
}

.dark-mode .stats-value,
.dark-mode .streak-value,
.dark-mode .goal-value {
    color: #e0e0e0;
}

.dark-mode .last-match-item,
.dark-mode .h2h-match-item,
.dark-mode .h2h-match {
    background-color: #2d2d2d;
}

.dark-mode .last-match-date,
.dark-mode .h2h-match-date,
.dark-mode .last-match-league,
.dark-mode .h2h-match-league {
    color: #aaa;
}

.dark-mode .last-match-team,
.dark-mode .h2h-match-team {
    color: #e0e0e0;
}

.dark-mode .last-match-score,
.dark-mode .h2h-match-score {
    color: #e0e0e0;
}

.dark-mode .match-stat-label {
    color: #e0e0e0;
}

.dark-mode .match-stat-value {
    color: #e0e0e0;
}

.dark-mode .h2h-stat-label {
    color: #aaa;
}

.dark-mode .h2h-stat-value {
    color: #4285f4;
}

.dark-mode .form-item.win {
    background-color: rgba(46, 125, 50, 0.2);
}

.dark-mode .form-item.draw {
    background-color: rgba(230, 81, 0, 0.2);
}

.dark-mode .form-item.loss {
    background-color: rgba(198, 40, 40, 0.2);
}

.dark-mode .status-finished {
    background-color: rgba(46, 125, 50, 0.2);
}

.dark-mode .status-live {
    background-color: rgba(198, 40, 40, 0.2);
}

.dark-mode .status-scheduled {
    background-color: rgba(21, 101, 192, 0.2);
}

/* Reszponzív stílusok */
@media (max-width: 768px) {
    .match-teams {
        flex-direction: column;
        gap: 15px;
    }
    
    .match-team {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    
    .match-team.home {
        justify-content: center;
        text-align: center;
    }
    
    .match-team.away {
        justify-content: center;
        text-align: center;
    }
    
    .match-score {
        width: 100%;
    }
    
    .match-details {
        grid-template-columns: 1fr;
    }
    
    .teams-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .match-stat-values {
        flex-direction: column;
        gap: 5px;
    }
    
    .match-stat-value.home,
    .match-stat-value.away {
        text-align: center;
        width: 100%;
    }
    
    .team-form {
        flex-wrap: wrap;
    }

    .table-responsive {
        width: 100%;
        overflow-x: auto;
    }
    .standings-table {
        min-width: 650px;
    }
}

.match-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-size: 15px;
}
.stat-home, .stat-away {
    width: 20%;
    text-align: center;
    font-weight: bold;
}
.stat-label {
    width: 60%;
    text-align: center;
    font-size: 14px;
}
.match-stat-bar-row {
    display: flex;
    height: 10px;
    margin-bottom: 10px;
    background: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
}
.match-stat-bar-home {
    background-color: #1a73e8;
    height: 100%;
    transition: width 0.2s;
}
.match-stat-bar-away {
    background-color: #f44336;
    height: 100%;
    transition: width 0.2s;
}
@media (max-width: 600px) {
    .stat-label {
        font-size: 12px;
    }
    .match-stat-row {
        font-size: 13px;
    }
}
@media (max-width: 600px) {
    .search-filters .form-control,
    .search-filters .form-select,
    .search-filters .btn {
        font-size: 13px;
        padding: 6px;
    }
}