/* Puan Durumu Widget Stilleri */

.widget-puan-durumu {
    width: 100%;
    font-family: 'Inter', sans-serif
}

.widget-puan-durumu .widget-header {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color, #f0f0f0)
}

.widget-puan-durumu h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-color, #1e293b);
    display: flex;
    align-items: center;
    gap: 8px
}

/* League Dropdown */
.league-dropdown {
    position: relative;
    width: 100%
}

.selected-league {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    cursor: pointer
}

.selected-league h3 {
    margin: 0;
    font-size: 16px
}

.selected-league i {
    transition: transform .3s
}

.league-dropdown.active .selected-league i {
    transform: rotate(180deg)
}

.league-options {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-top: none;
    z-index: 10;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s;
    box-shadow: 0 4px 6px rgb(0 0 0 / .1)
}

.league-group-title,
.league-option:hover {
    background-color: #f5f5f5
}

.league-dropdown.active .league-options {
    max-height: 400px;
    overflow-y: auto
}

.league-option-group {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 5px
}

.league-group-title {
    font-weight: 600;
    padding: 10px 15px;
    color: #666;
    font-size: 14px
}

.league-option {
    padding: 8px 15px;
    cursor: pointer;
    transition: background-color .2s;
    font-size: 14px
}

.league-option[data-selected=true] {
    background-color: #e3f2fd;
    font-weight: 500;
    color: #1976d2
}

/* League Table */
.league-table {
    margin-top: 15px
}

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

.league-table th,
.league-table td {
    padding: 10px 8px;
    text-align: left;
    border-bottom: 1px solid var(--border-color, #eee);
    font-size: 14px
}

.league-table th {
    background-color: #f8f9fa;
    color: #666;
    font-weight: 600
}

.league-table tr:hover {
    background-color: #f8f9fa
}

.table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px
}

.legend {
    display: flex;
    align-items: center;
    gap: 15px
}

.last-update {
    color: #666;
    font-size: 12px;
    text-align: right
}

.table-info {
    margin-top: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.5
}

.table-info p {
    margin: 0 0 5px
}

.table-info p:last-child {
    margin-bottom: 0
}

/* Sidebar V2 stilleri components/puandurumu2.css dosyasına taşındı */

/* Responsive */
@media (max-width:767.98px) {

    .league-table td,
    .league-table th {
        padding: 8px 5px;
        font-size: 13px
    }

    .league-table td:nth-child(2) {
        max-width: 100px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap
    }

    .selected-league h3 {
        font-size: 14px
    }

    .league-option {
        padding: 6px 12px;
        font-size: 13px
    }

    .league-group-title {
        font-size: 13px;
        padding: 8px 12px
    }
}

@media (max-width:575.98px) {
    .selected-league h3 {
        font-size: 13px
    }

    .league-option {
        padding: 5px 10px;
        font-size: 12px
    }

    .league-group-title {
        font-size: 12px;
        padding: 6px 10px
    }
}

/* Dark Theme */
body.dark-theme .league-table table {
    background-color: #222
}

body.dark-theme .table-info {
    background-color: #2a2a2a;
    color: #ddd
}

body.dark-theme .league-options {
    background-color: #333;
    border-color: #444
}

body.dark-theme .league-group-title {
    background-color: #444;
    color: #ccc
}

body.dark-theme .league-option[data-selected=true] {
    background-color: #1e3a5f;
    color: #90caf9
}

body.dark-theme .league-table,
body.dark-theme .sidebar-widget {
    background-color: #222 !important;
    border-color: #333;
    box-shadow: 0 5px 15px rgb(0 0 0 / .2)
}

body.dark-theme .league-table th {
    background-color: #333;
    color: #fff;
    border-color: #444
}

body.dark-theme .league-table td {
    color: #ddd;
    border-color: #444
}

body.dark-theme .league-table tr:hover {
    background-color: #2a2a2a
}

body.dark-theme .league-table .promotion {
    background-color: rgb(46 204 113 / .2)
}

body.dark-theme .league-table .playoff {
    background-color: rgb(241 196 15 / .2)
}

body.dark-theme .table-footer {
    background-color: #222;
    border-color: #444
}

body.dark-theme .data-disclaimer,
body.dark-theme .last-update {
    color: #aaa
}