/* ========================================= */
/* KALKÜLÜS SAYFASI ÖZEL TASARIMLARI         */
/* ========================================= */

.calculator-wrapper { width: 100%; max-width: 800px; margin: 40px auto 0 auto; }

/* Polinom denklem kutuları */
.equation-group { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 30px; font-size: 22px; font-weight: bold; color: #2c3e50; background-color: white; padding: 20px; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); flex-wrap: wrap; transition: background-color 0.4s, color 0.4s; }
input[type="number"] { width: 70px; padding: 15px 10px; font-size: 18px; border: 2px solid #ccc; border-radius: 8px; outline: none; transition: border-color 0.3s, background-color 0.4s; text-align: center; }
input[type="number"]:focus { border-color: #3498db; }

/* Butonlar */
.button-group { display: flex; gap: 15px; margin-bottom: 20px; }
button { flex: 1; padding: 15px; font-size: 18px; background-color: #3498db; color: white; border: none; border-radius: 8px; cursor: pointer; transition: background 0.2s, transform 0.1s; font-weight: bold; }
button:hover { background-color: #2980b9; transform: translateY(-2px); }
button:active { transform: translateY(0); }
.reset-btn { background-color: #e74c3c; }
.reset-btn:hover { background-color: #c0392b; }

/* Sonuç ve Grafik Kutusu */
.result-box { background-color: #e8f4f8; padding: 20px; border-radius: 8px; font-size: 24px; font-weight: bold; color: #2c3e50; text-align: center; border: 2px dashed #3498db; line-height: 1.6; transition: background-color 0.4s, color 0.4s; margin-bottom: 20px; }
.chart-container { background-color: white; padding: 20px; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); position: relative; height: 40vh; width: 100%; transition: 0.4s; display: none; }
.chart-container.active { display: block; }

/* ========================================= */
/* KALKÜLÜS SAYFASI KARANLIK TEMA KODLARI    */
/* ========================================= */
html.dark-mode .equation-group, html.dark-mode .chart-container { background-color: #1e1e1e; color: #f1f1f1; border: 1px solid #333; }
html.dark-mode input[type="number"] { background-color: #121212; color: #f1f1f1; border-color: #444; }
html.dark-mode input[type="number"]:focus { border-color: #3498db; }
html.dark-mode .result-box { background-color: #1e1e1e; color: #f1f1f1; border-color: #3498db; }

/* ========================================= */
/* KALKÜLÜS SAYFASI MOBİL UYUMLULUK          */
/* ========================================= */
@media (max-width: 800px) {
    .equation-group { flex-direction: column; gap: 10px; }
    .button-group { flex-direction: column; }
    .chart-container { height: 45vh; }
}