/* plugins/ProfelisTheme/files/dark.css - Karanlik mod.
 * Kurallar yalnizca html[data-pt-theme="dark"] altinda etkilidir; nitelik
 * theme.js tarafindan (localStorage tercihi yoksa isletim sistemi
 * tercihine gore) atanir. theme.css'ten sonra yuklenir; cakisan
 * ozelliklerde !important ile onceligi alir.
 *
 * Palet, PROFELIS_DESIGN.md acik tema tokenlarinin karanlik esleridir
 * (Figma "Mantis Roadmap Redesign" renk dili): petrol/turkuaz marka,
 * arduvaz zeminler, pastel pill'ler koyu-tint karsiliklariyla. */

html[data-pt-theme="dark"] {
	/* Zeminler */
	--ptd-bg: #10161d;          /* sayfa */
	--ptd-surface: #1a222c;     /* kart / widget */
	--ptd-raised: #212b37;      /* baslik bandi, thead, chip */
	--ptd-soft: #1d2733;        /* toolbox, meta ve filtre bantlari */
	--ptd-inset: #131a23;       /* input, code, onizleme */
	--ptd-hover: #253140;       /* satir/menu hover */
	/* Cizgiler */
	--ptd-border: #2b3846;
	--ptd-border-strong: #3a4a5c;
	--ptd-divider: #232e3a;
	/* Metin */
	--ptd-text: #e2eaf2;
	--ptd-text-2: #aeb9c6;
	--ptd-muted: #8493a2;
	--ptd-faint: #6b7a8a;
	/* Marka */
	--ptd-brand: #3aa4c4;       /* turkuaz (koyu zeminde acilmis) */
	--ptd-brand-strong: #5ec1de;
	--ptd-brand-tint: #16303c;  /* turkuaz pill zemini */
	--ptd-link: #5ec1de;
	--ptd-link-hover: #8ad4ec;
	--ptd-red: #f0565d;         /* kirmizi vurgu (id, aktif oge) */
	--ptd-red-tint: #38222a;
	/* Pill tintleri */
	--ptd-green-bg: #1d3529;  --ptd-green-fg: #6fd39a;
	--ptd-amber-bg: #37301c;  --ptd-amber-fg: #e3bd63;
	--ptd-redp-bg: #3a2328;   --ptd-redp-fg: #f09a9a;
	--ptd-blue-bg: #1e2c3c;   --ptd-blue-fg: #85b8e8;
}

/* ---------- Zemin ve tipografi ---------- */
html[data-pt-theme="dark"],
html[data-pt-theme="dark"] body {
	background-color: var(--ptd-bg) !important;
	color: var(--ptd-text) !important;
}

html[data-pt-theme="dark"] h1,
html[data-pt-theme="dark"] h2,
html[data-pt-theme="dark"] h3,
html[data-pt-theme="dark"] h4,
html[data-pt-theme="dark"] h5 {
	color: var(--ptd-text);
}

html[data-pt-theme="dark"] ::selection {
	background: #3c4f66;
	color: #f2f7fb;
}

html[data-pt-theme="dark"] .main-container,
html[data-pt-theme="dark"] .main-content,
html[data-pt-theme="dark"] .page-content {
	background-color: var(--ptd-bg) !important;
	color: var(--ptd-text) !important;
}

html[data-pt-theme="dark"] .page-header {
	border-bottom-color: var(--ptd-border);
}

/* ---------- Baglantilar ---------- */
html[data-pt-theme="dark"] a {
	color: var(--ptd-link);
}

html[data-pt-theme="dark"] a:hover,
html[data-pt-theme="dark"] a:focus {
	color: var(--ptd-link-hover);
}

/* ---------- Kaydirma cubugu ---------- */
html[data-pt-theme="dark"] ::-webkit-scrollbar-track {
	background: var(--ptd-bg);
}

html[data-pt-theme="dark"] ::-webkit-scrollbar-thumb {
	background: var(--ptd-border-strong);
}

html[data-pt-theme="dark"] ::-webkit-scrollbar-thumb:hover {
	background: #4a5d72;
}

/* ---------- Ust menu (navbar) ---------- */
html[data-pt-theme="dark"] .navbar,
html[data-pt-theme="dark"] .navbar-default,
html[data-pt-theme="dark"] .navbar-container {
	background: #0c1117 !important;
}

html[data-pt-theme="dark"] .navbar .dropdown-menu > li > a {
	color: var(--ptd-text) !important;
}

html[data-pt-theme="dark"] .nav-recent {
	color: var(--ptd-muted);
}

html[data-pt-theme="dark"] .nav-recent a {
	background: var(--ptd-raised);
	border-color: var(--ptd-border-strong);
	color: var(--ptd-brand-strong) !important;
}

html[data-pt-theme="dark"] .nav-recent a:hover {
	background: var(--ptd-hover);
	border-color: var(--ptd-brand);
}

html[data-pt-theme="dark"] .nav-search .nav-search-input,
html[data-pt-theme="dark"] .nav-search .nav-search-input:hover {
	background: var(--ptd-inset) !important;
	border-color: var(--ptd-border-strong) !important;
	color: var(--ptd-text) !important;
}

html[data-pt-theme="dark"] .nav-search .nav-search-input:focus {
	border-color: var(--ptd-brand) !important;
	background: var(--ptd-raised) !important;
}

/* ---------- Kenar cubugu ---------- */
html[data-pt-theme="dark"] .sidebar,
html[data-pt-theme="dark"] .sidebar:before {
	background-color: #151c25 !important;
	border-color: var(--ptd-border) !important;
}

html[data-pt-theme="dark"] .sidebar .nav-list > li,
html[data-pt-theme="dark"] .sidebar .nav-list > li:before {
	background: transparent !important;
	border-color: var(--ptd-divider) !important;
}

html[data-pt-theme="dark"] .sidebar .nav-list > li > a {
	background-color: transparent !important;
	color: var(--ptd-text-2) !important;
}

html[data-pt-theme="dark"] .sidebar .nav-list > li:hover > a {
	background: var(--ptd-hover) !important;
	color: var(--ptd-text) !important;
}

html[data-pt-theme="dark"] .sidebar .nav-list > li.active > a,
html[data-pt-theme="dark"] .sidebar .nav-list > li.active > a:hover {
	background: var(--ptd-red-tint) !important;
	color: var(--ptd-red) !important;
}

html[data-pt-theme="dark"] .sidebar .sidebar-toggle,
html[data-pt-theme="dark"] .sidebar .sidebar-shortcuts,
html[data-pt-theme="dark"] .sidebar .sidebar-shortcuts-mini {
	background: #151c25 !important;
	border-color: var(--ptd-border) !important;
}

/* ---------- Kirinti (breadcrumb) ---------- */
html[data-pt-theme="dark"] .breadcrumbs {
	background: var(--ptd-surface) !important;
	border-bottom-color: var(--ptd-border) !important;
}

html[data-pt-theme="dark"] .breadcrumb > li {
	color: var(--ptd-text-2) !important;
}

html[data-pt-theme="dark"] .breadcrumb > li > a {
	color: var(--ptd-brand-strong) !important;
}

html[data-pt-theme="dark"] .breadcrumb .label-default.arrowed,
html[data-pt-theme="dark"] .breadcrumb .label-default.arrowed-right {
	background: var(--ptd-brand-tint) !important;
	color: var(--ptd-brand-strong) !important;
}

/* ---------- Widget kutulari ---------- */
html[data-pt-theme="dark"] .widget-box {
	background: var(--ptd-surface) !important;
	border-color: var(--ptd-border) !important;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

html[data-pt-theme="dark"] .widget-body,
html[data-pt-theme="dark"] .widget-main {
	background-color: var(--ptd-surface) !important;
	color: var(--ptd-text) !important;
}

html[data-pt-theme="dark"] .widget-header {
	background: var(--ptd-raised) !important;
	border-bottom-color: var(--ptd-border) !important;
	color: var(--ptd-text) !important;
}

html[data-pt-theme="dark"] .widget-header .widget-title,
html[data-pt-theme="dark"] .widget-title {
	color: var(--ptd-text) !important;
}

html[data-pt-theme="dark"] .widget-header a,
html[data-pt-theme="dark"] .widget-header a:hover {
	color: var(--ptd-text);
}

html[data-pt-theme="dark"] .widget-header .ace-icon,
html[data-pt-theme="dark"] .widget-header .widget-toolbar a {
	color: var(--ptd-text-2) !important;
}

html[data-pt-theme="dark"] .widget-toolbox {
	background-color: var(--ptd-soft) !important;
	border-color: var(--ptd-border) !important;
}

/* ---------- Cekirdek css ezmeleri ----------
 * theme.css/ace-mantis.css/default.css'in dogrudan eleman hedefleyen
 * kurallari kalitimla ezilemez; birebir koyu esleriyle ezilir. */

/* theme.css: ".widget-main p/td { color:#25333b }" - markdown ciktisi
 * (aciklama, notlar) <p> icinde geldigi icin koyu kaliyordu */
html[data-pt-theme="dark"] .widget-main p,
html[data-pt-theme="dark"] .widget-main td {
	color: var(--ptd-text);
}

/* Uyari kutusu icindeki paragraflar kutunun tint rengini korusun */
html[data-pt-theme="dark"] .widget-main .alert p {
	color: inherit;
}

/* ace-mantis.css: "table { background:#fff !important }" - seffaf
 * th.category hucrelerinin altindan beyaz sizmasin */
html[data-pt-theme="dark"] table {
	background-color: transparent !important;
}

/* default.css: "td/th.category label { background:#edf3f4 !important }" -
 * Izleyici Ekle etiketi beyaz cip gibi gorunuyordu */
html[data-pt-theme="dark"] td.category label,
html[data-pt-theme="dark"] th.category label {
	background-color: transparent !important;
	color: inherit !important;
}

/* default.css: "tr.spacer { background:#fff !important }" */
html[data-pt-theme="dark"] tr.spacer,
html[data-pt-theme="dark"] tr.spacer > td {
	background-color: transparent !important;
	color: inherit;
}

/* default.css: "tr.bugnote .bugnote-note { background:#e8e8e8; color:#000 }" */
html[data-pt-theme="dark"] tr.bugnote .bugnote-note {
	background-color: var(--ptd-surface);
	color: var(--ptd-text);
}

/* ---------- Tablolar ---------- */
html[data-pt-theme="dark"] table.table,
html[data-pt-theme="dark"] .table > tbody > tr > td,
html[data-pt-theme="dark"] .table > tbody > tr > th,
html[data-pt-theme="dark"] .table > tfoot > tr > td {
	background-color: var(--ptd-surface);
	border-color: var(--ptd-divider) !important;
	color: var(--ptd-text);
}

html[data-pt-theme="dark"] table.table > thead > tr > th,
html[data-pt-theme="dark"] .table > thead > tr > th {
	background: var(--ptd-raised) !important;
	color: var(--ptd-text-2);
	border-bottom-color: var(--ptd-border-strong) !important;
}

html[data-pt-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) {
	background-color: var(--ptd-soft);
}

html[data-pt-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) > td {
	background-color: var(--ptd-soft);
}

html[data-pt-theme="dark"] .table-hover > tbody > tr:hover,
html[data-pt-theme="dark"] .table-hover > tbody > tr:hover > td {
	background-color: var(--ptd-hover);
}

html[data-pt-theme="dark"] td.category,
html[data-pt-theme="dark"] th.category,
html[data-pt-theme="dark"] .category {
	background: var(--ptd-raised) !important;
	color: var(--ptd-text-2) !important;
}

html[data-pt-theme="dark"] .filter-box,
html[data-pt-theme="dark"] #filter,
html[data-pt-theme="dark"] .widget-box .filters {
	background: var(--ptd-surface);
}

/* Pastel durum zeminli satir/pill'ler acik kalir; icindeki metin
 * koyu tutulur ki kontrast bozulmasin */
html[data-pt-theme="dark"] [class*="status-"][class*="-bg"],
html[data-pt-theme="dark"] [class*="status-"][class*="-bg"] td {
	color: #25333b !important;
}

html[data-pt-theme="dark"] tr[class*="status-"][class*="-bg"] a,
html[data-pt-theme="dark"] td[class*="status-"][class*="-bg"] a {
	color: #9e1117;
}

/* ---------- Form elemanlari ---------- */
html[data-pt-theme="dark"] input[type="text"],
html[data-pt-theme="dark"] input[type="password"],
html[data-pt-theme="dark"] input[type="email"],
html[data-pt-theme="dark"] input[type="number"],
html[data-pt-theme="dark"] input[type="search"],
html[data-pt-theme="dark"] input[type="time"],
html[data-pt-theme="dark"] input[type="date"],
html[data-pt-theme="dark"] input[type="datetime-local"],
html[data-pt-theme="dark"] input[type="file"],
html[data-pt-theme="dark"] textarea,
html[data-pt-theme="dark"] select,
html[data-pt-theme="dark"] .form-control,
html[data-pt-theme="dark"] .input-sm {
	background-color: var(--ptd-inset) !important;
	border-color: var(--ptd-border-strong) !important;
	color: var(--ptd-text) !important;
	color-scheme: dark;
}

html[data-pt-theme="dark"] input:focus,
html[data-pt-theme="dark"] textarea:focus,
html[data-pt-theme="dark"] select:focus,
html[data-pt-theme="dark"] .form-control:focus {
	border-color: var(--ptd-brand) !important;
	background-color: var(--ptd-raised) !important;
	box-shadow: 0 0 0 2px rgba(58, 164, 196, 0.25) !important;
}

html[data-pt-theme="dark"] ::placeholder {
	color: var(--ptd-faint) !important;
	opacity: 1;
}

html[data-pt-theme="dark"] label,
html[data-pt-theme="dark"] .pt-field-label {
	color: var(--ptd-text-2) !important;
}

/* ---------- Butonlar ---------- */
html[data-pt-theme="dark"] .main-container .btn {
	background: var(--ptd-raised) !important;
	border-color: var(--ptd-border-strong) !important;
	color: var(--ptd-text-2) !important;
}

html[data-pt-theme="dark"] .main-container .btn:hover,
html[data-pt-theme="dark"] .main-container .btn:focus {
	background: var(--ptd-hover) !important;
	border-color: var(--ptd-brand) !important;
	color: var(--ptd-brand-strong) !important;
}

html[data-pt-theme="dark"] .main-container .btn[disabled],
html[data-pt-theme="dark"] .main-container .btn.disabled {
	background: var(--ptd-soft) !important;
	color: var(--ptd-faint) !important;
	border-color: var(--ptd-border) !important;
}

html[data-pt-theme="dark"] .btn.btn-white,
html[data-pt-theme="dark"] .btn-default,
html[data-pt-theme="dark"] a.btn-sm.btn-white {
	background: var(--ptd-raised) !important;
	border-color: var(--ptd-border-strong) !important;
	color: var(--ptd-text) !important;
}

html[data-pt-theme="dark"] .btn.btn-white:hover,
html[data-pt-theme="dark"] .btn.btn-white:focus,
html[data-pt-theme="dark"] .btn-default:hover {
	background: var(--ptd-hover) !important;
	color: var(--ptd-brand-strong) !important;
}

/* Dolgulu varyantlar (primary/success/danger/warning) ayni kalir;
 * koyu zeminde de yeterli kontrasta sahipler. Ana birincil buton: */
html[data-pt-theme="dark"] .btn-primary:not(.btn-white),
html[data-pt-theme="dark"] .main-container .btn-primary:not(.btn-white) {
	background: #00718f !important;
	border-color: #00718f !important;
	color: #ffffff !important;
}

html[data-pt-theme="dark"] .btn-primary:not(.btn-white):hover,
html[data-pt-theme="dark"] .main-container .btn-primary:not(.btn-white):focus {
	background: #008cb0 !important;
	border-color: #008cb0 !important;
	color: #ffffff !important;
}

html[data-pt-theme="dark"] .main-container .btn-success {
	background: #1a7444 !important;
	border-color: #155c36 !important;
	color: #ffffff !important;
}

html[data-pt-theme="dark"] .main-container .btn-danger {
	background: #ab2439 !important;
	border-color: #8a1d2e !important;
	color: #ffffff !important;
}

html[data-pt-theme="dark"] .main-container .btn-warning {
	background: #ae5224 !important;
	border-color: #8c421d !important;
	color: #ffffff !important;
}

/* ---------- Rozet ve etiketler ---------- */
html[data-pt-theme="dark"] a.tag,
html[data-pt-theme="dark"] .tag {
	background: var(--ptd-brand-tint);
	border-color: #2a4a58;
	color: var(--ptd-brand-strong);
}

html[data-pt-theme="dark"] a.tag:hover {
	background: #1c3d4c;
	color: var(--ptd-link-hover);
}

/* ---------- Uyari bantlari ---------- */
html[data-pt-theme="dark"] .alert {
	background-color: var(--ptd-soft);
	border-color: var(--ptd-border-strong);
	color: var(--ptd-text);
}

html[data-pt-theme="dark"] .alert-warning {
	color: var(--ptd-amber-fg);
	background-color: var(--ptd-amber-bg);
	border-color: #4d411f;
}

html[data-pt-theme="dark"] .alert-danger {
	color: var(--ptd-redp-fg);
	background-color: var(--ptd-redp-bg);
	border-color: #55303a;
}

html[data-pt-theme="dark"] .alert-success {
	color: var(--ptd-green-fg);
	background-color: var(--ptd-green-bg);
	border-color: #2c4a38;
}

html[data-pt-theme="dark"] .alert-info {
	color: var(--ptd-blue-fg);
	background-color: var(--ptd-blue-bg);
	border-color: #2c4258;
}

/* ---------- Sekmeler / sayfalama ---------- */
html[data-pt-theme="dark"] .nav-tabs {
	border-color: var(--ptd-border) !important;
}

html[data-pt-theme="dark"] .nav-tabs > li > a {
	color: var(--ptd-text-2);
	background: transparent;
	border-color: var(--ptd-border);
}

html[data-pt-theme="dark"] .nav-tabs > li.active > a,
html[data-pt-theme="dark"] .nav-tabs > li.active > a:hover,
html[data-pt-theme="dark"] .nav-tabs > li.active > a:focus {
	color: var(--ptd-red);
	background: var(--ptd-surface);
	border-color: var(--ptd-border);
	border-top-color: #e51c24;
}

html[data-pt-theme="dark"] .pagination > li > a,
html[data-pt-theme="dark"] .pagination > li > span {
	background-color: var(--ptd-surface) !important;
	border-color: var(--ptd-border-strong) !important;
	color: var(--ptd-text) !important;
}

html[data-pt-theme="dark"] .pagination > .active > a,
html[data-pt-theme="dark"] .pagination > .active > a:hover {
	background: #e51c24 !important;
	border-color: #e51c24 !important;
	color: #ffffff !important;
}

/* ---------- Acilir menuler / modal / well ---------- */
html[data-pt-theme="dark"] .dropdown-menu {
	background-color: var(--ptd-raised) !important;
	border-color: var(--ptd-border-strong) !important;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

html[data-pt-theme="dark"] .dropdown-menu > li > a {
	color: var(--ptd-text) !important;
}

html[data-pt-theme="dark"] .dropdown-menu > li > a:hover,
html[data-pt-theme="dark"] .dropdown-menu > li > a:focus {
	background: var(--ptd-hover) !important;
	color: var(--ptd-link-hover) !important;
}

html[data-pt-theme="dark"] .modal-content,
html[data-pt-theme="dark"] .modal-header,
html[data-pt-theme="dark"] .modal-body,
html[data-pt-theme="dark"] .modal-footer {
	background-color: var(--ptd-surface) !important;
	border-color: var(--ptd-border-strong) !important;
	color: var(--ptd-text);
}

html[data-pt-theme="dark"] .well,
html[data-pt-theme="dark"] .panel,
html[data-pt-theme="dark"] .panel-body,
html[data-pt-theme="dark"] .list-group-item {
	background-color: var(--ptd-soft) !important;
	border-color: var(--ptd-border-strong) !important;
	color: var(--ptd-text) !important;
}

html[data-pt-theme="dark"] pre,
html[data-pt-theme="dark"] code {
	background-color: var(--ptd-inset) !important;
	border-color: var(--ptd-border) !important;
	color: #cfd8e2 !important;
}

html[data-pt-theme="dark"] .popover {
	background-color: var(--ptd-raised);
	border-color: var(--ptd-border-strong);
}

html[data-pt-theme="dark"] .popover-title {
	background-color: var(--ptd-soft);
	border-bottom-color: var(--ptd-border);
	color: var(--ptd-text);
}

/* ---------- Sayfa alt bilgisi ---------- */
html[data-pt-theme="dark"] .footer,
html[data-pt-theme="dark"] .footer-inner,
html[data-pt-theme="dark"] .footer .footer-inner,
html[data-pt-theme="dark"] .footer-content {
	background-color: var(--ptd-surface) !important;
	color: var(--ptd-muted) !important;
	border-color: var(--ptd-border) !important;
}

/* ---------- Giris ekrani ---------- */
html[data-pt-theme="dark"] .login-layout {
	background: var(--ptd-bg) !important;
}

html[data-pt-theme="dark"] .login-layout .widget-box,
html[data-pt-theme="dark"] .login-box .widget-main {
	background: var(--ptd-surface) !important;
}

/* ---------- Progress ---------- */
html[data-pt-theme="dark"] .progress {
	background: var(--ptd-raised);
}

/* ============================================================
 * SORUN DETAY SAYFASI (.pt-view-issue)
 * ============================================================ */

/* Alan etiketleri (buyuk harf gri) ve kunye gridi */
html[data-pt-theme="dark"] .pt-view-issue table.table > tbody > tr > th.category,
html[data-pt-theme="dark"] .pt-view-issue table.table > tbody > tr > td.category {
	background: transparent !important;
	color: var(--ptd-faint) !important;
}

html[data-pt-theme="dark"] .pt-view-issue table.table > tbody > tr > td {
	color: var(--ptd-text);
}

html[data-pt-theme="dark"] .pt-view-issue .widget-main table.table-bordered > tbody > tr {
	border-bottom-color: var(--ptd-divider);
}

html[data-pt-theme="dark"] .pt-view-issue .pt-field-label,
html[data-pt-theme="dark"] .pt-view-issue .pt-call-actions-label {
	color: var(--ptd-muted) !important;
}

html[data-pt-theme="dark"] .pt-view-issue .pt-field-value,
html[data-pt-theme="dark"] .pt-view-issue .pt-call-actions-value {
	color: var(--ptd-text) !important;
}

html[data-pt-theme="dark"] .pt-view-issue .pt-field-value a,
html[data-pt-theme="dark"] .pt-view-issue .pt-call-actions-value a {
	color: var(--ptd-brand-strong);
}

/* Ozet, aciklama ve icerik yigini */
html[data-pt-theme="dark"] .pt-view-issue td.bug-summary,
html[data-pt-theme="dark"] .pt-view-issue .pt-section-summary .pt-section-value {
	color: var(--ptd-text) !important;
}

html[data-pt-theme="dark"] .pt-view-issue td.bug-description,
html[data-pt-theme="dark"] .pt-view-issue .pt-section-desc .pt-section-value {
	color: var(--ptd-text-2) !important;
}

html[data-pt-theme="dark"] .pt-view-issue .pt-section-value {
	color: var(--ptd-text);
}

html[data-pt-theme="dark"] .pt-view-issue .widget-header {
	background: var(--ptd-raised) !important;
}

html[data-pt-theme="dark"] .pt-view-issue .widget-header .widget-title {
	color: var(--ptd-text);
}

/* Cagri Islemleri karti */
html[data-pt-theme="dark"] .pt-view-issue .pt-call-actions-card {
	background: var(--ptd-surface);
	border-color: var(--ptd-border);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

html[data-pt-theme="dark"] .pt-view-issue .pt-call-actions-head {
	background: var(--ptd-raised);
	border-bottom-color: var(--ptd-divider);
}

html[data-pt-theme="dark"] .pt-view-issue .pt-call-actions-title {
	color: var(--ptd-text-2);
}

html[data-pt-theme="dark"] .pt-view-issue .pt-call-actions-icon {
	color: var(--ptd-brand-strong);
}

html[data-pt-theme="dark"] .pt-view-issue .pt-call-actions-col {
	border-right-color: var(--ptd-divider);
}

html[data-pt-theme="dark"] .pt-view-issue .pt-call-action-select {
	border-color: var(--ptd-border-strong) !important;
}

html[data-pt-theme="dark"] .pt-view-issue .btn.pt-call-action-btn {
	background: var(--ptd-raised) !important;
	border-color: var(--ptd-border-strong) !important;
	color: var(--ptd-text-2) !important;
}

html[data-pt-theme="dark"] .pt-view-issue .btn.pt-call-action-btn:hover,
html[data-pt-theme="dark"] .pt-view-issue .btn.pt-call-action-btn:focus,
html[data-pt-theme="dark"] .pt-view-issue .btn.pt-call-action-btn-success {
	background: var(--ptd-hover) !important;
	border-color: var(--ptd-brand) !important;
	color: var(--ptd-brand-strong) !important;
}

@media (max-width: 991px) {
	html[data-pt-theme="dark"] .pt-view-issue .pt-call-actions-col {
		border-bottom-color: var(--ptd-divider);
	}
}

/* Durum/sonuc pill'leri: koyu-tint esler */
html[data-pt-theme="dark"] .pt-view-issue .pt-call-actions-status .pt-status-pill {
	background: var(--ptd-blue-bg);
	color: var(--ptd-blue-fg);
}

html[data-pt-theme="dark"] .pt-view-issue .pt-res-10 { background: var(--ptd-blue-bg); color: var(--ptd-blue-fg); }
html[data-pt-theme="dark"] .pt-view-issue .pt-res-20 { background: var(--ptd-green-bg); color: var(--ptd-green-fg); }
html[data-pt-theme="dark"] .pt-view-issue .pt-res-30 { background: var(--ptd-amber-bg); color: var(--ptd-amber-fg); }
html[data-pt-theme="dark"] .pt-view-issue .pt-res-40 { background: #2c2740; color: #b3a3e0; }
html[data-pt-theme="dark"] .pt-view-issue .pt-res-50 { background: var(--ptd-redp-bg); color: var(--ptd-redp-fg); }
html[data-pt-theme="dark"] .pt-view-issue .pt-res-60 { background: #322740; color: #c0a3e0; }
html[data-pt-theme="dark"] .pt-view-issue .pt-res-70 { background: var(--ptd-brand-tint); color: var(--ptd-brand-strong); }
html[data-pt-theme="dark"] .pt-view-issue .pt-res-80 { background: var(--ptd-raised); color: var(--ptd-text-2); }
html[data-pt-theme="dark"] .pt-view-issue .pt-res-90 { background: var(--ptd-redp-bg); color: var(--ptd-redp-fg); }

/* Eylem cubugu butonlari */
html[data-pt-theme="dark"] .pt-view-issue .widget-toolbox .btn {
	background: var(--ptd-raised) !important;
	border-color: var(--ptd-border-strong) !important;
	color: var(--ptd-text-2) !important;
}

html[data-pt-theme="dark"] .pt-view-issue .widget-toolbox .btn:hover,
html[data-pt-theme="dark"] .pt-view-issue .widget-toolbox .btn:focus {
	background: var(--ptd-hover) !important;
	border-color: var(--ptd-brand) !important;
	color: var(--ptd-brand-strong) !important;
}

/* Duzenle (birincil) dolgulu petrol kalir */
html[data-pt-theme="dark"] .pt-view-issue .widget-toolbox a.btn[href*="bug_update_page"],
html[data-pt-theme="dark"] .pt-view-issue .widget-toolbox form[action*="bug_update_page"] .btn {
	background: #00718f !important;
	border-color: #00718f !important;
	color: #ffffff !important;
}

html[data-pt-theme="dark"] .pt-view-issue .widget-toolbox a.btn[href*="bug_update_page"]:hover,
html[data-pt-theme="dark"] .pt-view-issue .widget-toolbox form[action*="bug_update_page"] .btn:hover {
	background: #008cb0 !important;
	border-color: #008cb0 !important;
}

/* Aktiviteler: not kartlari */
html[data-pt-theme="dark"] .pt-view-issue #bugnotes .table-striped > tbody > tr,
html[data-pt-theme="dark"] .pt-view-issue #bugnotes .table-striped > tbody > tr:nth-of-type(odd) {
	background: var(--ptd-surface) !important;
}

html[data-pt-theme="dark"] .pt-view-issue #bugnotes td.bugnote-note,
html[data-pt-theme="dark"] .pt-view-issue #bugnotes td.bugnote-private {
	background: var(--ptd-surface);
}

html[data-pt-theme="dark"] .pt-view-issue #bugnotes td.category {
	color: var(--ptd-text) !important;
}

html[data-pt-theme="dark"] .pt-view-issue #bugnotes td.category a {
	color: var(--ptd-brand-strong);
}

html[data-pt-theme="dark"] .pt-view-issue #bugnotes td.category p.small,
html[data-pt-theme="dark"] .pt-view-issue #bugnotes td.category .lighter,
html[data-pt-theme="dark"] .pt-view-issue #bugnotes .pt-note-meta p.small,
html[data-pt-theme="dark"] .pt-view-issue #bugnotes .pt-note-meta .pt-note-link a {
	color: var(--ptd-muted) !important;
}

html[data-pt-theme="dark"] .pt-view-issue #bugnotes .pt-note-bubble {
	background: var(--ptd-soft);
	border-color: var(--ptd-border);
}

html[data-pt-theme="dark"] .pt-view-issue #bugnotes td.bugnote-private .pt-note-bubble {
	background: #2e2a1e;
	border-color: #4d4428;
}

html[data-pt-theme="dark"] .bugnote {
	background: var(--ptd-surface);
	border-color: var(--ptd-border);
}

html[data-pt-theme="dark"] .bugnote-private,
html[data-pt-theme="dark"] tr.bugnote-private td.bugnote-note {
	background-color: #2e2a1e !important;
}

html[data-pt-theme="dark"] .pt-view-issue #bugnotes tr.bugnote ~ tr.bugnote > td {
	border-top-color: var(--ptd-divider) !important;
}

html[data-pt-theme="dark"] .pt-view-issue #bugnotes .label-default {
	background: var(--ptd-brand-tint) !important;
	color: var(--ptd-brand-strong) !important;
}

/* Etiket rozetleri ve etiket butonlari */
html[data-pt-theme="dark"] .pt-view-issue td.bug-tags a.tag {
	background: var(--ptd-brand-tint);
	border-color: #2a4a58;
	color: var(--ptd-brand-strong);
}

html[data-pt-theme="dark"] .main-container a.btn[href*="tag_view_page.php"] {
	background: var(--ptd-brand-tint) !important;
	color: var(--ptd-brand-strong) !important;
	border-color: #2a4a58 !important;
}

/* ---------- SLA bandi (AdvancedReporting .ar-sla-*) ---------- */
html[data-pt-theme="dark"] .ar-sla-card {
	background: var(--ptd-surface) !important;
	border-color: var(--ptd-border) !important;
}

html[data-pt-theme="dark"] .ar-sla-title,
html[data-pt-theme="dark"] .ar-sla-t-val {
	color: var(--ptd-text) !important;
}

html[data-pt-theme="dark"] .ar-sla-plan {
	background: var(--ptd-brand-tint) !important;
	color: var(--ptd-brand-strong) !important;
}

html[data-pt-theme="dark"] .ar-sla-line,
html[data-pt-theme="dark"] .ar-sla-t-label {
	color: var(--ptd-text-2) !important;
}

html[data-pt-theme="dark"] .ar-sla-t-undef {
	color: var(--ptd-muted) !important;
}

html[data-pt-theme="dark"] .ar-sla-meter {
	background: var(--ptd-raised) !important;
}

html[data-pt-theme="dark"] .ar-sla-targets {
	background: var(--ptd-soft) !important;
	border-color: var(--ptd-border) !important;
}

html[data-pt-theme="dark"] .ar-sla-pill-ok { background: var(--ptd-green-bg) !important; color: var(--ptd-green-fg) !important; }
html[data-pt-theme="dark"] .ar-sla-pill-warn { background: var(--ptd-amber-bg) !important; color: var(--ptd-amber-fg) !important; }
html[data-pt-theme="dark"] .ar-sla-pill-breach { background: var(--ptd-redp-bg) !important; color: var(--ptd-redp-fg) !important; }

/* SLA tanimsiz / uyari varyantlari (bal tonlari koyu-tinte cevrilir) */
html[data-pt-theme="dark"] .ar-sla-card [style*="fff8ec"],
html[data-pt-theme="dark"] .ar-sla-undef-box {
	background: var(--ptd-amber-bg) !important;
	border-color: #4d411f !important;
	color: var(--ptd-amber-fg) !important;
}

/* ---------- Ticket kota karti (.lm-quota-*) ---------- */
html[data-pt-theme="dark"] .lm-quota-card {
	background: var(--ptd-surface) !important;
	border-color: var(--ptd-border) !important;
}

html[data-pt-theme="dark"] .lm-quota-title {
	color: var(--ptd-text) !important;
}

html[data-pt-theme="dark"] .lm-quota-line,
html[data-pt-theme="dark"] .lm-quota-stat-label {
	color: var(--ptd-text-2) !important;
}

html[data-pt-theme="dark"] .lm-quota-period {
	color: var(--ptd-muted) !important;
}

html[data-pt-theme="dark"] .lm-quota-meter,
html[data-pt-theme="dark"] .lm-quota-stat {
	background: var(--ptd-raised) !important;
}

html[data-pt-theme="dark"] .lm-quota-stat-warn { background: var(--ptd-amber-bg) !important; }
html[data-pt-theme="dark"] .lm-quota-stat-breach { background: var(--ptd-redp-bg) !important; }
html[data-pt-theme="dark"] .lm-quota-stat-num { color: var(--ptd-brand-strong) !important; }
html[data-pt-theme="dark"] .lm-quota-stat-num-warn { color: var(--ptd-amber-fg) !important; }
html[data-pt-theme="dark"] .lm-quota-stat-num-breach { color: var(--ptd-redp-fg) !important; }

html[data-pt-theme="dark"] .lm-quota-card .ar-sla-targets {
	border-left-color: var(--ptd-divider) !important;
}

/* ============================================================
 * CAGRI ACMA SAYFASI (.pt-report-issue)
 * ============================================================ */
html[data-pt-theme="dark"] .pt-report-issue #report_bug_form .widget-box,
html[data-pt-theme="dark"] .pt-report-issue form[action*="bug_report.php"] .widget-box {
	background: var(--ptd-surface);
	border-color: var(--ptd-border);
}

html[data-pt-theme="dark"] .pt-report-issue .widget-header .widget-title {
	color: var(--ptd-text);
}

html[data-pt-theme="dark"] .pt-report-issue .pt-profile-block,
html[data-pt-theme="dark"] .pt-report-issue .pt-section {
	background: var(--ptd-soft);
	border-color: var(--ptd-border);
}

html[data-pt-theme="dark"] .pt-report-issue .pt-profile-toggle,
html[data-pt-theme="dark"] .pt-report-issue .pt-section-toggle {
	background: var(--ptd-raised);
	border-color: var(--ptd-border-strong);
	color: var(--ptd-brand-strong);
}

html[data-pt-theme="dark"] .pt-report-issue .pt-profile-toggle:hover,
html[data-pt-theme="dark"] .pt-report-issue .pt-section-toggle:hover {
	background: var(--ptd-hover);
	border-color: var(--ptd-brand);
}

html[data-pt-theme="dark"] .pt-report-issue .pt-section-collapsible .pt-section-toggle {
	background: var(--ptd-raised);
	color: var(--ptd-text);
}

html[data-pt-theme="dark"] .pt-report-issue .pt-field-label,
html[data-pt-theme="dark"] .pt-report-issue .pt-toggle-hint {
	color: var(--ptd-muted);
}

html[data-pt-theme="dark"] .pt-report-issue .pt-section .pt-field-label {
	color: var(--ptd-text-2);
}

html[data-pt-theme="dark"] .pt-report-issue .pt-field-value,
html[data-pt-theme="dark"] .pt-report-issue .pt-section-summary .pt-section-value input,
html[data-pt-theme="dark"] .pt-report-issue .pt-section-desc .pt-section-value textarea,
html[data-pt-theme="dark"] .pt-report-issue .pt-field-value select,
html[data-pt-theme="dark"] .pt-report-issue .pt-field-value input[type="text"],
html[data-pt-theme="dark"] .pt-report-issue .pt-field-value textarea {
	color: var(--ptd-text);
	border-color: var(--ptd-border-strong);
	background: var(--ptd-inset);
}

html[data-pt-theme="dark"] .pt-report-issue .widget-toolbox {
	background: var(--ptd-soft) !important;
	border-top-color: var(--ptd-divider);
}

/* Izleyici onerileri */
html[data-pt-theme="dark"] .pt-monitor-user-suggest {
	background: var(--ptd-raised);
	border-color: var(--ptd-border-strong);
}

html[data-pt-theme="dark"] .pt-monitor-user-suggest li:hover {
	background: var(--ptd-hover);
}

/* Bicimlendirme onizlemesi */
html[data-pt-theme="dark"] .pt-preview-toggle {
	background: var(--ptd-raised);
	border-color: var(--ptd-border-strong);
	color: var(--ptd-text-2);
}

html[data-pt-theme="dark"] .pt-preview-toggle:hover {
	background: var(--ptd-hover);
}

html[data-pt-theme="dark"] .pt-preview-pane {
	background: var(--ptd-inset);
	border-color: var(--ptd-border-strong);
	color: var(--ptd-text);
}

html[data-pt-theme="dark"] .pt-preview-empty {
	color: var(--ptd-muted);
}

/* ============================================================
 * YOL HARITASI / MY VIEW / ORTAK ATOMLAR
 * ============================================================ */
html[data-pt-theme="dark"] .widget-header a.pt-rm-ver {
	color: var(--ptd-text);
}

html[data-pt-theme="dark"] .widget-header .pt-rm-proj a,
html[data-pt-theme="dark"] .pt-rm-progress-label,
html[data-pt-theme="dark"] .pt-rm-handler,
html[data-pt-theme="dark"] .pt-rm-handler a,
html[data-pt-theme="dark"] .pt-rm-empty {
	color: var(--ptd-text-2) !important;
}

html[data-pt-theme="dark"] .pt-roadmap .widget-toolbar.pt-rm-pct,
html[data-pt-theme="dark"] .pt-rm-count,
html[data-pt-theme="dark"] body.pt-myview .widget-header .badge {
	background: var(--ptd-green-bg) !important;
	border-color: #2c4a38 !important;
	color: var(--ptd-green-fg) !important;
}

html[data-pt-theme="dark"] body.pt-myview .widget-header .widget-title a {
	color: var(--ptd-text);
}

html[data-pt-theme="dark"] .pt-rm-meta {
	background: var(--ptd-soft) !important;
	border-bottom-color: var(--ptd-divider) !important;
}

html[data-pt-theme="dark"] .pt-rm-chip,
html[data-pt-theme="dark"] .pt-rm-cat {
	background: var(--ptd-raised) !important;
	border-color: var(--ptd-border-strong) !important;
	color: var(--ptd-text-2) !important;
}

html[data-pt-theme="dark"] .pt-rm-chip .fa {
	color: var(--ptd-muted);
}

html[data-pt-theme="dark"] .pt-rm-id a {
	color: var(--ptd-red);
}

html[data-pt-theme="dark"] .pt-rm-desc {
	background: var(--ptd-blue-bg) !important;
	border-left-color: var(--ptd-blue-fg) !important;
	color: var(--ptd-text) !important;
}

html[data-pt-theme="dark"] .pt-roadmap ul.roadmap > li.pt-rm-item,
html[data-pt-theme="dark"] .pt-roadmap ul.changelog > li.pt-rm-item {
	border-color: var(--ptd-divider) !important;
}

html[data-pt-theme="dark"] .pt-roadmap ul.roadmap > li.pt-rm-item:hover,
html[data-pt-theme="dark"] .pt-roadmap ul.changelog > li.pt-rm-item:hover {
	background: var(--ptd-soft) !important;
}

/* Pastel durum pill'i acik kalir, metni koyu */
html[data-pt-theme="dark"] .pt-rm-status {
	color: #25333b !important;
	filter: saturate(0.9) brightness(0.95);
}

html[data-pt-theme="dark"] .pt-rm-resolved .pt-rm-summary {
	color: var(--ptd-muted) !important;
}

html[data-pt-theme="dark"] .pt-rm-empty {
	background: var(--ptd-surface) !important;
	border-color: var(--ptd-border-strong) !important;
}

html[data-pt-theme="dark"] .pt-rm-empty .pt-rm-empty-icon {
	color: var(--ptd-border-strong);
}

/* Toggle anahtar + chip girisi */
html[data-pt-theme="dark"] .pt-switch .pt-switch-slider {
	background: var(--ptd-border-strong);
}

html[data-pt-theme="dark"] .pt-switch input:checked + .pt-switch-slider {
	background: #00718f;
}

html[data-pt-theme="dark"] .pt-chips {
	background: var(--ptd-inset);
	border-color: var(--ptd-border-strong);
}

html[data-pt-theme="dark"] .pt-chip {
	background: var(--ptd-raised);
	border-color: var(--ptd-border-strong);
	color: var(--ptd-text);
}

html[data-pt-theme="dark"] .pt-chip-x {
	color: var(--ptd-muted);
}

html[data-pt-theme="dark"] .pt-chip-x:hover {
	color: var(--ptd-red);
}

html[data-pt-theme="dark"] .pt-chip-add {
	color: var(--ptd-brand-strong);
}

/* ============================================================
 * SERVICERATING YONETIM PANELLERI (.sr-*)
 * rating-card.css acik tema degerlerinin koyu esleri
 * ============================================================ */
html[data-pt-theme="dark"] .sr-panel,
html[data-pt-theme="dark"] .sr-rate-card,
html[data-pt-theme="dark"] .sr-stat-card {
	background: var(--ptd-surface) !important;
	border-color: var(--ptd-border) !important;
	color: var(--ptd-text);
}

html[data-pt-theme="dark"] .sr-panel-header {
	background: var(--ptd-raised) !important;
	border-color: var(--ptd-border) !important;
}

html[data-pt-theme="dark"] .sr-panel-title,
html[data-pt-theme="dark"] .sr-manage-title,
html[data-pt-theme="dark"] .sr-rate-title,
html[data-pt-theme="dark"] .sr-settings-label {
	color: var(--ptd-text) !important;
}

html[data-pt-theme="dark"] .sr-panel-footer,
html[data-pt-theme="dark"] .sr-filter-bar,
html[data-pt-theme="dark"] .sr-save-bar {
	background: var(--ptd-soft) !important;
	border-color: var(--ptd-border) !important;
}

html[data-pt-theme="dark"] .sr-settings-help,
html[data-pt-theme="dark"] .sr-rate-intro {
	color: var(--ptd-muted) !important;
}

html[data-pt-theme="dark"] .sr-table td,
html[data-pt-theme="dark"] .sr-table th {
	border-color: var(--ptd-divider) !important;
	color: var(--ptd-text);
}

html[data-pt-theme="dark"] .sr-table tbody tr:hover td {
	background: var(--ptd-hover);
}

html[data-pt-theme="dark"] .sr-cat,
html[data-pt-theme="dark"] .sr-candidate-item,
html[data-pt-theme="dark"] .sr-selected-item {
	background: var(--ptd-raised) !important;
	border-color: var(--ptd-border-strong) !important;
	color: var(--ptd-text-2) !important;
}

html[data-pt-theme="dark"] .sr-tab {
	background: var(--ptd-raised);
	border-color: var(--ptd-border-strong);
	color: var(--ptd-text-2);
}

html[data-pt-theme="dark"] .sr-tab.active,
html[data-pt-theme="dark"] .sr-tab-active {
	background: #00718f !important;
	border-color: #00718f !important;
	color: #ffffff !important;
}

html[data-pt-theme="dark"] .sr-rate-offer {
	background: var(--ptd-blue-bg) !important;
	color: var(--ptd-text);
}

/* Pastel pill/puan kutulari acik zeminli kalir; metin koyu */
html[data-pt-theme="dark"] .sr-pill,
html[data-pt-theme="dark"] .pt-rm-score-option {
	filter: saturate(0.9) brightness(0.95);
}

/* ---------- Tema bilesenleri (eski secilerle uyum) ---------- */
html[data-pt-theme="dark"] .pt-note-meta,
html[data-pt-theme="dark"] .pt-section-toggle,
html[data-pt-theme="dark"] .pt-profile-toggle {
	color: var(--ptd-text-2);
}

html[data-pt-theme="dark"] .pt-pill,
html[data-pt-theme="dark"] a.tag,
html[data-pt-theme="dark"] span.tag {
	filter: saturate(0.9) brightness(0.95);
}

/* ---------- Tema dugmesi ---------- */
.pt-theme-toggle {
	position: fixed;
	right: 16px;
	bottom: 16px;
	z-index: 1050;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid #c9d2da;
	background: #ffffff;
	color: #4a575e;
	font-size: 17px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

html[data-pt-theme="dark"] .pt-theme-toggle {
	background: #212b37;
	border-color: #3a4a5c;
	color: #ffd866;
}

@media print {
	.pt-theme-toggle {
		display: none;
	}
}
