/* İddaa Programı Eklentisi için Temel Stiller */

.iddaa-programi-container {
    overflow-x: auto;
    margin: 2em 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Filtreleme Kontrol Stilleri */
.iddaa-filtre-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
}

.iddaa-filtre-container input[type="text"],
.iddaa-filtre-container input[type="date"],
.iddaa-filtre-container select { /* YENİ */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    flex-grow: 1; /* Alanların genişlemesini sağlar */
    background-color: #fff; /* Select arkaplanı için */
}

#iddaa-filtre-sifirla {
    padding: 10px 15px;
    background-color: #6c757d;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

#iddaa-filtre-sifirla:hover {
    background-color: #5a6268;
}


.iddaa-programi-tablo {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    border: 1px solid #e0e0e0;
}

.iddaa-programi-tablo th,
.iddaa-programi-tablo td {
    border: 1px solid #e0e0e0;
    padding: 12px 15px;
    text-align: left;
    vertical-align: middle;
}

.iddaa-programi-tablo thead th {
    background-color: #f8f8f8;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    font-size: 12px;
}

.iddaa-programi-tablo tbody tr:nth-child(even) {
    background-color: #fdfdfd;
}

.iddaa-programi-tablo tbody tr:hover {
    background-color: #f0f5fa;
}

.iddaa-programi-uyari,
.iddaa-programi-hata {
    padding: 15px;
    margin: 20px 0;
    border-left: 4px solid #d9534f;
    background-color: #f2dede;
    color: #a94442;
}

/* Detay Butonu Stili */
.detay-btn {
    background-color: #0073aa;
    color: #fff;
    border: none;
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.detay-btn:hover {
    background-color: #005a87;
}

.detay-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Modal (Detay Penceresi) Stilleri */
.iddaa-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    padding-top: 60px;
}

.iddaa-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px 30px;
    border: 1px solid #888;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: animatetop 0.4s;
}

@keyframes animatetop {
    from {top: -300px; opacity: 0}
    to {top: 0; opacity: 1}
}

.iddaa-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
}

.iddaa-modal-close:hover,
.iddaa-modal-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#iddaa-modal-title {
    margin-top: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

/* Yükleniyor Animasyonu */
.iddaa-loader {
    border: 5px solid #f3f3f3;
    border-radius: 50%;
    border-top: 5px solid #3498db;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

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

/* Oran Grupları Stilleri */
.oran-gruplari {
    margin-top: 20px;
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 10px;
}

.oran-grubu {
    margin-bottom: 15px;
    border: 1px solid #eee;
    border-radius: 5px;
    overflow: hidden;
    background-color: #fff;
}

.oran-grubu h5 {
    background-color: #f8f9fa;
    padding: 10px 15px;
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 1px solid #eee;
}

.oran-satirlari {
    display: flex;
    flex-wrap: wrap;
    padding: 10px 5px;
}

.oran-satiri {
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    width: 48%;
    margin: 1%;
    padding: 8px 12px;
    background-color: #fdfdfd;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    font-size: 13px;
}

.oran-satiri span {
    color: #555;
    margin-right: 10px;
}

.oran-satiri strong {
    color: #000;
    font-weight: 700;
}

/* Fallback listesi için stil */
.oran-listesi { list-style: none; padding: 0; margin: 0; }
.oran-listesi li { display: flex; justify-content: space-between; padding: 10px 5px; border-bottom: 1px solid #f0f0f0; }
.oran-listesi li:last-child { border-bottom: none; }

/* Mobil Cihazlar için Responsif Tasarım */
@media screen and (max-width: 768px) {
    .iddaa-filtre-container {
        flex-direction: column;
    }
    .iddaa-programi-tablo thead { display: none; }
    .iddaa-programi-tablo, .iddaa-programi-tablo tbody, .iddaa-programi-tablo tr, .iddaa-programi-tablo td {
        display: block; width: 100%; box-sizing: border-box;
    }
    .iddaa-programi-tablo tr { margin-bottom: 15px; border: 1px solid #ccc; }
    .iddaa-programi-tablo td {
        text-align: right; padding-left: 50%; position: relative; border: none; border-bottom: 1px solid #eee;
    }
    .iddaa-programi-tablo td:last-child { border-bottom: 0; }
    .iddaa-programi-tablo td::before {
        content: attr(data-label); position: absolute; left: 15px; width: calc(50% - 30px);
        padding-right: 10px; font-weight: 600; text-align: left; color: #555;
    }
    .oran-satiri { width: 98%; }
}
