* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: Arial, sans-serif; background: #f0f2f5; color: #333; }

.header { background: #1a1a2e; color: #fff; padding: 14px 20px; display: flex; justify-content: space-between; align-items: center; }
.header h1 { font-size: 16px; color: #e94560; }
.header a { color: #aaa; text-decoration: none; font-size: 13px; }

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

/* İHTİMAL KUTUSU */
.ihtimal-box { background: #1a1a2e; border-radius: 12px; padding: 20px; text-align: center; margin-bottom: 12px; }
.ihtimal-sayi { font-size: 48px; font-weight: bold; color: #e94560; }
.ihtimal-label { font-size: 14px; color: #aaa; margin-top: 4px; }
.ihtimal-bar { background: #0f3460; border-radius: 8px; height: 8px; margin-top: 12px; overflow: hidden; }
.ihtimal-bar-fill { background: linear-gradient(90deg, #e94560, #ff6b6b); height: 100%; transition: width 0.5s ease; border-radius: 8px; }

/* EXCEL SATIRI */
.excel-satir { background: #fff; border-radius: 10px; padding: 12px 16px; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; box-shadow: 0 2px 6px rgba(0,0,0,0.06); }
.excel-satir-baslik { font-size: 14px; font-weight: bold; color: #333; display: flex; align-items: center; gap: 6px; }
.excel-satir label { font-size: 13px; color: #555; }
.excel-input { padding: 6px 8px; border: 1px solid #ddd; border-radius: 6px; font-size: 13px; width: 80px; }
.excel-max-bilgi { font-size: 12px; color: #888; display: flex; align-items: center; gap: 4px; }
.tooltip-icon { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; background: #e94560; color: #fff; border-radius: 50%; font-size: 11px; font-weight: bold; cursor: help; position: relative; }
.tooltip-icon .tip { visibility: hidden; background: #333; color: #fff; font-size: 12px; border-radius: 6px; padding: 8px 10px; position: absolute; z-index: 99; bottom: 125%; left: 50%; transform: translateX(-50%); width: 240px; line-height: 1.5; opacity: 0; transition: opacity 0.2s; pointer-events: none; }
.tooltip-icon:hover .tip { visibility: visible; opacity: 1; }
.excel-indir-btn { background: #28a745; color: #fff; border: none; border-radius: 6px; padding: 8px 16px; font-size: 13px; cursor: pointer; display: flex; align-items: center; gap: 6px; margin-left: auto; }
.excel-indir-btn:hover { background: #1e7e34; }

/* İSTATİSTİK BAŞLIKLARI */
.istatistik-baslik-bar { background: #7ecfed; border-radius: 10px; padding: 14px; text-align: center; margin-bottom: 0; }
.istatistik-baslik-bar h2 { font-size: 20px; font-weight: bold; color: #000; }

/* FİLTRE KUTUSU */
.filtre-kutusu { background: #fff; border: 1px solid #ccc; border-radius: 0 0 10px 10px; padding: 16px; margin-bottom: 12px; min-height: 200px; }
.filtreler-baslik { font-size: 14px; font-weight: bold; color: #333; margin-bottom: 10px; }
.filtre-listesi { display: flex; flex-direction: column; gap: 8px; }
.filtre-etiketi { background: #e94560; color: #fff; padding: 10px 12px; border-radius: 6px; font-size: 13px; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; min-height: 56px; line-height: 1.5; }
.filtre-etiketi-metin { display: flex; flex-direction: column; gap: 2px; }
.filtre-etiketi button { background: none; border: none; color: #fff; cursor: pointer; font-size: 16px; padding: 0; line-height: 1; flex-shrink: 0; }

/* İSTATİSTİK BUTONLARI */
.istatistik-butonlar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.istatistik-btn { background: #fff; border: 1px solid #ddd; border-radius: 8px; padding: 12px; font-size: 13px; font-weight: bold; color: #333; cursor: pointer; text-align: center; transition: all 0.15s; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.istatistik-btn:hover { border-color: #e94560; color: #e94560; }

/* POPUP */
.popup-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 100; }
.popup-box { background: #fff; border-radius: 12px; padding: 20px; max-width: 480px; margin: 40px auto; position: relative; max-height: 85vh; overflow-y: auto; }
.popup-kapat { position: absolute; top: 12px; right: 14px; background: none; border: none; font-size: 20px; cursor: pointer; color: #888; }
.popup-baslik { font-size: 16px; font-weight: bold; color: #1a1a2e; margin-bottom: 16px; border-bottom: 2px solid #e94560; padding-bottom: 8px; }
.popup-icerik { }

/* POPUP İÇERİK */
.secenek-grid { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.secenek { padding: 7px 14px; border: 1px solid #ddd; border-radius: 6px; cursor: pointer; font-size: 13px; transition: all 0.15s; user-select: none; }
.secenek:hover { border-color: #e94560; }
.secenek.secili { background: #e94560; color: #fff; border-color: #e94560; }

.sayi-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; margin-bottom: 12px; }
.sayi-btn { padding: 8px 4px; border: 1px solid #ddd; border-radius: 6px; cursor: pointer; font-size: 13px; text-align: center; font-weight: bold; transition: all 0.15s; user-select: none; }
.sayi-btn:hover { border-color: #e94560; }
.sayi-btn.secili { background: #e94560; color: #fff; border-color: #e94560; }

.spinner-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.spinner-row label { font-size: 13px; color: #555; min-width: 70px; }
.spinner-wrap { display: flex; align-items: center; gap: 4px; }
.spinner-btn { width: 28px; height: 28px; border: 1px solid #ddd; border-radius: 4px; background: #f8f9fa; cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; }
.spinner-val { min-width: 40px; text-align: center; font-size: 14px; font-weight: bold; }
.kart-bilgi { font-size: 12px; color: #888; margin-bottom: 8px; }
.kart-bilgi-uyari { color: #e94560; font-style: italic; }

.takip-grup { margin-bottom: 12px; }
.takip-grup-baslik { font-size: 12px; font-weight: bold; color: #555; margin-bottom: 6px; }

.popup-uygula-btn { background: #e94560; color: #fff; border: none; border-radius: 6px; padding: 9px 20px; font-size: 13px; cursor: pointer; margin-top: 8px; }
.popup-uygula-btn:hover { background: #c73652; }
.popup-temizle-btn { background: #6c757d; color: #fff; border: none; border-radius: 6px; padding: 9px 14px; font-size: 13px; cursor: pointer; margin-top: 8px; margin-left: 6px; }

/* ÇAKIŞMA POPUP */
.cakisma-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 200; }
.cakisma-box { background: #fff; border-radius: 10px; padding: 20px; max-width: 400px; margin: 100px auto; }
.cakisma-box h3 { font-size: 15px; margin-bottom: 10px; color: #e94560; }
.cakisma-box p { font-size: 13px; color: #555; margin-bottom: 16px; line-height: 1.6; }
.cakisma-btns { display: flex; gap: 10px; }
.cakisma-evet { background: #e94560; color: #fff; border: none; border-radius: 6px; padding: 8px 18px; cursor: pointer; font-size: 13px; }
.cakisma-hayir { background: #6c757d; color: #fff; border: none; border-radius: 6px; padding: 8px 18px; cursor: pointer; font-size: 13px; }

@media (max-width: 600px) {
    .istatistik-butonlar { grid-template-columns: repeat(2, 1fr); }
    .sayi-grid { grid-template-columns: repeat(5, 1fr); }
    .ihtimal-sayi { font-size: 36px; }
    .excel-satir { flex-direction: column; align-items: flex-start; }
    .excel-indir-btn { margin-left: 0; width: 100%; justify-content: center; }
    .popup-box { margin: 20px 10px; }
}

.istatistik-butonlar { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 8px; }
.istatistik-btn { background: #f8f9fa; border: 1px solid #ddd; border-radius: 8px; padding: 14px; font-size: 14px; font-weight: bold; color: #333; cursor: pointer; text-align: center; transition: all 0.15s; }
.istatistik-btn:hover { border-color: #e94560; color: #e94560; background: #fff5f7; }
@media (max-width: 600px) { .istatistik-butonlar { grid-template-columns: 1fr 1fr; } }

.popup-tooltip { position: relative; display: inline-flex; align-items: center; margin-left: 6px; cursor: help; }
.popup-tooltip .tip-icon { background: #e94560; color: #fff; border-radius: 50%; width: 16px; height: 16px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: bold; flex-shrink: 0; }
.popup-tooltip .tip-metin { visibility: hidden; background: #333; color: #fff; font-size: 12px; border-radius: 6px; padding: 8px 10px; position: absolute; z-index: 999; top: 125%; left: 50%; transform: translateX(-50%); width: 280px; line-height: 1.6; opacity: 0; transition: opacity 0.2s; pointer-events: none; }
.popup-tooltip:hover .tip-metin { visibility: visible; opacity: 1; }

.istatistik-aciklama { font-size: 12px; color: #555; text-align: center; padding: 8px 16px; background: #f0f8ff; border-radius: 0 0 8px 8px; margin-bottom: 12px; line-height: 1.5; }
