/* =============================================
   Bestepe Zimmet — Custom CSS
   Tum ozellestirmeler buradan yonetilir
   ============================================= */

/* ============================================================
   BOXICONS @font-face — fallback (vendor/fonts/boxicons.css yuklenmez/MIME
   reddedilirse ikon kaybi olmasin diye ikinci kaynak).
   custom.css /assets/css/ icinde oldugu icin "../vendor/fonts/..." =
   /assets/vendor/fonts/.
   ============================================================ */
@font-face {
    font-family: "boxicons";
    font-weight: normal;
    font-style: normal;
    src: url("../vendor/fonts/boxicons/boxicons.eot");
    src: url("../vendor/fonts/boxicons/boxicons.eot") format("embedded-opentype"),
         url("../vendor/fonts/boxicons/boxicons.woff2") format("woff2"),
         url("../vendor/fonts/boxicons/boxicons.woff") format("woff"),
         url("../vendor/fonts/boxicons/boxicons.ttf") format("truetype"),
         url("../vendor/fonts/boxicons/boxicons.svg?#boxicons") format("svg");
    font-display: swap;
}

/* ============================================================
   SAYFA KAYMA ONLEME — scrollbar her zaman gozuksun, content kaymasin
   (kisa sayfada scrollbar yok -> uzun yuklenince geliyor -> content 17px sola kayiyor)
   ============================================================ */
html { overflow-y: scroll; scrollbar-gutter: stable; }

/* ============================================================
   GLOBAL FONT — Montserrat (sadece metin elemanlari).
   ! `*` veya `*::before/::after` KULLANMA — boxicons (.bx) ikonlari
   :before pseudo'da glyph basar, font-family'si "boxicons" olmak ZORUNDA.
   `*::before { font-family: ... }` ezerse ikonlar bos kutu cikar.
   ============================================================ */
body, input, button, select, textarea, .btn, .form-control, .form-select,
.table, .card, .modal, .dropdown-menu, .badge, .nav-link, .menu-link,
.alert, .tooltip, .swal2-popup, .toast, .select2-container, .dataTable,
.datatable, h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif !important;
}

/* ============================================================
   GLOBAL FONT SIZE — sistem geneli kucultme
   ============================================================ */
html { font-size: 14px; }
body { font-size: 0.8125rem; }  /* 13px */
.card-body, .card-header { font-size: 0.8125rem; }
.table { font-size: 0.8125rem; }
.form-control, .form-select { font-size: 0.8125rem; }
.btn { font-size: 0.8125rem; }
h1, .h1 { font-size: 1.5rem; }
h2, .h2 { font-size: 1.25rem; }
h3, .h3 { font-size: 1.125rem; }
h4, .h4 { font-size: 1rem; }
h5, .h5 { font-size: 0.9375rem; }
h6, .h6 { font-size: 0.875rem; }
.modal-title { font-size: 1rem; }
.dropdown-menu { font-size: 0.8125rem; }

/* ============================================================
   SIDEBAR — Vuexy template default kullanilir (bestepebloggers ile ayni).
   Buraya hicbir override yazma; sidebar genisligi/padding/aktif renkler
   vendor/css/core.css + theme-bordered.css tarafindan kontrol edilir.
   Override eklenirse sidebar collapse + responsive davranis bozulur.
   ============================================================ */

/* ============================================================
   ICON BUTONLAR — islem-btn daha belirgin
   ============================================================ */
.btn.btn-sm.btn-icon.islem-btn {
    width: 34px !important;
    height: 34px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1rem !important;
}
.btn.btn-sm.btn-icon.islem-btn i {
    font-size: 1.15rem;
    line-height: 1;
}
/* Navbar dropdown icon butonlar */
.layout-navbar .nav-link i {
    font-size: 1.4rem;
}
.layout-navbar .nav-item .badge-notifications {
    font-size: 0.65rem;
    padding: 2px 5px;
}

/* ============================================================
   DROPDOWN (bildirim / profil) — sidebar kurallari sizmasin
   ============================================================ */
.layout-navbar .dropdown-menu {
    background: #fff;
    color: #495057;
}
.layout-navbar .dropdown-menu a,
.layout-navbar .dropdown-menu .dropdown-item,
.layout-navbar .dropdown-menu h5,
.layout-navbar .dropdown-menu h6,
.layout-navbar .dropdown-menu .small,
.layout-navbar .dropdown-menu span {
    color: #495057;
}
.layout-navbar .dropdown-menu .text-muted {
    color: #6c757d !important;
}
.layout-navbar .dropdown-notifications-item.bildirim-okunmamis {
    background: rgba(210, 160, 66, 0.08);
}

/* ============================================================
   BADGE — bg-label-* renkleri koru (font-size override etmesin)
   ============================================================ */
.badge {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 0.7rem !important;
    font-weight: 500;
    padding: 0.35em 0.65em;
}
/* Soft label renkler — demo.css'ten override */
.bg-label-primary   { background-color: rgba(105, 108, 255, 0.16) !important; color: #696cff !important; }
.bg-label-secondary { background-color: rgba(133, 146, 163, 0.16) !important; color: #8592a3 !important; }
.bg-label-success   { background-color: rgba(113, 221, 55, 0.16) !important;  color: #71dd37 !important; }
.bg-label-info      { background-color: rgba(3, 195, 236, 0.16) !important;   color: #03c3ec !important; }
.bg-label-warning   { background-color: rgba(255, 171, 0, 0.16) !important;   color: #ffab00 !important; }
.bg-label-danger    { background-color: rgba(255, 62, 29, 0.16) !important;   color: #ff3e1d !important; }
.bg-label-dark      { background-color: rgba(35, 60, 77, 0.16) !important;    color: #233c4d !important; }

/* Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}
.page-loader.hidden {
    opacity: 0;
    pointer-events: none;
}
.page-loader-inner {
    text-align: center;
}
.page-loader-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 12px;
    border: 3px solid #e9ecef;
    border-top-color: #5a8dee;
    border-radius: 50%;
    animation: loaderSpin 0.8s linear infinite;
}
.page-loader-metin {
    font-size: 0.85rem;
    color: #697a8d;
    letter-spacing: 0.5px;
}
@keyframes loaderSpin {
    to { transform: rotate(360deg); }
}

/* =============================================
   Zimmet / Envanter / Iade Durum Badge Siniflari
   func.php zimmetDurumMetni/envanterDurumMetni/iadeDurumMetni ile eslesir
   Renk mantigi: success / info / warning / danger / secondary
   ============================================= */

.durum-badge {
    display: inline-block;
    padding: 0.65em 0.65em;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1;
    border-radius: 0.25rem;
}

/* Zimmet durumu (zimmetler.durum) */
.zimmet-aktif   { background-color: rgba(113, 221, 55, 0.16); color: #71dd37; }
.zimmet-iade    { background-color: rgba(38, 143, 255, 0.16); color: #268fff; }
.zimmet-devir   { background-color: rgba(105, 108, 114, 0.16); color: #696c72; }
.zimmet-kayip   { background-color: rgba(255, 62, 29, 0.16); color: #ff3e1d; }
.zimmet-hurda   { background-color: rgba(133, 146, 163, 0.16); color: #8592a3; }
.zimmet-depoda  { background-color: rgba(253, 172, 65, 0.16); color: #fdac41; }

/* Envanter durumu (envanter.durum) */
.envanter-aktif   { background-color: rgba(113, 221, 55, 0.16); color: #71dd37; }
.envanter-depo    { background-color: rgba(38, 143, 255, 0.16); color: #268fff; }
.envanter-bakim   { background-color: rgba(253, 172, 65, 0.16); color: #fdac41; }
.envanter-arizali { background-color: rgba(255, 62, 29, 0.16); color: #ff3e1d; }
.envanter-hurda   { background-color: rgba(133, 146, 163, 0.16); color: #8592a3; }
.envanter-kayip   { background-color: rgba(255, 62, 29, 0.16); color: #ff3e1d; }
.envanter-satildi { background-color: rgba(105, 108, 114, 0.16); color: #696c72; }
.envanter-imha    { background-color: rgba(133, 146, 163, 0.16); color: #8592a3; }

/* Iade durumu (zimmetler.iade_durumu) */
.iade-saglam  { background-color: rgba(113, 221, 55, 0.16); color: #71dd37; }
.iade-hasarli { background-color: rgba(253, 172, 65, 0.16); color: #fdac41; }
.iade-eksik   { background-color: rgba(255, 62, 29, 0.16); color: #ff3e1d; }
.iade-kayip   { background-color: rgba(255, 62, 29, 0.16); color: #ff3e1d; }

/* Kullanici mevcut durumu (kullanicilar.mevcut_durum) */
.mevcut-aktif        { background-color: rgba(113, 221, 55, 0.16); color: #71dd37; }
.mevcut-izinli       { background-color: rgba(38, 143, 255, 0.16); color: #268fff; }
.mevcut-raporlu      { background-color: rgba(253, 172, 65, 0.16); color: #fdac41; }
.mevcut-askerlik     { background-color: rgba(38, 143, 255, 0.16); color: #268fff; }
.mevcut-dogum-izni   { background-color: rgba(38, 143, 255, 0.16); color: #268fff; }
.mevcut-gecici-gorev { background-color: rgba(253, 172, 65, 0.16); color: #fdac41; }
.mevcut-ayrildi      { background-color: rgba(105, 108, 114, 0.16); color: #696c72; }
.mevcut-emekli       { background-color: rgba(105, 108, 114, 0.16); color: #696c72; }
.mevcut-vefat        { background-color: rgba(133, 146, 163, 0.16); color: #8592a3; }

/* =============================================
   DataTable & Table Overrides (Editorial Minimalism)
   ============================================= */

/* Kart ve Bounding kutularin etrafindaki cerceveyi ve golgeyi yikiyoruz */
.dt-kart {
    border: none;
    box-shadow: none !important;
    background: transparent;
}

/* Genel Tablo Stili - Genis ve Nefes Alan */
.table {
    border-collapse: separate;
    border-spacing: 0;
}
.table > :not(caption) > * > * {
    background-color: var(--dm-hover-bg) !important;
    border-bottom: 1px solid #e5e7eb !important;
    padding: 0.75rem 1rem !important; /* Kullanici talebiyle daraltildi */
    vertical-align: middle;
}
/* Ust Sütun Basliklari (Micro-Typography) */
.table > thead > tr > th {
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.2px !important;
    color: #9ca3af !important;
    border-bottom: 2px solid #e5e7eb !important;
    padding-bottom: 0.75rem !important;
}

/* DataTables Ozel Elemanlar (Search, Length, Pagination) */
div.dataTables_wrapper div.dataTables_filter input {
    border: none;
    border-bottom: 1px solid #d1d5db;
    border-radius: 0;
    padding: 0.5rem 0;
    box-shadow: none;
    background: transparent;
    transition: border-color 0.2s;
}
div.dataTables_wrapper div.dataTables_filter input:focus {
    border-bottom-color: #39035c;
    outline: none;
}
div.dataTables_wrapper div.dataTables_length select {
    border: none;
    border-bottom: 1px solid #d1d5db;
    border-radius: 0;
    padding: 0.5rem 2rem 0.5rem 0;
    background-color: transparent;
    box-shadow: none;
}
div.dataTables_wrapper div.dataTables_paginate ul.pagination {
    margin-top: 2rem;
}
.page-item.active .page-link {
    background-color: #39035c !important;
    border-color: #39035c !important;
    color: #fff !important;
    border-radius: 4px;
}
.page-link {
    color: #6b7280;
    border: none;
    background: transparent;
    font-weight: 500;
}
.page-link:hover {
    color: #39035c;
    background: #f3f4f6;
    border-radius: 4px;
}

/* Metinler ve Hucre Ici */
.dt-ad {
    font-weight: 600;
    color: #111827;
    font-size: 0.95rem;
}
.bos-hucre {
    color: #9ca3af;
    font-style: italic;
    font-size: 0.85rem;
}

/* Action Butonlari — sadece ikon (border yok, hover'da soft action-renkli zemin) */
.islem-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    padding: 0;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
    vertical-align: middle;
}

/* Default + tum :hover/:focus/:active state'lerinde border + box-shadow yok,
   arka plan saydam. Bootstrap/Vuexy specificity'sini ezmek icin .btn ile chain. */
.btn.islem-btn,
.btn.islem-btn:hover,
.btn.islem-btn:focus,
.btn.islem-btn:active,
.btn.islem-btn:focus-visible {
    border: 0 !important;
    box-shadow: none !important;
}
.btn.islem-btn { background-color: transparent !important; }

/* Hover: icon rengi default ile ayni kalsin, arka plan action rengi %10 opacity */
.btn.islem-btn.btn-outline-primary   { color: #696cff !important; }
.btn.islem-btn.btn-outline-primary:hover   { color: #696cff !important; background-color: rgba(105, 108, 255, 0.10) !important; }

.btn.islem-btn.btn-outline-secondary { color: #8592a3 !important; }
.btn.islem-btn.btn-outline-secondary:hover { color: #8592a3 !important; background-color: rgba(133, 146, 163, 0.10) !important; }

.btn.islem-btn.btn-outline-success   { color: #71dd37 !important; }
.btn.islem-btn.btn-outline-success:hover   { color: #71dd37 !important; background-color: rgba(113, 221, 55, 0.10) !important; }

.btn.islem-btn.btn-outline-info      { color: #03c3ec !important; }
.btn.islem-btn.btn-outline-info:hover      { color: #03c3ec !important; background-color: rgba(3, 195, 236, 0.10) !important; }

.btn.islem-btn.btn-outline-warning   { color: #ffab00 !important; }
.btn.islem-btn.btn-outline-warning:hover   { color: #ffab00 !important; background-color: rgba(255, 171, 0, 0.10) !important; }

.btn.islem-btn.btn-outline-danger    { color: #ff3e1d !important; }
.btn.islem-btn.btn-outline-danger:hover    { color: #ff3e1d !important; background-color: rgba(255, 62, 29, 0.10) !important; }

.btn.islem-btn.btn-outline-dark      { color: #233c4d !important; }
.btn.islem-btn.btn-outline-dark:hover      { color: #233c4d !important; background-color: rgba(35, 60, 77, 0.10) !important; }

/* Geriye donuk — btn-outline-* class'i olmayan callsite'lar icin gri */
.islem-btn:not([class*="btn-outline-"]) { color: #6b7280; }
.islem-btn:not([class*="btn-outline-"]):hover { background-color: rgba(0, 0, 0, 0.05) !important; }
.islem-btn-tehlike { color: #ef4444 !important; }

/* DataTable islem sutunu — icindeki .islem-btn olan td'leri otomatik
   genisletip butonlari hep yan yana tutar (hic alt satira inmez).
   Sayfa sayfa inline <th style="width:..."> duzenlemeye gerek yok. */
td:has(> .islem-btn) {
    white-space: nowrap;
    min-width: 140px;
}

/* DataTable Badge & Status - Nötr / Rafine */
.dt-badge {
    display: inline-block;
    padding: 0.25em 0.7em;
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 40px; /* Yuvarlak hatli pills */
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #4b5563;
}
/* İlla renk gerekiyorsa (danger vs), cok pastel ve border'li kullanilacak */
.dt-badge-info, .dt-badge-warning, .dt-badge-success, .dt-badge-danger { 
    background: #ffffff;
}
.dt-badge-info { border-color: #bfdbfe; color: #1d4ed8; }
.dt-badge-warning { border-color: #fde047; color: #a16207; }
.dt-badge-success { border-color: #bbf7d0; color: #15803d; }
.dt-badge-danger { border-color: #fecaca; color: #b91c1c; }

/* =============================================
   Dashboard ozet metrik kartlari — yatay tek satir kompakt
   (3 panel index.php > .ozet-kartlar)
   ============================================= */
.ozet-kartlar .card-body {
    padding: 0.85rem 1rem;
}
.ozet-kartlar .card-body > .d-flex.align-items-center.mb-2 {
    margin-bottom: 0 !important;
    flex: 1;
    min-width: 0; /* label uzunsa taşmasın */
}
.ozet-kartlar .card-body > .d-flex small {
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ozet-kartlar .card-body > h4 {
    margin-bottom: 0 !important;
    margin-left: 0.75rem;
    font-size: 1.4rem;
    font-weight: 700;
    flex-shrink: 0;
}
.ozet-kartlar .card-body {
    display: flex;
    align-items: center;
}

/* =============================================
   Sayfa Baslik Paterni
   ============================================= */

.dt-sayfa-baslik {
    display: flex;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}
.baslik-accent {
    width: 3px;
    height: 32px;
    border-radius: 0;
    /* Gradyan silindi, tek, keskin renk. Kullanici istegi uzere altin/bronz ikincil renk */
    background: #ba9454;
    margin-right: 16px;
}
.baslik-icerik {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.baslik-breadcrumb {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #9ca3af;
    margin-bottom: 4px;
    font-weight: 600;
}
.baslik-metin {
    font-size: 1.5rem;
    font-weight: 700;
    color: #39035c;
    letter-spacing: -0.5px;
    margin-top: -0.7rem;
}

/* =============================================
   Durum Aktif/Pasif (Nötr & Ince Çerçeveli)
   ============================================= */

.durum-aktif {
    display: inline-flex;
    align-items: center;
    padding: 0.65em 0.65em;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    background-color: transparent;
    color: #10b981;
    border: 1px solid #10b981;
}
.durum-pasif {
    display: inline-flex;
    align-items: center;
    padding: 0.65em 0.65em;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    background-color: transparent;
    color: #ef4444;
    border: 1px solid #ef4444;
}

/* =============================================
   Form Kart & Filtre Kart - Sifir Golge
   ============================================= */

.form-kart, .filtre-kart {
    border: 1px solid #e5e7eb;
    box-shadow: none;
    border-radius: 8px; /* Tam keskin istenirse 0 yapilabilir */
    background: #fff;
    margin-bottom: 1.5rem;
}

/* =============================================
   Custom Tooltip
   ============================================= */

[data-custom-tooltip] {
    position: relative;
    cursor: pointer;
}
[data-custom-tooltip]::after {
    content: attr(data-custom-tooltip);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 10px;
    border-radius: 4px;
    background: #384551;
    color: #fff;
    font-size: 0.72rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1000;
}
[data-custom-tooltip-pos="bottom"]::after {
    bottom: auto;
    top: calc(100% + 6px);
}
[data-custom-tooltip]:hover::after {
    opacity: 1;
}

/* =============================================
   CKEditor Icerik Gorsel (Responsive)
   ============================================= */

.icerik-gorsel {
    text-align: center;
    margin: 16px 0;
}
.icerik-gorsel img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

/* =============================================
   Dashboard — Istatistik Kartlari (Boxed)
   ============================================= */

.dash-istatistik-kart {
    border: none;
    box-shadow: 0 2px 6px rgba(67, 89, 113, 0.08);
    border-left: 4px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}
.dash-istatistik-kart:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(67, 89, 113, 0.15);
}
.dash-istatistik-kart .card-body {
    padding: 1.1rem 1rem;
}
.dash-istatistik-baslik {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #a1acb8;
    margin-bottom: 0.35rem;
}
.dash-istatistik-sayi {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}
.dash-istatistik-alt {
    font-size: 0.7rem;
    color: #a1acb8;
    margin-top: 0.25rem;
}
.dash-istatistik-ikon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

/* Renk Varyantlari */
.dash-kart-primary { border-left-color: #5a8dee; }
.dash-kart-primary .dash-istatistik-sayi { color: #5a8dee; }
.dash-kart-primary .dash-istatistik-ikon { background: rgba(90, 141, 238, 0.12); color: #5a8dee; }

.dash-kart-success { border-left-color: #28c76f; }
.dash-kart-success .dash-istatistik-sayi { color: #28c76f; }
.dash-kart-success .dash-istatistik-ikon { background: rgba(40, 199, 111, 0.12); color: #28c76f; }

.dash-kart-warning { border-left-color: #ff9f43; }
.dash-kart-warning .dash-istatistik-sayi { color: #ff9f43; }
.dash-kart-warning .dash-istatistik-ikon { background: rgba(255, 159, 67, 0.12); color: #ff9f43; }

.dash-kart-info { border-left-color: #03c3ec; }
.dash-kart-info .dash-istatistik-sayi { color: #03c3ec; }
.dash-kart-info .dash-istatistik-ikon { background: rgba(3, 195, 236, 0.12); color: #03c3ec; }

.dash-kart-danger { border-left-color: #ea5455; }
.dash-kart-danger .dash-istatistik-sayi { color: #ea5455; }
.dash-kart-danger .dash-istatistik-ikon { background: rgba(234, 84, 85, 0.12); color: #ea5455; }

.dash-kart-secondary { border-left-color: #8592a3; }
.dash-kart-secondary .dash-istatistik-sayi { color: #8592a3; }
.dash-kart-secondary .dash-istatistik-ikon { background: rgba(133, 146, 163, 0.12); color: #8592a3; }

/* =============================================
   Dashboard — Hizli Erisim
   ============================================= */

.hizli-erisim-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(67, 89, 113, 0.08);
    text-decoration: none;
    transition: all 0.2s ease;
    background: #fff;
}
.hizli-erisim-link:hover {
    border-color: rgba(90, 141, 238, 0.2);
    background: rgba(90, 141, 238, 0.03);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(67, 89, 113, 0.08);
}
.hizli-erisim-ikon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    background: rgba(90, 141, 238, 0.08);
}
.hizli-erisim-ikon.he-success { background: rgba(40, 199, 111, 0.08); color: #28c76f; }
.hizli-erisim-ikon.he-warning { background: rgba(255, 159, 67, 0.08); color: #ff9f43; }
.hizli-erisim-ikon.he-info { background: rgba(3, 195, 236, 0.08); color: #03c3ec; }
.hizli-erisim-ikon.he-danger { background: rgba(234, 84, 85, 0.08); color: #ea5455; }
.hizli-erisim-ikon.he-primary { background: rgba(90, 141, 238, 0.08); color: #5a8dee; }
.hizli-erisim-baslik {
    font-size: 0.8rem;
    font-weight: 600;
    color: #566a7f;
}
.hizli-erisim-aciklama {
    font-size: 0.68rem;
    color: #a1acb8;
}

/* =============================================
   Dashboard — Grafik Karti
   ============================================= */

.dash-grafik-kart {
    border: none;
    box-shadow: 0 2px 6px rgba(67, 89, 113, 0.08);
}
.dash-grafik-kart .card-header {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid rgba(67, 89, 113, 0.06);
}
.dash-grafik-kart .card-header h6 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #566a7f;
    margin: 0;
}
.dash-grafik-kart .card-body {
    padding: 1rem;
}

/* Bolum Basligi */
.dash-bolum-baslik {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #a1acb8;
    margin-bottom: 0.75rem;
    padding-left: 2px;
}

/* =============================================
   Buton ve Etkilesim Overrides (Mavi Rengi Engellemek Icin)
   ============================================= */

.btn-primary {
    background-color: #39035c !important;
    border-color: #39035c !important;
    color: #fff !important;
}

.btn-primary:hover, 
.btn-primary:focus, 
.btn-primary:active, 
.btn-primary.active {
    background-color: #270240 !important; /* Daha koyu mor */
    border-color: #270240 !important;
    color: #fff !important;
    box-shadow: 0 0 0 0.25rem rgba(57, 3, 92, 0.25) !important;
}

.btn-outline-primary {
    color: #39035c !important;
    border-color: #39035c !important;
}

.btn-outline-primary:hover, 
.btn-outline-primary:focus, 
.btn-outline-primary:active, 
.btn-outline-primary.active {
    background-color: #39035c !important;
    color: #fff !important;
    box-shadow: 0 0 0 0.25rem rgba(57, 3, 92, 0.25) !important;
}

/* Tablo veya form icindeki diger link tiklama durumlari icin mavi parlamayi onleme */
a {
    transition: color 0.2s ease;
}
a:hover {
    color: #ba9454;
}

/* Form input focus glow engelleme (Mavi yerine mor glow) */
.form-control:focus, .form-select:focus {
    border-color: #39035c;
    box-shadow: 0 0 0 0.2rem rgba(57, 3, 92, 0.25);
}

/* =============================================
   Durum Gecmisi Timeline
   ============================================= */

.durum-gecmis-satir {
    position: relative;
    padding-left: 24px;
    padding-bottom: 16px;
    margin-left: 6px;
    border-left: 2px solid #e5e7eb;
}

.durum-gecmis-satir:last-child {
    border-left-color: transparent;
    padding-bottom: 0;
}

.durum-gecmis-satir.aktif {
    border-left-color: #39035c;
}

.durum-gecmis-nokta {
    position: absolute;
    left: -6px;
    top: 2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d1d5db;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #e5e7eb;
    transition: all 0.3s ease;
}

.durum-gecmis-nokta.aktif {
    background: #39035c;
    box-shadow: 0 0 0 2px #39035c, 0 0 0 5px rgba(57, 3, 92, 0.15);
    width: 12px;
    height: 12px;
    left: -7px;
    top: 1px;
}

.durum-gecmis-icerik {
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.durum-gecmis-satir.aktif .durum-gecmis-icerik {
    background: #f3e8ff;
    border: 1px solid rgba(57, 3, 92, 0.1);
}

.durum-gecmis-aciklama {
    margin-top: 6px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.8);
    border-left: 3px solid #39035c;
    border-radius: 0 4px 4px 0;
    font-size: 0.78rem;
    color: #4b5563;
    line-height: 1.4;
}

/* =============================================
   DARK MODE — Tum Custom Bilesenlerin Koyu Tema Uyumu
   Frest: html.dark-style sinifi ile tetiklenir
   ============================================= */

/* ---------- Degiskenler ---------- */
.dark-style {
    --dm-card-bg: #2b2c40;
    --dm-card-border: #3b3c51;
    --dm-body-bg: #232333;
    --dm-text: #d0d2da;
    --dm-text-muted: #7c7e8c;
    --dm-input-bg: #2b2c40;
    --dm-input-border: #3b3c51;
    --dm-hover-bg: #323349;
    --dm-accent: #ba9454;
    --dm-purple: #a78bfa;
}

/* ---------- Page Loader ---------- */
.dark-style .page-loader {
    background: var(--dm-body-bg);
}
.dark-style .page-loader-spinner {
    border-color: var(--dm-card-border);
    border-top-color: var(--dm-accent);
}
.dark-style .page-loader-metin {
    color: var(--dm-text-muted);
}

/* ---------- Card, Form Kart, Filtre Kart ---------- */
.dark-style .form-kart,
.dark-style .filtre-kart {
    background: var(--dm-card-bg);
    border-color: var(--dm-card-border);
}
.dark-style .card {
    background-color: var(--dm-card-bg);
    border-color: var(--dm-card-border);
}

/* ---------- Tablolar ---------- */
.dark-style .table > :not(caption) > * > * {
    border-bottom-color: var(--dm-card-border) !important;
    color: var(--dm-text);
}
.dark-style .table > thead > tr > th {
    color: var(--dm-text) !important;
    border-bottom-color: var(--dm-card-border) !important;
}
.dark-style .dt-ad {
    color: var(--dm-text);
}

/* ---------- DataTable Search / Length ---------- */
.dark-style div.dataTables_wrapper div.dataTables_filter input {
    border-bottom-color: var(--dm-card-border);
    color: var(--dm-text);
}
.dark-style div.dataTables_wrapper div.dataTables_filter input:focus {
    border-bottom-color: var(--dm-accent);
}
.dark-style div.dataTables_wrapper div.dataTables_length select {
    border-bottom-color: var(--dm-card-border);
    color: var(--dm-text);
    background-color: transparent;
}
.dark-style div.dataTables_wrapper div.dataTables_info,
.dark-style div.dataTables_wrapper div.dataTables_filter label,
.dark-style div.dataTables_wrapper div.dataTables_length label {
    color: var(--dm-text-muted);
}

/* ---------- Pagination ---------- */
.dark-style .page-link {
    color: var(--dm-text-muted);
    background: transparent;
}
.dark-style .page-link:hover {
    color: var(--dm-accent);
    background: var(--dm-hover-bg);
}

/* ---------- Input / Placeholder ---------- */
.dark-style .form-control,
.dark-style .form-select {
    background-color: var(--dm-input-bg) !important;
    border-color: var(--dm-input-border) !important;
    color: var(--dm-text) !important;
}
.dark-style .form-control:focus,
.dark-style .form-select:focus {
    border-color: var(--dm-accent) !important;
    box-shadow: 0 0 0 0.15rem rgba(167, 139, 250, 0.15) !important;
}
.dark-style .form-control::placeholder {
    color: var(--dm-text) !important;
    opacity: 0.65;
}
.dark-style .form-label {
    color: var(--dm-text);
}

/* ---------- Bilgi Damgalari (detay sayfasi ust bolumu icin) ---------- */
.bilgi-damga {
    display: inline-flex;
    align-items: center;
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
    line-height: 1.3;
}
.bilgi-damga-birincil {
    background: rgba(57, 3, 92, 0.08);
    color: #39035c;
}
.bilgi-damga-tarih {
    background: rgba(186, 148, 84, 0.12);
    color: #8a6d2b;
}
.bilgi-damga-bilgi {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}
.dark-style .bilgi-damga-birincil {
    background: rgba(167, 139, 250, 0.15);
    color: var(--dm-accent);
}
.dark-style .bilgi-damga-tarih {
    background: rgba(186, 148, 84, 0.15);
    color: #d4b06a;
}
.dark-style .bilgi-damga-bilgi {
    background: rgba(96, 165, 250, 0.15);
    color: #60a5fa;
}

/* ---------- Quill Editor ---------- */
.ql-toolbar.ql-snow {
    border-color: #d1d5db !important;
    border-radius: 8px 8px 0 0;
    font-family: inherit;
}
.ql-container.ql-snow {
    border-color: #d1d5db !important;
    border-radius: 0 0 8px 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #374151;
}
.ql-editor {
    min-height: 200px;
}
.ql-editor img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}
.dark-style .ql-toolbar.ql-snow {
    border-color: var(--dm-card-border) !important;
    background: var(--dm-card-bg);
}
.dark-style .ql-container.ql-snow {
    border-color: var(--dm-card-border) !important;
    background: var(--dm-input-bg);
    color: var(--dm-text);
}
.dark-style .ql-toolbar .ql-stroke {
    stroke: var(--dm-text) !important;
}
.dark-style .ql-toolbar .ql-fill {
    fill: var(--dm-text) !important;
}
.dark-style .ql-toolbar .ql-picker-label {
    color: var(--dm-text) !important;
}
.dark-style .ql-editor {
    color: var(--dm-text) !important;
}
.dark-style .ql-editor.ql-blank::before {
    color: var(--dm-text-muted) !important;
}

/* ---------- Select2 ---------- */
/* Modal icinde Select2 dropdown'unun modal icerigi ustune cikmasi icin z-index
   Bootstrap 5 modal z-index: 1055; Select2 dropdown bunu asmalidir. */
.select2-container--open {
    z-index: 10000 !important;
}
/* Bootstrap modal icinde Select2 dropdown duzgun pozisyonlansin */
.modal.show .select2-container {
    z-index: 10000;
}
.select2-container--default .select2-selection--single {
    height: calc(1.5em + 0.5rem + 2px) !important;
    min-height: calc(1.5em + 0.5rem + 2px) !important;
    padding: 0.25rem 0.5rem !important;
    font-size: .875rem !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 1.5 !important;
    padding-left: 0 !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: calc(1.5em + 0.5rem) !important;
}
input[type="file"].form-control-sm {
    padding: 0.2rem 0.5rem !important;
    font-size: .875rem !important;
    line-height: 1.5 !important;
}
.dark-style .select2-container--default .select2-selection--single,
.dark-style .select2-container--default .select2-selection--multiple {
    background-color: var(--dm-input-bg) !important;
    border-color: var(--dm-input-border) !important;
    color: var(--dm-text) !important;
}
.dark-style .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--dm-text) !important;
}
.dark-style .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: var(--dm-text) !important;
}
.dark-style .select2-dropdown {
    background-color: var(--dm-card-bg);
    border-color: var(--dm-card-border);
}
.dark-style .select2-container--default .select2-results__option {
    color: var(--dm-text);
}
.dark-style .select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--dm-hover-bg);
    color: var(--dm-accent);
}
.dark-style .select2-container--default .select2-search--dropdown .select2-search__field {
    background-color: var(--dm-body-bg);
    border-color: var(--dm-card-border);
    color: var(--dm-text);
}

/* ---------- Badge'ler ---------- */
.dark-style .dt-badge {
    background: var(--dm-hover-bg);
    border-color: var(--dm-card-border);
    color: var(--dm-text);
}
.dark-style .dt-badge-info { border-color: #3b82f680; color: #93c5fd; background: rgba(59, 130, 246, 0.12); }
.dark-style .dt-badge-warning { border-color: #f59e0b80; color: #fcd34d; background: rgba(245, 158, 11, 0.12); }
.dark-style .dt-badge-success { border-color: #10b98180; color: #6ee7b7; background: rgba(16, 185, 129, 0.12); }
.dark-style .dt-badge-danger { border-color: #ef444480; color: #fca5a5; background: rgba(239, 68, 68, 0.12); }
.dark-style .dt-badge-dark { border-color: #6b728080; color: #d1d5db; background: rgba(107, 114, 128, 0.12); }

/* ---------- Islem Butonlari ---------- */
.dark-style .islem-btn {
    color: var(--dm-text-muted);
}
.dark-style .islem-btn:hover {
    background: var(--dm-hover-bg);
    color: var(--dm-accent);
    border-color: var(--dm-card-border);
}
.dark-style .islem-btn-tehlike {
    color: #f87171;
}
.dark-style .islem-btn-tehlike:hover {
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.2);
}

/* ---------- Sayfa Baslik ---------- */
.dark-style .dt-sayfa-baslik {
    border-bottom-color: var(--dm-card-border);
}
.dark-style .baslik-metin {
    color: var(--dm-accent);
}
.dark-style .baslik-breadcrumb {
    color: var(--dm-text-muted);
}

/* ---------- Durum Aktif / Pasif ---------- */
.dark-style .durum-aktif {
    color: #6ee7b7;
    border-color: #6ee7b7;
}
.dark-style .durum-pasif {
    color: #fca5a5;
    border-color: #fca5a5;
}

/* ---------- Dashboard Kartlar ---------- */
.dark-style .dash-istatistik-kart {
    background-color: var(--dm-card-bg);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.dark-style .dash-istatistik-kart:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.dark-style .dash-grafik-kart {
    background-color: var(--dm-card-bg);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.dark-style .dash-grafik-kart .card-header {
    border-bottom-color: var(--dm-card-border);
}

/* ---------- Hizli Erisim ---------- */
.dark-style .hizli-erisim-link {
    background: var(--dm-card-bg);
    border-color: var(--dm-card-border);
}
.dark-style .hizli-erisim-link:hover {
    background: var(--dm-hover-bg);
    border-color: rgba(167, 139, 250, 0.2);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}
.dark-style .hizli-erisim-baslik {
    color: var(--dm-text);
}

/* ---------- Durum Gecmisi Timeline ---------- */
.dark-style .durum-gecmis-satir {
    border-left-color: var(--dm-card-border);
}
.dark-style .durum-gecmis-nokta {
    background: var(--dm-text-muted);
    border-color: var(--dm-card-bg);
    box-shadow: 0 0 0 2px var(--dm-card-border);
}
.dark-style .durum-gecmis-icerik {
    background: var(--dm-hover-bg);
}
.dark-style .durum-gecmis-satir.aktif .durum-gecmis-icerik {
    background: rgba(167, 139, 250, 0.08);
    border-color: rgba(167, 139, 250, 0.15);
}
.dark-style .durum-gecmis-aciklama {
    background: rgba(43, 44, 64, 0.8);
    color: var(--dm-text-muted);
    border-left-color: var(--dm-accent);
}

/* ---------- Modal ---------- */
.dark-style .modal-content {
    background-color: var(--dm-card-bg);
    border-color: var(--dm-card-border);
}
.dark-style .modal-header {
    border-bottom-color: var(--dm-card-border);
}
.dark-style .modal-footer {
    border-top-color: var(--dm-card-border);
}
.dark-style .modal-title {
    color: var(--dm-text);
}
.dark-style .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* ---------- Custom Tooltip ---------- */
.dark-style [data-custom-tooltip]::after {
    background: var(--dm-text);
    color: var(--dm-body-bg);
}

/* ---------- SweetAlert2 ---------- */
.dark-style .swal2-popup {
    background: var(--dm-card-bg) !important;
    color: var(--dm-text) !important;
}
.dark-style .swal2-title {
    color: var(--dm-text) !important;
}
.dark-style .swal2-html-container {
    color: var(--dm-text) !important;
}

/* ---------- Satir Ici Hard-Coded Stil Overridelari ---------- */
.dark-style [style*="color:#39035c"],
.dark-style [style*="color: #39035c"] {
    color: var(--dm-accent) !important;
}
.dark-style [style*="background:#39035c"],
.dark-style [style*="background: #39035c"],
.dark-style [style*="background-color:#39035c"],
.dark-style [style*="background-color: #39035c"] {
    background-color: var(--dm-accent) !important;
    border-color: var(--dm-accent) !important;
    color: #fff !important; /* Gold arkaplan uzerinde beyaz */
}
.dark-style [style*="border:1px solid #e5e7eb"],
.dark-style [style*="border: 1px solid #e5e7eb"] {
    border-color: var(--dm-card-border) !important;
    color: var(--dm-text) !important;
}
.dark-style .btn-light {
    background-color: var(--dm-hover-bg) !important;
    border-color: var(--dm-card-border) !important;
    color: var(--dm-text) !important;
}
.dark-style .btn-light:hover {
    background-color: var(--dm-purple) !important;
    border-color: var(--dm-purple) !important;
    color: #fff !important;
}




/* =============================================
   AÇIK MOD GOZ ALICI UYARLAMALAR (LIGHT MODE)
   ============================================= */
html:not(.dark-style) body,
html:not(.dark-style) .layout-wrapper,
html:not(.dark-style) .layout-page,
html:not(.dark-style) .content-wrapper,
html:not(.dark-style) .container-xxl,
html:not(.dark-style) .container-fluid {
    background-color: #ffffff !important;
}

html:not(.dark-style) .form-kart,
html:not(.dark-style) .filtre-kart,
html:not(.dark-style) .card {
    background-color: #ffffff !important;
    border: 1px solid rgba(186, 148, 84, 0.15) !important;
    box-shadow: 0 6px 16px -4px rgba(186, 148, 84, 0.08), 0 3px 6px -3px rgba(0, 0, 0, 0.04) !important; 
    border-radius: 8px !important;
    transition: box-shadow 0.25s ease !important;
}

html:not(.dark-style) .form-kart:hover,
html:not(.dark-style) .filtre-kart:hover,
html:not(.dark-style) .card:hover {
    box-shadow: 0 10px 20px -5px rgba(186, 148, 84, 0.15), 0 6px 12px -5px rgba(0, 0, 0, 0.06) !important;
}

/* DataTable filtre label + select */
.dt-filtre-label {
    color: #39035c;
    font-size: 0.8rem;
    margin-bottom: 0;
}

.dt-filtre-select {
    min-width: 200px;
    border: none;
    border-bottom: 1px solid #d1d5db;
    border-radius: 0;
    box-shadow: none;
    padding-left: 0;
    cursor: pointer;
}

.dark-style .dt-filtre-label {
    color: var(--dm-text);
}

.dark-style .dt-filtre-select {
    background-color: transparent;
    border-bottom-color: var(--dm-input-border);
    color: var(--dm-text);
}

/* Avatar: farkli en-boy oranli profil resimlerini bozulmadan kirparak goster */
.avatar img {
    object-fit: cover;
    object-position: center;
}

/* =========================================================
   Standalone sayfalar (giris ekrani + atama-eksik uyarisi)
   ========================================================= */
.standalone-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    padding: 20px;
}
.standalone-wrapper.bg-giris {
    background: linear-gradient(135deg, #f8f4ed 0%, #efe3d0 100%);
}
.standalone-wrapper.bg-uyari {
    background: linear-gradient(135deg, #fff8ed 0%, #fde7d0 100%);
}

.standalone-kart {
    background: #fff;
    border-radius: 14px;
    padding: 44px 36px;
    box-shadow: 0 10px 40px rgba(57, 3, 92, 0.08);
    max-width: 480px;
    width: 100%;
    text-align: center;
}

.standalone-logo-kutu {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #39035c;
    color: #fff;
    border-radius: 16px;
    font-size: 36px;
}
.standalone-logo-img {
    max-height: 72px;
    margin-bottom: 18px;
}

.standalone-kart h1 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #39035c;
    margin-bottom: 6px;
}
.standalone-alt-baslik {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 26px;
}

.standalone-btn {
    background: #39035c;
    color: #fff !important;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}
.standalone-btn:hover {
    background: #52047a;
    color: #fff;
    transform: translateY(-1px);
}
.standalone-btn-tam {
    width: 100%;
}

.standalone-info {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f0e8dc;
    color: #8b7355;
    font-size: 0.8rem;
}

.standalone-uyari-ikon {
    font-size: 56px;
    color: #d97706;
    margin-bottom: 12px;
}

.standalone-aciklama {
    color: #6c757d;
    line-height: 1.55;
    margin-bottom: 22px;
}

/* =========================================================
   Header navbar — bildirim dropdown + brand logo + impersonation
   ========================================================= */
.dropdown-bildirim {
    min-width: 320px;
}
.dropdown-bildirim-liste {
    max-height: 320px;
    overflow-y: auto;
}
.dropdown-bildirim-liste .bildirim-okunmamis {
    background: var(--bs-gray-100, #f8f9fa);
}
.app-brand-logo-img {
    height: 32px;
}
.brand-placeholder-icon {
    font-size: 28px;
    color: var(--bs-primary);
}

.impersonation-banner {
    position: sticky;
    top: 0;
    z-index: 1050;
    background: linear-gradient(90deg, #6f42c1 0%, #8e54e9 100%);
    color: #fff;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.impersonation-banner i {
    margin-right: 6px;
}
