/* ========================================= */
/* İSTATİSTİK SAYFASI ÖZEL TASARIMLARI       */
/* ========================================= */

.content-wrapper { max-width: 850px; margin: 0 auto; }
.card-box { background: white; padding: 30px; border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.05); margin-bottom: 25px; transition: 0.4s; }

/* Veri Giriş Kutusu */
.data-input { width: 100%; height: 120px; padding: 15px; font-size: 18px; font-family: monospace; border: 2px solid #bdc3c7; border-radius: 8px; resize: none; outline: none; transition: 0.3s; box-sizing: border-box; background-color: #fcfcfc; color: #2c3e50; margin-bottom: 15px;}
.data-input:focus { border-color: #3498db; box-shadow: 0 0 8px rgba(52, 152, 219, 0.3); }
.hint-text { font-size: 13px; color: #7f8c8d; display: block; margin-top: -10px; margin-bottom: 20px; }

/* Butonlar */
.btn-group { display: flex; gap: 15px; margin-bottom: 20px; }
.btn-calc { flex: 2; padding: 15px; font-size: 18px; font-weight: bold; background-color: #3498db; color: white; border: none; border-radius: 8px; cursor: pointer; transition: 0.3s; }
.btn-calc:hover { background-color: #2980b9; transform: translateY(-2px); }
.btn-reset { flex: 1; background-color: #e74c3c; color: white; border: none; border-radius: 8px; cursor: pointer; font-size: 18px; font-weight: bold; transition: 0.3s;}
.btn-reset:hover { background-color: #c0392b; }

.pdf-btn { width: 100%; background-color: #27ae60; color: white; padding: 15px; font-size: 18px; font-weight: bold; border: none; border-radius: 8px; cursor: pointer; transition: 0.3s; display: none; margin-top: 15px;}
.pdf-btn:hover { background-color: #2ecc71; }
.pdf-btn.active { display: block; }

/* Sonuç Kutucukları (Grid) */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; display: none; margin-bottom: 25px;}
.stat-grid.active { display: grid; }
.stat-item { background-color: #e8f4f8; padding: 20px; border-radius: 8px; text-align: center; border: 1px solid #d1eaf5; transition: 0.3s; }
.stat-title { font-size: 14px; color: #7f8c8d; font-weight: bold; text-transform: uppercase; margin-bottom: 5px; }
.stat-value { font-size: 24px; color: #2c3e50; font-weight: bold; }

/* Grafik Konteyneri */
.chart-container { background-color: white; padding: 20px; border-radius: 8px; border: 1px solid #e0e0e0; position: relative; height: 350px; width: 100%; display: none; box-sizing: border-box; margin-bottom: 20px;}
.chart-container.active { display: block; }

/* ========================================= */
/* İSTATİSTİK SAYFASI KARANLIK TEMA KODLARI  */
/* ========================================= */
html.dark-mode .card-box, html.dark-mode .chart-container { background-color: #1e1e1e; border-color: #333; box-shadow: 0 10px 25px rgba(0,0,0,0.5); }
html.dark-mode .data-input { background-color: #121212; color: #f1f1f1; border-color: #444; }
html.dark-mode .data-input:focus { border-color: #3498db; }
html.dark-mode .stat-item { background-color: #1f2a36; border-color: #2c3e50; }
html.dark-mode .stat-title { color: #bdc3c7; }
html.dark-mode .stat-value { color: #f1f1f1; }

/* ========================================= */
/* İSTATİSTİK SAYFASI MOBİL UYUMLULUK        */
/* ========================================= */
@media (max-width: 900px) {
    .btn-group { flex-direction: column; }
    .stat-grid.active { grid-template-columns: 1fr 1fr; } /* Mobilde kutuları 3 yerine 2 sütun yapar */
}
