/* TRAC Eskişehir — sistem geneli koyu tema düzeltmeleri
   Bu dosya daima diğer CSS dosyalarından SONRA yüklenmelidir. */

html[data-theme="dark"]{
  color-scheme:dark;
}

/* Genel yüzeyler */
html[data-theme="dark"] body,
html[data-theme="dark"] main,
html[data-theme="dark"] .content{
  color:#e8eef4!important;
}
html[data-theme="dark"] .formbox,
html[data-theme="dark"] .card,
html[data-theme="dark"] .card-body,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .article,
html[data-theme="dark"] .editbox,
html[data-theme="dark"] .card-edit,
html[data-theme="dark"] .guest-row,
html[data-theme="dark"] .notice,
html[data-theme="dark"] .flash,
html[data-theme="dark"] .resource-empty,
html[data-theme="dark"] .event-participation-public,
html[data-theme="dark"] .member-events-panel,
html[data-theme="dark"] .member-event-card,
html[data-theme="dark"] .library-card,
html[data-theme="dark"] .library-stat,
html[data-theme="dark"] .learning-card,
html[data-theme="dark"] .studio-panel,
html[data-theme="dark"] .studio-kpi,
html[data-theme="dark"] .td-panel,
html[data-theme="dark"] .td-kpi,
html[data-theme="dark"] .v7-panel,
html[data-theme="dark"] .v7-kpi{
  background:#101923!important;
  color:#e8eef4!important;
  border-color:#2d3b49!important;
  box-shadow:none!important;
}

/* Formlar */
html[data-theme="dark"] label,
html[data-theme="dark"] .formbox label,
html[data-theme="dark"] .card-edit label{
  color:#dce5ed!important;
}
html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select{
  background:#0c141d!important;
  color:#f1f5f8!important;
  border-color:#3a4a5a!important;
  caret-color:#fff!important;
}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder{
  color:#7f8e9d!important;
  opacity:1!important;
}
html[data-theme="dark"] input:disabled,
html[data-theme="dark"] textarea:disabled,
html[data-theme="dark"] select:disabled{
  background:#121c26!important;
  color:#7f8e9d!important;
}

/* Etkinlik kayıt ekranı + misafir alanı */
html[data-theme="dark"] .formbox [style*="border-top:1px solid #e4e9ef"],
html[data-theme="dark"] .formbox [style*="border-top: 1px solid #e4e9ef"]{
  border-top-color:#334252!important;
}
html[data-theme="dark"] .formbox p[style*="color:#6d7b8c"],
html[data-theme="dark"] .editbox p[style*="color:#6d7b8c"],
html[data-theme="dark"] .member-events-panel p[style*="color:#6d7b8c"]{
  color:#aab7c3!important;
}
html[data-theme="dark"] .guest-row{
  background:#111b25!important;
  border-color:#334353!important;
}
html[data-theme="dark"] #addGuest,
html[data-theme="dark"] #add{
  background:#1b2936!important;
  color:#edf4f8!important;
  border-color:#405364!important;
}
html[data-theme="dark"] #addGuest:hover,
html[data-theme="dark"] #add:hover{
  background:#243747!important;
}

/* SMS doğrulama */
html[data-theme="dark"] .sms-countdown,
html[data-theme="dark"] [class*="sms-verify"],
html[data-theme="dark"] [class*="otp"]{
  background:#121e29!important;
  color:#e9f1f6!important;
  border-color:#324454!important;
}
html[data-theme="dark"] .sms-countdown small{
  color:#a8b6c2!important;
}
html[data-theme="dark"] .sms-countdown strong{
  color:#bce3fb!important;
}

/* KVKK */
html[data-theme="dark"] .kvkk-box{
  background:#131f2b!important;
  border-color:#34495c!important;
  color:#e8f0f6!important;
}
html[data-theme="dark"] .kvkk-box small{
  color:#aebdca!important;
}
html[data-theme="dark"] .kvkk-open{
  color:#9fd4f5!important;
}
html[data-theme="dark"] .kvkk-modal-card{
  background:#101923!important;
  color:#edf3f7!important;
  border-color:#34495c!important;
}
html[data-theme="dark"] .kvkk-modal-head,
html[data-theme="dark"] .kvkk-modal-foot{
  background:#142230!important;
  border-color:#34495c!important;
}
html[data-theme="dark"] .kvkk-scroll{
  background:#101923!important;
  color:#e4ecf2!important;
}
html[data-theme="dark"] .kvkk-scroll h3,
html[data-theme="dark"] .kvkk-scroll strong{
  color:#f5f8fa!important;
}
html[data-theme="dark"] .kvkk-close{
  background:#1a2a38!important;
  color:#fff!important;
  border-color:#40566b!important;
}

/* Bilgilendirme / durum kutuları */
html[data-theme="dark"] .notice{
  background:#182431!important;
  color:#dce8f0!important;
  border-color:#3a4c5e!important;
}
html[data-theme="dark"] .notice.ok,
html[data-theme="dark"] .flash{
  background:#12271c!important;
  color:#a8e3b8!important;
  border-color:#315d3f!important;
}
html[data-theme="dark"] [style*="background:#eaf7ee"],
html[data-theme="dark"] [style*="background: #eaf7ee"]{
  background:#153022!important;
  color:#a6dfb5!important;
}
html[data-theme="dark"] [style*="background:#eef3f8"],
html[data-theme="dark"] [style*="background: #eef3f8"],
html[data-theme="dark"] [style*="background:#f4f5f7"],
html[data-theme="dark"] [style*="background: #f4f5f7"]{
  background:#172431!important;
  color:#b4c1cc!important;
}
html[data-theme="dark"] [style*="color:#6d7b8c"],
html[data-theme="dark"] [style*="color: #6d7b8c"],
html[data-theme="dark"] [style*="color:#687384"],
html[data-theme="dark"] [style*="color: #687384"]{
  color:#aab7c3!important;
}

/* Tablolar */
html[data-theme="dark"] table,
html[data-theme="dark"] .table,
html[data-theme="dark"] .event-participant-table{
  color:#e4ecf2!important;
}
html[data-theme="dark"] th{
  background:#14212d!important;
  color:#aab9c5!important;
  border-color:#2f4050!important;
}
html[data-theme="dark"] td{
  background:#101923!important;
  color:#e4ecf2!important;
  border-color:#283746!important;
}
html[data-theme="dark"] tr:hover td{
  background:#142230!important;
}

/* Galeriler: etkinlik + haber */
html[data-theme="dark"] .trac-gallery{
  background:#101923!important;
  color:#eef4f8!important;
  border-color:#2e3e4d!important;
}
html[data-theme="dark"] .trac-gallery summary{
  background:#14212d!important;
  color:#f1f5f8!important;
  border-color:#2e3e4d!important;
}
html[data-theme="dark"] .trac-gallery summary span,
html[data-theme="dark"] .trac-gallery summary b{
  color:#f1f5f8!important;
}
html[data-theme="dark"] .trac-gallery-grid{
  background:#101923!important;
}
html[data-theme="dark"] .trac-gallery-item{
  background:#17232e!important;
  border-color:#334454!important;
}

/* Çevrim Merkezi */
html[data-theme="dark"] .cm-shell,
html[data-theme="dark"] .cm-workspace,
html[data-theme="dark"] .cm-list-panel,
html[data-theme="dark"] .cm-editor,
html[data-theme="dark"] .cm-participant-panel,
html[data-theme="dark"] .cm-session,
html[data-theme="dark"] .cm-kpis>div,
html[data-theme="dark"] .cm-legacy,
html[data-theme="dark"] .cm-install{
  background:#101923!important;
  color:#e8eef4!important;
  border-color:#2d3d4c!important;
  box-shadow:none!important;
}
html[data-theme="dark"] .cm-session:hover,
html[data-theme="dark"] .cm-session.selected{
  background:#172635!important;
}
html[data-theme="dark"] .cm-panel-head,
html[data-theme="dark"] .cm-filter{
  border-color:#2d3d4c!important;
}
html[data-theme="dark"] .cm-filter a{
  color:#b5c2cd!important;
}
html[data-theme="dark"] .cm-filter a.active{
  background:#203649!important;
  color:#fff!important;
}
html[data-theme="dark"] .cm-profile-note,
html[data-theme="dark"] .cm-session small{
  color:#9faebb!important;
}

/* Admin */
html[data-theme="dark"] .admin-main,
html[data-theme="dark"] .member-card,
html[data-theme="dark"] .member-list-wrap,
html[data-theme="dark"] .member-row,
html[data-theme="dark"] .member-toolbar,
html[data-theme="dark"] .bulk-bar,
html[data-theme="dark"] .member-profile-card,
html[data-theme="dark"] .member-modal-quick,
html[data-theme="dark"] .member-profile-grid>div{
  background:#101923!important;
  color:#e8eef4!important;
  border-color:#2d3d4c!important;
  box-shadow:none!important;
}
html[data-theme="dark"] .member-row:hover,
html[data-theme="dark"] .member-info-item:hover{
  background:#152432!important;
}
html[data-theme="dark"] .member-info-item,
html[data-theme="dark"] .member-meta span,
html[data-theme="dark"] .member-select,
html[data-theme="dark"] .member-checkall,
html[data-theme="dark"] .member-status-tab{
  background:#15222e!important;
  color:#d8e2ea!important;
  border-color:#304151!important;
}
html[data-theme="dark"] .member-main h3,
html[data-theme="dark"] .member-profile-title h2,
html[data-theme="dark"] .member-profile-grid b,
html[data-theme="dark"] .member-profile-grid a{
  color:#eef4f8!important;
}

/* Bağlantılar ve ikincil düğmeler */
html[data-theme="dark"] .btn:not(.red):not(.danger),
html[data-theme="dark"] .event-track-btn,
html[data-theme="dark"] .library-btn:not(.primary){
  background:#172635!important;
  color:#e8f0f5!important;
  border-color:#3b5062!important;
}
html[data-theme="dark"] .btn:not(.red):not(.danger):hover,
html[data-theme="dark"] .event-track-btn:hover{
  background:#20384b!important;
  border-color:#58748b!important;
}

/* Aydınlık tema seçildiğinde sistem koyu olsa bile bu dosya müdahale etmez.
   Tüm kurallar yalnızca html[data-theme="dark"] altında çalışır. */
