/* ==========================================
   🌙 DOKTOR KALEMİ - DARK MODE TEMA SİSTEMİ
   ========================================== */

/* Sayfa Açılışında Flaş Olmaması İçin Önceden Yükleme */
html[data-theme="dark"],
html[data-theme="dark"] body {
    background-color: #0f172a !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .admin-container,
html[data-theme="dark"] .main-content,
html[data-theme="dark"] div[style*="background-color: #f8fafc"],
html[data-theme="dark"] div[style*="background: #f8fafc"] {
    background-color: #0f172a !important;
    color: #f8fafc !important;
}

/* Koyu Mod Kartlar ve Kutu Arka Planları */
html[data-theme="dark"] .admin-card,
html[data-theme="dark"] .doctor-sidebar,
html[data-theme="dark"] .fav-scroll-box,
html[data-theme="dark"] .log-item-card,
html[data-theme="dark"] div[style*="background: white"],
html[data-theme="dark"] div[style*="background: #ffffff"],
html[data-theme="dark"] div[style*="background-color: #ffffff"],
html[data-theme="dark"] div[style*="background-color: white"] {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}

/* Koyu Mod Başlıklar ve Metinler */
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6,
html[data-theme="dark"] strong,
html[data-theme="dark"] div[style*="color: #1e293b"],
html[data-theme="dark"] div[style*="color: #0f172a"],
html[data-theme="dark"] span[style*="color: #1e293b"],
html[data-theme="dark"] span[style*="color: #0f172a"] {
    color: #f8fafc !important;
}

html[data-theme="dark"] p,
html[data-theme="dark"] label,
html[data-theme="dark"] div[style*="color: #64748b"],
html[data-theme="dark"] div[style*="color: #475569"],
html[data-theme="dark"] span[style*="color: #64748b"],
html[data-theme="dark"] span[style*="color: #475569"] {
    color: #94a3b8 !important;
}

/* Koyu Mod Form Elemanları */
html[data-theme="dark"] input[type="text"],
html[data-theme="dark"] input[type="email"],
html[data-theme="dark"] input[type="password"],
html[data-theme="dark"] input[type="date"],
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
    background-color: #0f172a !important;
    color: #f8fafc !important;
    border-color: #334155 !important;
}

/* Koyu Mod Tablolar */
html[data-theme="dark"] table {
    border-color: #334155 !important;
}

html[data-theme="dark"] table tr {
    border-color: #334155 !important;
}

html[data-theme="dark"] table th {
    background-color: #0f172a !important;
    color: #cbd5e1 !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] table td {
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

/* Koyu Mod Modallar */
html[data-theme="dark"] #logDetayModal > div,
html[data-theme="dark"] #logTemizleModal > div,
html[data-theme="dark"] .modal-content {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}

/* Koyu Mod Butonlar */
html[data-theme="dark"] .theme-toggle-btn {
    background: #334155 !important;
    color: #fbbf24 !important;
    border-color: #475569 !important;
}
