/* ==========================================================================
   KONGRERA — Panel Kabuğu & Bootstrap Uyumluluk Katmanı (ek)
   custom.css'teki temel katmanın (card, btn, form, modal, alert, badge) devamıdır.
   Vuexy core.css yerine geçer: eski Bootstrap işaretlemesini Kongrera görünümüne çeker.
   ========================================================================== */

:root {
  --kp-navy: #0b3b60;
  --kp-navy-light: #164e7a;
  --kp-cyan: #00a8cc;
  --kp-border: #e2e8f0;
  --kp-muted: #64748b;
  --kp-topbar-h: 5rem;
  --kp-sidebar-w: 16rem;

  /* Eklenti CSS'lerinin (select2, datatables, bootstrap-select) beklediği değişkenler */
  --bs-primary: #0b3b60;
  --bs-primary-rgb: 11, 59, 96;
  --bs-secondary: #64748b;
  --bs-success: #10b981;
  --bs-danger: #ef4444;
  --bs-warning: #f59e0b;
  --bs-info: #00a8cc;
  --bs-body-color: #1e293b;
  --bs-body-bg: #ffffff;
  --bs-border-color: #e2e8f0;
  --bs-border-color-translucent: rgba(15, 23, 42, 0.12);
  --bs-border-width: 1px;
  --bs-border-radius: 0.75rem;
  --bs-dropdown-item-padding-x: 0.75rem;
  --bs-dropdown-item-padding-y: 0.45rem;
  --bs-dropdown-link-color: #334155;
  --bs-dropdown-link-hover-bg: #f1f5f9;
  --bs-dropdown-link-hover-color: #0b3b60;
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 0;
}

.dark {
  --kp-border: #1e293b;
  --bs-body-color: #e2e8f0;
  --bs-body-bg: #0f172a;
  --bs-border-color: #334155;
  --bs-border-color-translucent: rgba(148, 163, 184, 0.2);
  --bs-dropdown-link-color: #cbd5e1;
  --bs-dropdown-link-hover-bg: #1e293b;
  --bs-dropdown-link-hover-color: #38bdf8;
}

/* --------------------------------------------------------------------------
   1. PANEL KABUĞU (üst bar + sol menü + içerik)
   Pencere kaydırması korunur: üst bar ve menü sticky, içerik normal akışta.
   -------------------------------------------------------------------------- */
body.kp-body {
  min-height: 100vh;
  background-color: #f8fafc;
  color: #1e293b;
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
}
.dark body.kp-body,
body.kp-body.dark {
  background-color: #020617;
  color: #e2e8f0;
}

.kp-body .layout-wrapper {
  min-height: 100vh;
}

.kp-body .layout-container {
  display: grid;
  grid-template-columns: var(--kp-sidebar-w) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  min-height: 100vh;
}

/* Vuexy'deki ara sarmalayıcı: çocukları doğrudan ızgaraya yerleşsin */
.kp-body .layout-page {
  display: contents;
}

.kp-body .kp-topbar {
  grid-column: 1 / -1;
  grid-row: 1;
  position: sticky;
  top: 0;
  z-index: 1030;
}

.kp-body .kp-sidebar {
  grid-column: 1;
  grid-row: 2;
  position: sticky;
  top: var(--kp-topbar-h);
  align-self: start;
  height: calc(100vh - var(--kp-topbar-h));
  overflow-y: auto;
  z-index: 1020;
}

.kp-body .content-wrapper {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background-color: #f8fafc;
}
.dark .kp-body .content-wrapper,
.kp-body.dark .content-wrapper {
  background-color: #020617;
}

.kp-body .content-wrapper > .container-p-y,
.kp-body .content-wrapper > .container-xxl,
.kp-body .content-wrapper > .container-fluid,
.kp-body .kp-content {
  flex: 1 1 auto;
}

.kp-body .container-p-y {
  padding: 1.5rem 2rem !important;
}

.kp-body .kp-footer {
  margin-top: auto;
}

/* Vuexy'den kalan, artık işlevsiz iskelet parçaları */
.kp-body .layout-overlay,
.kp-body .drag-target,
.kp-body .content-backdrop,
.kp-body .content-footer {
  display: none !important;
}

.kp-sidebar-backdrop {
  display: none;
}

/* Mobil: sol menü kayan çekmece */
@media (max-width: 1023.98px) {
  .kp-body .layout-container {
    grid-template-columns: minmax(0, 1fr);
  }
  .kp-body .content-wrapper {
    grid-column: 1;
  }
  .kp-body .kp-sidebar {
    position: fixed;
    top: var(--kp-topbar-h);
    left: 0;
    bottom: 0;
    width: var(--kp-sidebar-w);
    height: auto;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    z-index: 1045;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  }
  .kp-body.kp-sidebar-open .kp-sidebar {
    transform: translateX(0);
  }
  .kp-body.kp-sidebar-open .kp-sidebar-backdrop {
    display: block;
    position: fixed;
    inset: var(--kp-topbar-h) 0 0 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 1040;
  }
  .kp-body .container-p-y {
    padding: 1.25rem 1rem !important;
  }
}

/* Panel modunda site sayfalarındaki büyük "slide" başlığı -> sayfa başlık kartı */
.kp-body #home-animation {
  padding: 1.5rem 2rem 0;
}
.kp-body #home-animation .home-slide {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
  padding: 1.25rem 1.5rem !important;
  color: #0f172a;
}
.dark .kp-body #home-animation .home-slide,
.kp-body.dark #home-animation .home-slide {
  background: #0f172a;
  border-color: #1e293b;
  color: #f8fafc;
}
.kp-body #home-animation .home-slide .container {
  padding: 0 !important;
  max-width: none !important;
}
.kp-body #home-animation .home-slide .d-flex.justify-content-center {
  justify-content: flex-start !important;
}
.kp-body #home-animation .home-slide h1,
.kp-body #home-animation .home-slide .display-6 {
  color: #0b3b60 !important;
  font-size: 1.5rem !important;
  font-weight: 900 !important;
  letter-spacing: -0.02em;
  text-align: left !important;
}
.dark .kp-body #home-animation .home-slide h1,
.dark .kp-body #home-animation .home-slide .display-6 {
  color: #ffffff !important;
}
.kp-body #home-animation .home-slide h4,
.kp-body #home-animation .home-slide p {
  color: #64748b !important;
  font-size: 0.8125rem !important;
  opacity: 1 !important;
}
.kp-body .kp-content > section.section-py,
.kp-body .kp-content section.section-py {
  padding-top: 1.5rem !important;
  padding-bottom: 2rem !important;
}
.kp-body .kp-content .container,
.kp-body .kp-content .container-xxl,
.kp-body .kp-content .container-xl,
.kp-body .kp-content .container-lg {
  max-width: none !important;
  padding-left: 2rem !important;
  padding-right: 2rem !important;
}
@media (max-width: 1023.98px) {
  .kp-body #home-animation {
    padding: 1rem 1rem 0;
  }
  .kp-body .kp-content .container,
  .kp-body .kp-content .container-xxl {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

/* --------------------------------------------------------------------------
   2. TABAN TİPOGRAFİ (Tailwind preflight'ın sıfırladığı başlıklar)
   Sınıfında text-* olmayan başlıklara Bootstrap benzeri boyut verilir.
   -------------------------------------------------------------------------- */
.kp-compat h1:not([class*="text-"]), .kp-body .content-wrapper h1:not([class*="text-"]), .modal h1:not([class*="text-"]) { font-size: 1.75rem; font-weight: 800; line-height: 1.25; }
.kp-compat h2:not([class*="text-"]), .kp-body .content-wrapper h2:not([class*="text-"]), .modal h2:not([class*="text-"]) { font-size: 1.5rem; font-weight: 800; line-height: 1.3; }
.kp-compat h3:not([class*="text-"]), .kp-body .content-wrapper h3:not([class*="text-"]), .modal h3:not([class*="text-"]) { font-size: 1.25rem; font-weight: 700; line-height: 1.35; }
.kp-compat h4:not([class*="text-"]), .kp-body .content-wrapper h4:not([class*="text-"]), .modal h4:not([class*="text-"]) { font-size: 1.125rem; font-weight: 700; line-height: 1.4; }
.kp-compat h5:not([class*="text-"]), .kp-body .content-wrapper h5:not([class*="text-"]), .modal h5:not([class*="text-"]) { font-size: 1rem; font-weight: 700; line-height: 1.4; }
.kp-compat h6:not([class*="text-"]), .kp-body .content-wrapper h6:not([class*="text-"]), .modal h6:not([class*="text-"]) { font-size: 0.875rem; font-weight: 700; line-height: 1.4; }
.kp-body .content-wrapper h1, .kp-body .content-wrapper h2, .kp-body .content-wrapper h3,
.kp-body .content-wrapper h4, .kp-body .content-wrapper h5, .kp-body .content-wrapper h6 {
  color: #0f172a;
  margin-bottom: 0.5rem;
}
.dark .kp-body .content-wrapper h1, .dark .kp-body .content-wrapper h2, .dark .kp-body .content-wrapper h3,
.dark .kp-body .content-wrapper h4, .dark .kp-body .content-wrapper h5, .dark .kp-body .content-wrapper h6 {
  color: #f8fafc;
}
.kp-body .content-wrapper p:not([class]) { margin-bottom: 0.75rem; }
.kp-body .content-wrapper ul:not([class]):not(.timeline) { list-style: disc; padding-left: 1.25rem; }
.kp-body .content-wrapper ol:not([class]) { list-style: decimal; padding-left: 1.25rem; }
.kp-body .content-wrapper a:not([class]) { color: #00a8cc; }
.kp-body .content-wrapper a:not([class]):hover { text-decoration: underline; }
.kp-body .content-wrapper hr:not([class]) { border-color: #e2e8f0; margin: 1rem 0; }
.dark .kp-body .content-wrapper hr:not([class]) { border-color: #1e293b; }

.modal-title { font-size: 1rem; font-weight: 800; color: #0f172a; margin: 0; line-height: 1.4; display: flex; align-items: center; gap: 0.25rem; }
.dark .modal-title { color: #f8fafc; }
.card-title { font-size: 1rem; font-weight: 800; color: #0f172a; margin-bottom: 0.5rem; }
.dark .card-title { color: #f8fafc; }
.card-subtitle { font-size: 0.8125rem; color: #64748b; }
.card-footer { padding: 1rem 1.5rem; border-top: 1px solid #e2e8f0; background: transparent; }
.dark .card-footer { border-color: #1e293b; }
.card-header .card-title, .card-header h5, .card-header h4 { margin-bottom: 0; }

.display-6 { font-size: 1.75rem !important; font-weight: 800 !important; line-height: 1.2; }
.display-9 { font-size: 1.125rem !important; font-weight: 700 !important; }
.fs-1 { font-size: 2rem !important; }
.fs-2 { font-size: 1.65rem !important; }
.fs-3 { font-size: 1.4rem !important; }
.fs-4 { font-size: 1.2rem !important; }
.fs-5 { font-size: 1.05rem !important; }
.fw-normal { font-weight: 400 !important; }
.fw-medium { font-weight: 500 !important; }
.fw-bolder, .fw-extrabold { font-weight: 800 !important; }
.lh-1 { line-height: 1 !important; }
.lh-sm { line-height: 1.25 !important; }
.lh-lg { line-height: 1.75 !important; }
.text-body { color: #334155 !important; }
.dark .text-body { color: #cbd5e1 !important; }
.text-secondary { color: #64748b !important; }
.text-light { color: #f1f5f9 !important; }
.text-white-50 { color: rgba(255, 255, 255, 0.6) !important; }
.text-black-50 { color: rgba(15, 23, 42, 0.55) !important; }
.text-heading { color: #0f172a !important; }
.dark .text-heading { color: #f8fafc !important; }
.text-end { text-align: right !important; }
.text-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-decoration-none { text-decoration: none !important; }
.text-uppercase { text-transform: uppercase !important; }
.text-break { word-break: break-word !important; overflow-wrap: anywhere !important; }
.font-monospace { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important; }
.text-warning-emphasis { color: #92400e !important; }
.text-danger-emphasis { color: #991b1b !important; }
.text-success-emphasis { color: #065f46 !important; }
.text-info-emphasis { color: #155e75 !important; }
.text-primary-emphasis { color: #0b3b60 !important; }
.list-unstyled { list-style: none !important; padding-left: 0 !important; }
.list-inline { list-style: none; padding-left: 0; }
.list-inline-item { display: inline-block; margin-right: 0.5rem; }
.small, small { font-size: 0.8em; }
.mark, mark { background: #fef3c7; padding: 0 0.2em; border-radius: 0.2em; }
.blockquote { border-left: 3px solid #00a8cc; padding-left: 1rem; color: #475569; }

/* Tabler ikon boyutları (Vuexy) */
.ti-xs { font-size: 1rem !important; }
.ti-sm { font-size: 1.125rem !important; }
.ti-md { font-size: 1.375rem !important; }
.ti-lg { font-size: 1.5rem !important; }
.ti-xl { font-size: 2.25rem !important; }
.icon-base { display: inline-block; }
.icon-22px { font-size: 22px !important; }

/* --------------------------------------------------------------------------
   3. IZGARA (custom.css'te olmayan sütunlar ve aralıklar)
   -------------------------------------------------------------------------- */
.row { --bs-gutter-x: 1.5rem; --bs-gutter-y: 0; margin-top: calc(-1 * var(--bs-gutter-y)); margin-right: calc(-0.5 * var(--bs-gutter-x)); margin-left: calc(-0.5 * var(--bs-gutter-x)); }
.row > * { padding-right: calc(var(--bs-gutter-x) * 0.5); padding-left: calc(var(--bs-gutter-x) * 0.5); margin-top: var(--bs-gutter-y); }
.g-0, .gx-0 { --bs-gutter-x: 0; }
.g-0, .gy-0 { --bs-gutter-y: 0; }
.g-1, .gx-1 { --bs-gutter-x: 0.25rem; }
.g-1, .gy-1 { --bs-gutter-y: 0.25rem; }
.g-2, .gx-2 { --bs-gutter-x: 0.5rem; }
.g-2, .gy-2 { --bs-gutter-y: 0.5rem; }
.g-3, .gx-3 { --bs-gutter-x: 1rem; }
.g-3, .gy-3 { --bs-gutter-y: 1rem; }
.g-4, .gx-4 { --bs-gutter-x: 1.5rem; }
.g-4, .gy-4 { --bs-gutter-y: 1.5rem; }
.g-5, .gx-5 { --bs-gutter-x: 3rem; }
.g-5, .gy-5 { --bs-gutter-y: 3rem; }
/* custom.css'teki eski g-4/gy-4 tanımlarını değişken tabanlı sisteme bırak */
.g-4 > *, .gy-4 > * { padding-top: 0; }
.g-4, .gy-4 { margin-top: calc(-1 * var(--bs-gutter-y)); }

.col { flex: 1 0 0%; }
.col-auto { flex: 0 0 auto; width: auto; }
.col-1 { flex: 0 0 auto; width: 8.333333%; }
.col-2 { flex: 0 0 auto; width: 16.666667%; }
.col-3 { flex: 0 0 auto; width: 25%; }
.col-4 { flex: 0 0 auto; width: 33.333333%; }
.col-5 { flex: 0 0 auto; width: 41.666667%; }
.col-6 { flex: 0 0 auto; width: 50%; }
.col-7 { flex: 0 0 auto; width: 58.333333%; }
.col-8 { flex: 0 0 auto; width: 66.666667%; }
.col-9 { flex: 0 0 auto; width: 75%; }
.col-10 { flex: 0 0 auto; width: 83.333333%; }
.col-11 { flex: 0 0 auto; width: 91.666667%; }
.col-12 { flex: 0 0 auto; width: 100%; }
@media (min-width: 576px) {
  .col-sm { flex: 1 0 0%; }
  .col-sm-auto { flex: 0 0 auto; width: auto; }
  .col-sm-1 { flex: 0 0 auto; width: 8.333333%; }
  .col-sm-2 { flex: 0 0 auto; width: 16.666667%; }
  .col-sm-3 { flex: 0 0 auto; width: 25%; }
  .col-sm-4 { flex: 0 0 auto; width: 33.333333%; }
  .col-sm-5 { flex: 0 0 auto; width: 41.666667%; }
  .col-sm-6 { flex: 0 0 auto; width: 50%; }
  .col-sm-7 { flex: 0 0 auto; width: 58.333333%; }
  .col-sm-8 { flex: 0 0 auto; width: 66.666667%; }
  .col-sm-9 { flex: 0 0 auto; width: 75%; }
  .col-sm-10 { flex: 0 0 auto; width: 83.333333%; }
  .col-sm-12 { flex: 0 0 auto; width: 100%; }
  .d-sm-none { display: none !important; }
  .d-sm-block { display: block !important; }
  .d-sm-flex { display: flex !important; }
  .d-sm-inline-block { display: inline-block !important; }
  .d-sm-inline { display: inline !important; }
}
@media (min-width: 768px) {
  .col-md { flex: 1 0 0%; }
  .col-md-auto { flex: 0 0 auto; width: auto; }
  .col-md-1 { flex: 0 0 auto; width: 8.333333%; }
  .col-md-2 { flex: 0 0 auto; width: 16.666667%; }
  .col-md-3 { flex: 0 0 auto; width: 25%; }
  .col-md-5 { flex: 0 0 auto; width: 41.666667%; }
  .col-md-7 { flex: 0 0 auto; width: 58.333333%; }
  .col-md-9 { flex: 0 0 auto; width: 75%; }
  .col-md-10 { flex: 0 0 auto; width: 83.333333%; }
  .col-md-11 { flex: 0 0 auto; width: 91.666667%; }
  .d-md-block { display: block !important; }
  .d-md-inline-block { display: inline-block !important; }
  .d-md-inline-flex { display: inline-flex !important; }
  .text-md-end { text-align: right !important; }
  .text-md-start { text-align: left !important; }
  .justify-content-md-end { justify-content: flex-end !important; }
  .justify-content-md-between { justify-content: space-between !important; }
  .flex-md-row { flex-direction: row !important; }
  .align-items-md-center { align-items: center !important; }
  .mb-md-0 { margin-bottom: 0 !important; }
}
@media (min-width: 992px) {
  .col-lg { flex: 1 0 0%; }
  .col-lg-auto { flex: 0 0 auto; width: auto; }
  .col-lg-1 { flex: 0 0 auto; width: 8.333333%; }
  .col-lg-2 { flex: 0 0 auto; width: 16.666667%; }
  .col-lg-3 { flex: 0 0 auto; width: 25%; }
  .col-lg-5 { flex: 0 0 auto; width: 41.666667%; }
  .col-lg-7 { flex: 0 0 auto; width: 58.333333%; }
  .col-lg-8 { flex: 0 0 auto; width: 66.666667%; }
  .col-lg-9 { flex: 0 0 auto; width: 75%; }
  .col-lg-10 { flex: 0 0 auto; width: 83.333333%; }
  .col-lg-12 { flex: 0 0 auto; width: 100%; }
  .d-lg-none { display: none !important; }
  .d-lg-block { display: block !important; }
  .d-lg-flex { display: flex !important; }
  .d-lg-inline-block { display: inline-block !important; }
  .text-lg-end { text-align: right !important; }
}
@media (min-width: 1200px) {
  .col-xl { flex: 1 0 0%; }
  .col-xl-2 { flex: 0 0 auto; width: 16.666667%; }
  .col-xl-3 { flex: 0 0 auto; width: 25%; }
  .col-xl-4 { flex: 0 0 auto; width: 33.333333%; }
  .col-xl-5 { flex: 0 0 auto; width: 41.666667%; }
  .col-xl-6 { flex: 0 0 auto; width: 50%; }
  .col-xl-7 { flex: 0 0 auto; width: 58.333333%; }
  .col-xl-8 { flex: 0 0 auto; width: 66.666667%; }
  .col-xl-9 { flex: 0 0 auto; width: 75%; }
  .col-xl-12 { flex: 0 0 auto; width: 100%; }
  .d-xl-none { display: none !important; }
  .d-xl-block { display: block !important; }
  .d-xl-flex { display: flex !important; }
}
@media (min-width: 1400px) {
  .col-xxl-3 { flex: 0 0 auto; width: 25%; }
  .col-xxl-4 { flex: 0 0 auto; width: 33.333333%; }
  .col-xxl-6 { flex: 0 0 auto; width: 50%; }
  .col-xxl-8 { flex: 0 0 auto; width: 66.666667%; }
}
.offset-md-3 { margin-left: 25%; }

.container-fluid, .container-xxl, .container-xl, .container-lg {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: 1rem;
  padding-left: 1rem;
}

/* --------------------------------------------------------------------------
   4. YARDIMCI SINIFLAR (Bootstrap adları; Tailwind'de karşılığı olmayanlar)
   -------------------------------------------------------------------------- */
.d-inline-block { display: inline-block !important; }
.d-inline-flex { display: inline-flex !important; }
.d-grid { display: grid !important; }
.d-table { display: table !important; }
.d-table-cell { display: table-cell !important; }
.d-print-none { }
.flex-fill { flex: 1 1 auto !important; }
.flex-grow-0 { flex-grow: 0 !important; }
.flex-nowrap { flex-wrap: nowrap !important; }
.flex-row-reverse { flex-direction: row-reverse !important; }
.flex-column-reverse { flex-direction: column-reverse !important; }
.align-items-start { align-items: flex-start !important; }
.align-items-end { align-items: flex-end !important; }
.align-items-stretch { align-items: stretch !important; }
.align-items-baseline { align-items: baseline !important; }
.align-self-center { align-self: center !important; }
.align-self-start { align-self: flex-start !important; }
.align-self-end { align-self: flex-end !important; }
.justify-content-around { justify-content: space-around !important; }
.justify-content-evenly { justify-content: space-evenly !important; }
.align-middle { vertical-align: middle !important; }
.align-top { vertical-align: top !important; }
.align-bottom { vertical-align: bottom !important; }
.gap-0 { gap: 0 !important; }
.gap-4 { gap: 1.5rem !important; }
.gap-5 { gap: 3rem !important; }
.row-gap-2 { row-gap: 0.5rem !important; }
.row-gap-3 { row-gap: 1rem !important; }
.column-gap-2 { column-gap: 0.5rem !important; }
.float-end { float: right !important; }
.float-start { float: left !important; }
.clearfix::after { display: block; clear: both; content: ""; }

.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }
.position-fixed { position: fixed !important; }
.position-sticky { position: sticky !important; }
.position-static { position: static !important; }
.top-0 { top: 0 !important; }
.top-50 { top: 50% !important; }
.top-100 { top: 100% !important; }
.bottom-0 { bottom: 0 !important; }
.start-0 { left: 0 !important; }
.start-50 { left: 50% !important; }
.start-100 { left: 100% !important; }
.end-0 { right: 0 !important; }
.translate-middle { transform: translate(-50%, -50%) !important; }
.translate-middle-x { transform: translateX(-50%) !important; }
.translate-middle-y { transform: translateY(-50%) !important; }
.z-1 { z-index: 1 !important; }
.z-2 { z-index: 2 !important; }
.z-3 { z-index: 3 !important; }
.overflow-auto { overflow: auto !important; }
.overflow-hidden { overflow: hidden !important; }
.overflow-x-auto { overflow-x: auto !important; }
.overflow-y-auto { overflow-y: auto !important; }
.mw-100 { max-width: 100% !important; }
.mh-100 { max-height: 100% !important; }
.vh-100 { height: 100vh !important; }
.min-vh-100 { min-height: 100vh !important; }
.w-25 { width: 25% !important; }
.w-50 { width: 50% !important; }
.w-75 { width: 75% !important; }
.w-auto { width: auto !important; }
.h-auto { height: auto !important; }
.cursor-pointer { cursor: pointer !important; }
.user-select-none { user-select: none !important; }
.pe-none { pointer-events: none !important; }
.opacity-50 { opacity: 0.5 !important; }
.opacity-75 { opacity: 0.75 !important; }
.visually-hidden, .sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

/* Boşluklar: Bootstrap ölçeği (0, .25, .5, 1, 1.5, 3 rem). Tailwind'le çakışan
   p-*, px-*, py-*, m-* sınıflarına dokunulmaz; sadece Bootstrap'a özgü olanlar. */
.m-0 { margin: 0 !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.ms-auto { margin-left: auto !important; }
.me-auto { margin-right: auto !important; }
.ms-0 { margin-left: 0 !important; }
.me-0 { margin-right: 0 !important; }
.ms-3 { margin-left: 1rem !important; }
.ms-4 { margin-left: 1.5rem !important; }
.me-3 { margin-right: 1rem !important; }
.me-4 { margin-right: 1.5rem !important; }
.mt-0 { margin-top: 0 !important; }
.mt-5 { margin-top: 3rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.my-0 { margin-top: 0 !important; margin-bottom: 0 !important; }
.my-1 { margin-top: 0.25rem !important; margin-bottom: 0.25rem !important; }
.my-2 { margin-top: 0.5rem !important; margin-bottom: 0.5rem !important; }
.my-3 { margin-top: 1rem !important; margin-bottom: 1rem !important; }
.my-4 { margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }
.my-5 { margin-top: 3rem !important; margin-bottom: 3rem !important; }
.mx-1 { margin-left: 0.25rem !important; margin-right: 0.25rem !important; }
.mx-2 { margin-left: 0.5rem !important; margin-right: 0.5rem !important; }
.ps-0 { padding-left: 0 !important; }
.ps-2 { padding-left: 0.5rem !important; }
.ps-3 { padding-left: 1rem !important; }
.ps-4 { padding-left: 1.5rem !important; }
.pe-0 { padding-right: 0 !important; }
.pe-2 { padding-right: 0.5rem !important; }
.pe-3 { padding-right: 1rem !important; }
.pe-4 { padding-right: 1.5rem !important; }

/* Kenarlıklar & arka planlar */
.border-top { border-top: 1px solid var(--kp-border) !important; }
.border-bottom { border-bottom: 1px solid var(--kp-border) !important; }
.border-start { border-left: 1px solid var(--kp-border) !important; }
.border-end { border-right: 1px solid var(--kp-border) !important; }
.border-top-0 { border-top: 0 !important; }
.border-bottom-0 { border-bottom: 0 !important; }
.border-start-0 { border-left: 0 !important; }
.border-end-0 { border-right: 0 !important; }
.border-1 { border-width: 1px !important; }
.border-2 { border-width: 2px !important; }
.border-3 { border-width: 3px !important; }
.border-4 { border-width: 4px !important; }
.border-5 { border-width: 5px !important; }
.border-primary { border-color: #0b3b60 !important; }
.border-secondary { border-color: #cbd5e1 !important; }
.border-success { border-color: #10b981 !important; }
.border-danger { border-color: #ef4444 !important; }
.border-warning { border-color: #f59e0b !important; }
.border-info { border-color: #00a8cc !important; }
.border-light { border-color: #f1f5f9 !important; }
.border-dark { border-color: #334155 !important; }
.border-white { border-color: #ffffff !important; }
.dark .border-primary { border-color: #38bdf8 !important; }
.border-opacity-10 { --kp-bo: 0.1; }
.border-opacity-25 { --kp-bo: 0.25; }
.border-opacity-50 { --kp-bo: 0.5; }
.border-primary.border-opacity-25 { border-color: rgba(11, 59, 96, 0.25) !important; }
.border-warning.border-opacity-25 { border-color: rgba(245, 158, 11, 0.3) !important; }
.border-info.border-opacity-25 { border-color: rgba(0, 168, 204, 0.3) !important; }
.border-danger.border-opacity-25 { border-color: rgba(239, 68, 68, 0.3) !important; }
.border-success.border-opacity-25 { border-color: rgba(16, 185, 129, 0.3) !important; }
.rounded-0 { border-radius: 0 !important; }
.rounded-1 { border-radius: 0.375rem !important; }
.rounded-2 { border-radius: 0.5rem !important; }
.rounded-3 { border-radius: 0.75rem !important; }
.rounded-4 { border-radius: 1rem !important; }
.rounded-5 { border-radius: 1.5rem !important; }
.rounded-pill { border-radius: 9999px !important; }
.rounded-circle { border-radius: 50% !important; }
.rounded-top { border-top-left-radius: 0.5rem !important; border-top-right-radius: 0.5rem !important; }
.rounded-bottom { border-bottom-left-radius: 0.5rem !important; border-bottom-right-radius: 0.5rem !important; }
.shadow-xs { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.04); }

.bg-light { background-color: #f8fafc !important; }
.dark .bg-light { background-color: #1e293b !important; }
.bg-white { background-color: #ffffff; }
.dark .card .bg-white, .dark .modal .bg-white, .dark .kp-body .content-wrapper .bg-white { background-color: #0f172a !important; }
.bg-body { background-color: #ffffff !important; }
.dark .bg-body { background-color: #0f172a !important; }
.bg-transparent { background-color: transparent !important; }
.bg-secondary { background-color: #64748b !important; color: #fff !important; }
.bg-dark { background-color: #0f172a !important; color: #fff !important; }
.bg-gradient { background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0)) !important; }
.bg-primary.bg-opacity-10 { background-color: rgba(11, 59, 96, 0.08) !important; color: inherit !important; }
.bg-primary.bg-opacity-25 { background-color: rgba(11, 59, 96, 0.18) !important; color: inherit !important; }
.bg-success.bg-opacity-10 { background-color: rgba(16, 185, 129, 0.1) !important; color: inherit !important; }
.bg-success.bg-opacity-25 { background-color: rgba(16, 185, 129, 0.2) !important; color: inherit !important; }
.bg-warning.bg-opacity-10 { background-color: rgba(245, 158, 11, 0.1) !important; color: inherit !important; }
.bg-warning.bg-opacity-25 { background-color: rgba(245, 158, 11, 0.2) !important; color: inherit !important; }
.bg-danger.bg-opacity-10 { background-color: rgba(239, 68, 68, 0.1) !important; color: inherit !important; }
.bg-danger.bg-opacity-25 { background-color: rgba(239, 68, 68, 0.2) !important; color: inherit !important; }
.bg-info.bg-opacity-10 { background-color: rgba(0, 168, 204, 0.1) !important; color: inherit !important; }
.bg-info.bg-opacity-25 { background-color: rgba(0, 168, 204, 0.2) !important; color: inherit !important; }
.bg-secondary.bg-opacity-10 { background-color: rgba(100, 116, 139, 0.1) !important; color: inherit !important; }
.bg-secondary.bg-opacity-25 { background-color: rgba(100, 116, 139, 0.2) !important; color: inherit !important; }
.bg-label-light { background-color: #f8fafc !important; color: #475569 !important; }
.bg-label-dark { background-color: #e2e8f0 !important; color: #0f172a !important; }
.dark .bg-label-light { background-color: rgba(148, 163, 184, 0.12) !important; color: #cbd5e1 !important; }
.text-bg-primary { background-color: #0b3b60 !important; color: #fff !important; }
.text-bg-success { background-color: #10b981 !important; color: #fff !important; }
.text-bg-danger { background-color: #ef4444 !important; color: #fff !important; }
.text-bg-warning { background-color: #f59e0b !important; color: #1e293b !important; }
.text-bg-info { background-color: #00a8cc !important; color: #fff !important; }
.text-bg-secondary { background-color: #64748b !important; color: #fff !important; }
.text-bg-light { background-color: #f1f5f9 !important; color: #0f172a !important; }

/* Koyu modda sabit açık renkli metinler */
.dark .text-dark { color: #f8fafc !important; }
.dark .kp-body .content-wrapper .text-black { color: #f8fafc !important; }

/* --------------------------------------------------------------------------
   5. BUTONLAR (custom.css'te olmayan varyantlar)
   -------------------------------------------------------------------------- */
.btn:disabled, .btn.disabled { opacity: 0.55; pointer-events: none; }
.btn i.ti, .btn .ti { line-height: 1; }
.btn-lg { padding: 0.7rem 1.4rem; font-size: 0.9375rem; border-radius: 0.875rem; }
.btn-light { color: #1e293b; background-color: #f1f5f9; border-color: #e2e8f0; }
.btn-light:hover { background-color: #e2e8f0; }
.dark .btn-light { color: #e2e8f0; background-color: #1e293b; border-color: #334155; }
.btn-dark { color: #fff; background-color: #0f172a; border-color: #0f172a; }
.btn-dark:hover { background-color: #1e293b; }
.btn-white { color: #0f172a; background-color: #fff; border-color: #e2e8f0; }
.btn-link { color: #00a8cc; background: transparent; border-color: transparent; padding-left: 0.25rem; padding-right: 0.25rem; }
.btn-link:hover { text-decoration: underline; }
.btn-outline-success { color: #059669; border-color: #10b981; background-color: transparent; }
.btn-outline-success:hover { color: #fff; background-color: #10b981; }
.btn-outline-danger { color: #dc2626; border-color: #ef4444; background-color: transparent; }
.btn-outline-danger:hover { color: #fff; background-color: #ef4444; }
.btn-outline-info { color: #0891b2; border-color: #00a8cc; background-color: transparent; }
.btn-outline-info:hover { color: #fff; background-color: #00a8cc; }
.btn-outline-light { color: #475569; border-color: #e2e8f0; background-color: transparent; }
.btn-outline-light:hover { background-color: #f1f5f9; }
.btn-outline-dark { color: #0f172a; border-color: #334155; background-color: transparent; }
.btn-outline-dark:hover { color: #fff; background-color: #0f172a; }
.dark .btn-outline-secondary { color: #cbd5e1; border-color: #475569; }
.dark .btn-outline-secondary:hover { color: #fff; background-color: #1e293b; }
.btn-label-primary { color: #0b3b60; background-color: rgba(11, 59, 96, 0.08); border-color: transparent; }
.btn-label-primary:hover { color: #fff; background-color: #0b3b60; }
.btn-label-secondary { color: #475569; background-color: #f1f5f9; border-color: transparent; }
.btn-label-secondary:hover { color: #fff; background-color: #64748b; }
.btn-label-success { color: #047857; background-color: #d1fae5; border-color: transparent; }
.btn-label-success:hover { color: #fff; background-color: #10b981; }
.btn-label-danger { color: #b91c1c; background-color: #fee2e2; border-color: transparent; }
.btn-label-danger:hover { color: #fff; background-color: #ef4444; }
.btn-label-warning { color: #b45309; background-color: #fef3c7; border-color: transparent; }
.btn-label-warning:hover { color: #fff; background-color: #f59e0b; }
.btn-label-info { color: #0e7490; background-color: #cffafe; border-color: transparent; }
.btn-label-info:hover { color: #fff; background-color: #00a8cc; }
.dark .btn-label-primary { color: #38bdf8; background-color: rgba(56, 189, 248, 0.12); }
.dark .btn-label-secondary { color: #cbd5e1; background-color: rgba(148, 163, 184, 0.14); }
.dark .btn-label-success { color: #34d399; background-color: rgba(16, 185, 129, 0.15); }
.dark .btn-label-danger { color: #f87171; background-color: rgba(239, 68, 68, 0.15); }
.dark .btn-label-warning { color: #fbbf24; background-color: rgba(245, 158, 11, 0.15); }
.dark .btn-label-info { color: #22d3ee; background-color: rgba(0, 168, 204, 0.15); }
.dark .btn-secondary { background-color: #475569; border-color: #475569; }
.btn-text-secondary { color: #64748b; background: transparent; border-color: transparent; }
.btn-text-secondary:hover { background: #f1f5f9; color: #0f172a; }
.btn-icon { display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; padding: 0; }
.btn-icon.btn-sm { width: 1.85rem; height: 1.85rem; }
.btn-close-white { filter: invert(1) grayscale(100%) brightness(200%); }
.waves-effect { position: relative; overflow: hidden; }

.btn-group, .btn-group-vertical { position: relative; display: inline-flex; vertical-align: middle; }
.btn-group > .btn { position: relative; flex: 1 1 auto; }
.btn-group > .btn:not(:last-child):not(.dropdown-toggle), .btn-group > .btn-group:not(:last-child) > .btn { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.btn-group > .btn:not(:first-child), .btn-group > .btn-group:not(:first-child) > .btn { border-top-left-radius: 0; border-bottom-left-radius: 0; margin-left: -1px; }
.btn-group-sm > .btn { padding: 0.35rem 0.75rem; font-size: 0.75rem; }
.btn-group-vertical { flex-direction: column; }
.btn-toolbar { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* Gizli radio/checkbox + buton (btn-check) */
.btn-check { position: absolute; clip: rect(0, 0, 0, 0); pointer-events: none; }
.btn-check:checked + .btn,
.btn-check:active + .btn { color: #fff; background-color: #0b3b60; border-color: #0b3b60; }
.btn-check:checked + .btn-outline-success { background-color: #10b981; border-color: #10b981; }
.btn-check:checked + .btn-outline-danger { background-color: #ef4444; border-color: #ef4444; }
.btn-check:checked + .btn-outline-warning { background-color: #f59e0b; border-color: #f59e0b; color: #1e293b; }
.btn-check:checked + .btn-outline-info { background-color: #00a8cc; border-color: #00a8cc; }
.dark .btn-check:checked + .btn-outline-primary { background-color: #38bdf8; color: #0f172a; }
.btn-check:focus-visible + .btn { box-shadow: 0 0 0 0.2rem rgba(0, 168, 204, 0.25); }

/* --------------------------------------------------------------------------
   6. FORMLAR (custom.css'teki temelin devamı)
   -------------------------------------------------------------------------- */
.form-control-sm, .form-select-sm { padding: 0.4rem 0.75rem !important; font-size: 0.8125rem !important; border-radius: 0.625rem !important; }
.form-control-lg, .form-select-lg { padding: 0.85rem 1.1rem !important; font-size: 1rem !important; }
.form-select {
  padding-right: 2.25rem;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 14px 10px;
}
.form-select[multiple], .form-select[size]:not([size="1"]) { background-image: none; padding-right: 1rem; }
textarea.form-control { min-height: 5rem; }
.form-control:disabled, .form-select:disabled, .form-control[readonly] { background-color: #f1f5f9; color: #64748b; }
.dark .form-control:disabled, .dark .form-select:disabled, .dark .form-control[readonly] { background-color: #1e293b; color: #94a3b8; }
.form-control[type="file"] { padding: 0.55rem 0.75rem; }
.form-control[type="file"]::file-selector-button { margin-right: 0.75rem; padding: 0.35rem 0.85rem; border: 0; border-radius: 0.5rem; background: #0b3b60; color: #fff; font-weight: 600; font-size: 0.75rem; cursor: pointer; }
.form-control-color { width: 3rem; height: 2.5rem; padding: 0.25rem; }
.form-floating { position: relative; }
.col-form-label { padding-top: calc(0.75rem + 1px); padding-bottom: calc(0.75rem + 1px); font-size: 0.8125rem; font-weight: 700; }

.form-check-inline { display: inline-flex; align-items: center; margin-right: 1rem; }
.form-check-input[type="radio"] { border-radius: 50%; }
.form-check-input[type="radio"]:checked { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23fff'/%3e%3c/svg%3e"); }
.form-check-input:focus { outline: 0; box-shadow: 0 0 0 0.2rem rgba(0, 168, 204, 0.2); border-color: #00a8cc; }
.form-check-input:disabled { opacity: 0.5; cursor: not-allowed; }
.form-switch { padding-left: 2.75em; }
.form-switch .form-check-input {
  width: 2.25em;
  margin-left: -2.75em;
  border-radius: 2em;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%2394a3b8'/%3e%3c/svg%3e");
  background-position: left center;
  transition: background-position 0.15s ease-in-out;
}
.form-switch .form-check-input:checked {
  background-position: right center;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
}
.form-range { width: 100%; accent-color: #00a8cc; }

.input-group { position: relative; display: flex; flex-wrap: wrap; align-items: stretch; width: 100%; }
.input-group > .form-control, .input-group > .form-select { position: relative; flex: 1 1 auto; width: 1%; min-width: 0; }
.input-group-text { display: flex; align-items: center; padding: 0.5rem 0.85rem; font-size: 0.8125rem; color: #475569; background-color: #f1f5f9; border: 1px solid #cbd5e1; border-radius: 0.875rem; white-space: nowrap; }
.dark .input-group-text { color: #cbd5e1; background-color: #1e293b; border-color: #334155; }
.input-group > :not(:first-child) { margin-left: -1px; border-top-left-radius: 0 !important; border-bottom-left-radius: 0 !important; }
.input-group > :not(:last-child) { border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; }
.input-group-merge .input-group-text { background-color: #fff; }
.dark .input-group-merge .input-group-text { background-color: #0b1320; }
.input-group-sm > .form-control, .input-group-sm > .input-group-text, .input-group-sm > .btn { padding: 0.35rem 0.7rem; font-size: 0.8125rem; }

.invalid-feedback, .valid-feedback { display: none; width: 100%; margin-top: 0.3rem; font-size: 0.75rem; }
.invalid-feedback { color: #ef4444; }
.valid-feedback { color: #10b981; }
.is-invalid ~ .invalid-feedback, .was-validated :invalid ~ .invalid-feedback, .invalid-feedback.d-block { display: block; }
.is-valid ~ .valid-feedback, .was-validated :valid ~ .valid-feedback { display: block; }
.form-control.is-invalid, .form-select.is-invalid, .was-validated .form-control:invalid, .was-validated .form-select:invalid { border-color: #ef4444 !important; }
.form-control.is-invalid:focus { box-shadow: 0 0 0 0.25rem rgba(239, 68, 68, 0.15); }
.form-control.is-valid, .form-select.is-valid { border-color: #10b981 !important; }
.form-check-input.is-invalid, .was-validated .form-check-input:invalid { border-color: #ef4444; }

/* --------------------------------------------------------------------------
   7. TABLOLAR
   -------------------------------------------------------------------------- */
.table {
  width: 100%;
  margin-bottom: 1rem;
  color: #1e293b;
  vertical-align: top;
  border-collapse: collapse;
  font-size: 0.8125rem;
}
.dark .table { color: #e2e8f0; }
.table > :not(caption) > * > * {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  background-color: transparent;
}
.dark .table > :not(caption) > * > * { border-bottom-color: #1e293b; }
.table > thead > tr > th,
.table > thead > tr > td,
.table th {
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  text-align: left;
  white-space: nowrap;
}
.table > thead { background-color: #f8fafc; }
.dark .table > thead { background-color: #1e293b; }
.dark .table th { color: #94a3b8; }
.table > tbody > tr > th { text-transform: none; letter-spacing: 0; font-size: 0.8125rem; color: #0f172a; }
.dark .table > tbody > tr > th { color: #f8fafc; }
.table-sm > :not(caption) > * > * { padding: 0.45rem 0.65rem; }
.table-bordered > :not(caption) > * > * { border: 1px solid #e2e8f0; }
.dark .table-bordered > :not(caption) > * > * { border-color: #1e293b; }
.table-borderless > :not(caption) > * > * { border: 0; }
.table-striped > tbody > tr:nth-of-type(odd) > * { background-color: #f8fafc; }
.dark .table-striped > tbody > tr:nth-of-type(odd) > * { background-color: rgba(30, 41, 59, 0.5); }
.table-hover > tbody > tr:hover > * { background-color: #f0f9ff; }
.dark .table-hover > tbody > tr:hover > * { background-color: #1e293b; }
.table-light, .table-light > th, .table-light > td, thead.table-light th { background-color: #f8fafc !important; color: #475569; }
.dark .table-light, .dark .table-light > th, .dark .table-light > td, .dark thead.table-light th { background-color: #1e293b !important; color: #cbd5e1; }
.table-dark, .table-dark > th, .table-dark > td { background-color: #0f172a !important; color: #f8fafc; }
.table-primary > * { background-color: #e0f2fe !important; }
.table-success > * { background-color: #ecfdf5 !important; }
.table-warning > * { background-color: #fffbeb !important; }
.table-danger > * { background-color: #fef2f2 !important; }
.table-info > * { background-color: #ecfeff !important; }
.table-active > * { background-color: #f1f5f9 !important; }
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-responsive > .table { margin-bottom: 0; }
.card > .table-responsive, .card > .card-datatable, .card-datatable { border-radius: 0 0 1.25rem 1.25rem; }
.card-datatable { padding-bottom: 0.5rem; }
.card-datatable .table { margin-bottom: 0; }
.caption-top { caption-side: top; }

/* DataTables (Bootstrap 5 işaretlemesi) */
.dataTables_wrapper { font-size: 0.8125rem; }
.dataTables_wrapper .row { --bs-gutter-x: 1rem; margin-left: 0; margin-right: 0; align-items: center; }
.dataTables_wrapper > .row:first-child,
.dataTables_wrapper .dt-row + .row,
.dataTables_wrapper > .row:last-child { padding: 0.85rem 1rem; }
.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; color: #64748b; margin: 0; }
.dataTables_wrapper .dataTables_filter { text-align: right; }
.dataTables_wrapper .dataTables_filter input { width: 220px; display: inline-block; }
.dataTables_wrapper .dataTables_length select { width: auto; display: inline-block; padding-right: 2rem !important; }
.dataTables_wrapper .dataTables_info { color: #64748b; padding-top: 0.25rem; }
.dataTables_wrapper .dataTables_paginate { display: flex; justify-content: flex-end; }
.dataTables_wrapper .dataTables_processing { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: #fff; padding: 0.75rem 1.25rem; border-radius: 0.75rem; box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15); z-index: 5; }
.dark .dataTables_wrapper .dataTables_processing { background: #1e293b; }
.dataTables_wrapper .dt-buttons { display: inline-flex; gap: 0.5rem; flex-wrap: wrap; }
.dataTables_wrapper .dt-buttons .btn { margin: 0; }
.dataTables_empty { text-align: center; color: #94a3b8; padding: 2rem !important; }
table.dataTable { width: 100% !important; }
@media (max-width: 767.98px) {
  .dataTables_wrapper .dataTables_filter { text-align: left; margin-top: 0.5rem; }
  .dataTables_wrapper .dataTables_filter input { width: 100%; }
  .dataTables_wrapper .dataTables_paginate { justify-content: center; margin-top: 0.5rem; }
}

/* Sayfalama */
.pagination { display: flex; flex-wrap: wrap; gap: 0.25rem; list-style: none; padding-left: 0; margin: 0; }
.page-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2rem; height: 2rem; padding: 0 0.6rem;
  font-size: 0.75rem; font-weight: 700; color: #475569;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 0.6rem;
  text-decoration: none; cursor: pointer; transition: all 0.15s ease;
}
.page-link:hover { border-color: #00a8cc; color: #0b3b60; }
.page-item.active .page-link { background: #0b3b60; border-color: #0b3b60; color: #fff; }
.page-item.disabled .page-link { opacity: 0.45; pointer-events: none; }
.dark .page-link { background: #0f172a; border-color: #334155; color: #cbd5e1; }
.dark .page-item.active .page-link { background: #00a8cc; border-color: #00a8cc; color: #0f172a; }
.pagination-sm .page-link { min-width: 1.75rem; height: 1.75rem; }

/* --------------------------------------------------------------------------
   8. SEKMELER, NAV, DROPDOWN, BREADCRUMB
   -------------------------------------------------------------------------- */
.nav { display: flex; flex-wrap: wrap; padding-left: 0; margin-bottom: 0; list-style: none; }
.nav-item { list-style: none; }
.nav-link {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.55rem 1rem; font-size: 0.8125rem; font-weight: 600;
  color: #475569; text-decoration: none; background: none; border: 0;
  cursor: pointer; transition: all 0.15s ease;
}
.nav-link:hover { color: #0b3b60; }
.dark .nav-link { color: #94a3b8; }
.dark .nav-link:hover { color: #f8fafc; }
.nav-link.disabled { opacity: 0.45; pointer-events: none; }
.nav-fill > .nav-link, .nav-fill .nav-item { flex: 1 1 auto; text-align: center; }
.nav-fill .nav-item .nav-link { width: 100%; justify-content: center; }
.nav-justified .nav-item { flex: 1 1 0; }

.nav-pills { gap: 0.35rem; }
.nav-pills .nav-link { border-radius: 0.75rem; border: 1px solid transparent; }
.nav-pills .nav-link:hover { background-color: #f1f5f9; }
.dark .nav-pills .nav-link:hover { background-color: #1e293b; }
.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
  color: #fff; background-color: #0b3b60; border-color: #0b3b60;
  box-shadow: 0 4px 10px -4px rgba(11, 59, 96, 0.45);
}
.dark .nav-pills .nav-link.active { color: #0f172a; background-color: #00a8cc; border-color: #00a8cc; }

.nav-tabs { border-bottom: 1px solid #e2e8f0; gap: 0.25rem; }
.dark .nav-tabs { border-bottom-color: #1e293b; }
.nav-tabs .nav-link { margin-bottom: -1px; border-bottom: 2px solid transparent; border-radius: 0; }
.nav-tabs .nav-link.active, .nav-tabs .nav-item.show .nav-link { color: #0b3b60; border-bottom-color: #00a8cc; font-weight: 800; }
.dark .nav-tabs .nav-link.active { color: #38bdf8; }
.nav-align-top > .nav, .nav-align-left > .nav { margin-bottom: 1rem; }
.nav-align-top .tab-content, .nav-align-left .tab-content { background: transparent; }

.tab-content > .tab-pane { display: none; }
.tab-content > .active, .tab-pane.active.show, .tab-pane.active { display: block; }

.dropdown, .dropup, .dropstart, .dropend { position: relative; }
.dropdown-toggle { white-space: nowrap; }
.dropdown-toggle::after { display: inline-block; margin-left: 0.4em; content: ""; border-top: 0.3em solid; border-right: 0.3em solid transparent; border-left: 0.3em solid transparent; vertical-align: 0.15em; }
.dropdown-toggle.hide-arrow::after, .hide-arrow.dropdown-toggle::after { display: none; }
.dropdown-menu {
  position: absolute; z-index: 1060; display: none;
  min-width: 11rem; padding: 0.4rem; margin: 0;
  font-size: 0.8125rem; text-align: left; list-style: none;
  background-color: #fff; border: 1px solid #e2e8f0; border-radius: 1rem;
  box-shadow: 0 20px 40px -12px rgba(15, 23, 42, 0.25);
}
.dropdown-menu.show { display: block; }
.dropdown-menu-end { right: 0; left: auto; }
.dark .dropdown-menu { background-color: #0f172a; border-color: #1e293b; }
.dropdown-item {
  display: flex; align-items: center; gap: 0.5rem; width: 100%;
  padding: 0.45rem 0.75rem; clear: both; font-weight: 600; color: #334155;
  text-align: inherit; white-space: nowrap; background-color: transparent;
  border: 0; border-radius: 0.6rem; text-decoration: none; cursor: pointer;
}
.dropdown-item:hover, .dropdown-item:focus { color: #0b3b60; background-color: #f1f5f9; }
.dropdown-item.active, .dropdown-item:active { color: #fff; background-color: #0b3b60; }
.dropdown-item.disabled, .dropdown-item:disabled { opacity: 0.45; pointer-events: none; }
.dark .dropdown-item { color: #cbd5e1; }
.dark .dropdown-item:hover { color: #38bdf8; background-color: #1e293b; }
.dropdown-divider { height: 0; margin: 0.35rem 0; overflow: hidden; border-top: 1px solid #e2e8f0; }
.dark .dropdown-divider { border-top-color: #1e293b; }
.dropdown-header { display: block; padding: 0.4rem 0.75rem; font-size: 0.6875rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: #94a3b8; }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 0.35rem; list-style: none; padding: 0; margin-bottom: 1rem; font-size: 0.75rem; color: #64748b; }
.breadcrumb-item + .breadcrumb-item::before { content: "/"; padding-right: 0.35rem; color: #cbd5e1; }
.breadcrumb-item a { color: #00a8cc; text-decoration: none; }
.breadcrumb-item.active { color: #0f172a; font-weight: 700; }
.dark .breadcrumb-item.active { color: #f8fafc; }

/* --------------------------------------------------------------------------
   9. MODAL, FADE, COLLAPSE, TOOLTIP, POPOVER, TOAST, OFFCANVAS
   -------------------------------------------------------------------------- */
.fade { transition: opacity 0.15s linear; }
.fade:not(.show) { opacity: 0; }
.alert.fade:not(.show) { display: none; }
/* Tailwind'in .collapse (visibility:collapse) sınıfı açık Bootstrap collapse'ı gizlemesin */
.collapse.show, .collapsing, .navbar-collapse { visibility: visible !important; }

.modal-backdrop { position: fixed; top: 0; left: 0; z-index: 1050; width: 100vw; height: 100vh; background-color: transparent; }
.modal-backdrop.fade { opacity: 0; }
body.modal-open { overflow: hidden; }
.modal .modal-dialog { transition: transform 0.2s ease-out; }
.modal.fade:not(.show) .modal-dialog { transform: translateY(-12px); }
.modal-sm { max-width: 380px !important; }
.modal-md { max-width: 620px !important; }
.modal-fullscreen { max-width: none !important; width: 100vw; height: 100vh; margin: 0; }
.modal-fullscreen .modal-content { height: 100%; border-radius: 0; border: 0; }
.modal-dialog-scrollable { height: calc(100% - 3.5rem); }
.modal-dialog-scrollable .modal-content { max-height: 100%; overflow: hidden; }
.modal-dialog-scrollable .modal-body { overflow-y: auto; }
.modal.show .modal-dialog { margin-top: auto; margin-bottom: auto; }
@media (max-width: 575.98px) {
  .modal-dialog { margin: 0.75rem; }
}
.modal-header .btn-close { margin-left: auto; }
.modal-header.bg-primary .modal-title, .modal-header.bg-danger .modal-title, .modal-header.bg-success .modal-title, .modal-header.bg-info .modal-title, .modal-header.bg-dark .modal-title { color: #fff; }

.tooltip { position: absolute; z-index: 1080; display: block; font-size: 0.75rem; word-wrap: break-word; opacity: 0; }
.tooltip.show { opacity: 1; }
.tooltip-inner { max-width: 260px; padding: 0.4rem 0.65rem; color: #fff; text-align: center; background-color: #0f172a; border-radius: 0.5rem; }
.tooltip .tooltip-arrow { display: none; }
.popover { position: absolute; z-index: 1070; max-width: 300px; font-size: 0.8125rem; background-color: #fff; border: 1px solid #e2e8f0; border-radius: 0.875rem; box-shadow: 0 20px 40px -12px rgba(15, 23, 42, 0.25); }
.popover-header { padding: 0.6rem 0.85rem; font-weight: 800; border-bottom: 1px solid #e2e8f0; }
.popover-body { padding: 0.75rem 0.85rem; color: #334155; }
.popover .popover-arrow { display: none; }
.dark .popover { background-color: #0f172a; border-color: #1e293b; }
.dark .popover-body { color: #cbd5e1; }

.toast-container { position: fixed; z-index: 1090; }
.toast { width: 340px; max-width: 100%; font-size: 0.8125rem; background-color: #fff; border: 1px solid #e2e8f0; border-radius: 1rem; box-shadow: 0 20px 40px -12px rgba(15, 23, 42, 0.25); }
.toast:not(.show) { display: none; }
.toast-header { display: flex; align-items: center; padding: 0.6rem 0.85rem; border-bottom: 1px solid #e2e8f0; font-weight: 700; }
.toast-body { padding: 0.75rem 0.85rem; }

.offcanvas { position: fixed; bottom: 0; z-index: 1065; display: flex; flex-direction: column; max-width: 100%; background-color: #fff; visibility: hidden; transition: transform 0.25s ease-in-out; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
.offcanvas.show, .offcanvas.showing { visibility: visible; transform: none !important; }
.offcanvas-end { top: 0; right: 0; width: 420px; transform: translateX(100%); }
.offcanvas-start { top: 0; left: 0; width: 420px; transform: translateX(-100%); }
.offcanvas-header { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.5rem; border-bottom: 1px solid #e2e8f0; }
.offcanvas-title { font-weight: 800; font-size: 1rem; }
.offcanvas-body { flex-grow: 1; padding: 1.5rem; overflow-y: auto; }
.offcanvas-backdrop { position: fixed; inset: 0; z-index: 1060; background: rgba(15, 23, 42, 0.6); }
.dark .offcanvas { background-color: #0f172a; }

/* --------------------------------------------------------------------------
   10. BİLEŞENLER: alert ekleri, spinner, progress, avatar, rozet noktası, stepper
   -------------------------------------------------------------------------- */
.alert-dismissible { padding-right: 3rem; }
.alert-dismissible .btn-close { position: absolute; top: 0; right: 0; z-index: 2; padding: 1.15rem 1rem; }
.alert-heading { font-size: 0.9375rem; font-weight: 800; margin-bottom: 0.35rem; color: inherit; }
.alert-link { font-weight: 800; color: inherit; text-decoration: underline; }
.alert-light { background-color: #f8fafc; border-color: #e2e8f0; color: #334155; }
.alert-dark { background-color: #1e293b; border-color: #0f172a; color: #f8fafc; }
.dark .alert-light { background-color: rgba(30, 41, 59, 0.6); border-color: #334155; color: #cbd5e1; }

@keyframes kp-spinner-border { to { transform: rotate(360deg); } }
@keyframes kp-spinner-grow { 0% { transform: scale(0); } 50% { opacity: 1; transform: none; } }
.spinner-border { display: inline-block; width: 2rem; height: 2rem; vertical-align: -0.125em; border: 0.25em solid currentColor; border-right-color: transparent; border-radius: 50%; animation: 0.75s linear infinite kp-spinner-border; }
.spinner-border-sm { width: 1rem; height: 1rem; border-width: 0.18em; }
.spinner-grow { display: inline-block; width: 2rem; height: 2rem; vertical-align: -0.125em; background-color: currentColor; border-radius: 50%; opacity: 0; animation: 0.75s linear infinite kp-spinner-grow; }
.spinner-grow-sm { width: 1rem; height: 1rem; }

.progress { display: flex; height: 0.5rem; overflow: hidden; font-size: 0.65rem; background-color: #e2e8f0; border-radius: 9999px; }
.dark .progress { background-color: #1e293b; }
.progress-bar { display: flex; flex-direction: column; justify-content: center; overflow: hidden; color: #fff; text-align: center; white-space: nowrap; background-color: #00a8cc; transition: width 0.6s ease; }
.progress-bar-striped { background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-size: 1rem 1rem; }

.avatar { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 2.375rem; height: 2.375rem; flex-shrink: 0; border-radius: 0.75rem; }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.avatar-xs { width: 1.5rem; height: 1.5rem; }
.avatar-sm { width: 2rem; height: 2rem; }
.avatar-md { width: 3rem; height: 3rem; }
.avatar-lg { width: 3.5rem; height: 3.5rem; }
.avatar-xl { width: 4.5rem; height: 4.5rem; }
.avatar-initial { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: inherit; font-weight: 800; background: rgba(11, 59, 96, 0.1); color: #0b3b60; }
.avatar-online::after { content: ""; position: absolute; bottom: 0; right: 0; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 2px #fff; }
.badge-dot { display: inline-block; width: 0.5rem; height: 0.5rem; padding: 0; border-radius: 50%; }
.badge-center { display: inline-flex; align-items: center; justify-content: center; width: 1.5rem; height: 1.5rem; padding: 0; border-radius: 50%; }
.rounded-pill.badge { border-radius: 9999px !important; }
.badge.bg-label-primary, .badge.bg-label-success, .badge.bg-label-warning, .badge.bg-label-danger, .badge.bg-label-info, .badge.bg-label-secondary { font-weight: 700; }
.bg-secondary.badge, .badge.bg-secondary { color: #fff !important; }

/* bs-stepper (bildiri gönderim sihirbazı) */
.bs-stepper .bs-stepper-header { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; padding: 1rem 1.25rem; border-bottom: 1px solid #e2e8f0; }
.dark .bs-stepper .bs-stepper-header { border-color: #1e293b; }
.bs-stepper .step { display: flex; align-items: center; }
.bs-stepper .step-trigger { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.35rem 0.5rem; background: none; border: 0; border-radius: 0.75rem; cursor: pointer; text-align: left; color: #64748b; }
.bs-stepper .step-trigger:disabled { cursor: default; opacity: 0.6; }
.bs-stepper .bs-stepper-circle { display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border-radius: 0.75rem; font-weight: 800; font-size: 0.875rem; background: #f1f5f9; color: #64748b; flex-shrink: 0; }
.bs-stepper .bs-stepper-label { display: flex; flex-direction: column; line-height: 1.2; }
.bs-stepper .bs-stepper-title { font-size: 0.8125rem; font-weight: 800; color: #0f172a; }
.bs-stepper .bs-stepper-subtitle { font-size: 0.6875rem; color: #94a3b8; }
.dark .bs-stepper .bs-stepper-title { color: #f8fafc; }
.dark .bs-stepper .bs-stepper-circle { background: #1e293b; color: #94a3b8; }
.bs-stepper .step.active .bs-stepper-circle, .bs-stepper .step.crossed .bs-stepper-circle { background: #0b3b60; color: #fff; box-shadow: 0 4px 10px -4px rgba(11, 59, 96, 0.5); }
.dark .bs-stepper .step.active .bs-stepper-circle { background: #00a8cc; color: #0f172a; }
.bs-stepper .step.active .bs-stepper-title { color: #0b3b60; }
.dark .bs-stepper .step.active .bs-stepper-title { color: #38bdf8; }
.bs-stepper .line, .bs-stepper .bs-stepper-line { flex: 1 0 1.5rem; min-width: 1.5rem; height: 2px; background: #e2e8f0; color: #cbd5e1; display: flex; align-items: center; justify-content: center; }
.dark .bs-stepper .line { background: #1e293b; }
.bs-stepper .line i { display: none; }
.bs-stepper .bs-stepper-content { padding: 1.5rem; }
.bs-stepper .content:not(.active):not(.dstepper-block) { display: none; }
.bs-stepper .content.active, .bs-stepper .content.dstepper-block { display: block; }

/* Select2 tekli seçim (custom.css çoklu seçimi kapsıyor) */
.select2-container { width: 100% !important; }
.select2-container--default .select2-selection--single {
  height: 46px !important; border: 1px solid #cbd5e1 !important; border-radius: 0.875rem !important; background-color: #fff !important;
  display: flex !important; align-items: center;
}
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 44px !important; padding-left: 1rem !important; padding-right: 2rem !important; font-size: 0.875rem; color: #1e293b !important; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 44px !important; right: 0.5rem !important; }
.select2-container--default .select2-selection--single .select2-selection__placeholder { color: #94a3b8 !important; }
.dark .select2-container--default .select2-selection--single { background-color: #0b1320 !important; border-color: #334155 !important; }
.dark .select2-container--default .select2-selection--single .select2-selection__rendered { color: #f8fafc !important; }
.select2-search--dropdown .select2-search__field { border: 1px solid #cbd5e1 !important; border-radius: 0.6rem !important; padding: 0.4rem 0.6rem !important; }
.dark .select2-search--dropdown .select2-search__field { background: #0b1320; border-color: #334155 !important; color: #f8fafc; }
.select2-results__option { font-size: 0.8125rem; padding: 0.45rem 0.75rem !important; }
.dark .select2-container--default .select2-results__option[aria-selected="true"] { background-color: #1e293b !important; }
.select2-container--open { z-index: 1065; }

/* Flatpickr — Kongrera renkleri */
.flatpickr-calendar { border-radius: 1rem !important; box-shadow: 0 20px 40px -12px rgba(15, 23, 42, 0.25) !important; border: 1px solid #e2e8f0 !important; font-family: inherit; }
.flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange { background: #0b3b60 !important; border-color: #0b3b60 !important; }
.flatpickr-day.today { border-color: #00a8cc !important; }

/* SweetAlert2 — Kongrera görünümü */
.swal2-popup { border-radius: 1.5rem !important; font-family: "Plus Jakarta Sans", Inter, sans-serif !important; }
.swal2-title { font-size: 1.25rem !important; font-weight: 800 !important; color: #0f172a !important; }
.swal2-html-container { font-size: 0.875rem !important; color: #475569 !important; }
.dark .swal2-popup { background: #0f172a !important; }
.dark .swal2-title { color: #f8fafc !important; }
.dark .swal2-html-container { color: #cbd5e1 !important; }
.swal2-actions { gap: 0.5rem; }
.swal2-styled.swal2-confirm { background-color: #0b3b60 !important; border-radius: 0.75rem !important; }
.swal2-styled.swal2-cancel { border-radius: 0.75rem !important; }

/* CKEditor içeriği panel kartında taşmasın */
.kp-body .ck.ck-editor { width: 100%; }
.kp-body .ck-editor__editable { min-height: 220px; }

/* Koyu mod: Bootstrap kartı/listeleri içinde kalan açık zeminler */
.dark .card .bg-light, .dark .modal .bg-light { background-color: #1e293b !important; }
.dark .card .text-dark, .dark .modal .text-dark { color: #f8fafc !important; }
.dark .card .border, .dark .modal .border { border-color: #1e293b !important; }
.dark .list-group-item-action:hover { background-color: #1e293b; }
.list-group-item-action { cursor: pointer; width: 100%; text-align: left; }
.list-group-item-action:hover { background-color: #f8fafc; }
.list-group-flush { border: 0; border-radius: 0; }
.list-group-flush > .list-group-item { border-left: 0; border-right: 0; }
.list-group-item.active { background-color: #0b3b60; color: #fff; }
.accordion-header { margin: 0; }
.accordion-flush .accordion-item { border-left: 0; border-right: 0; border-radius: 0 !important; }

/* Yazdırma: panel kabuğunu gizle */
@media print {
  .kp-body .kp-topbar, .kp-body .kp-sidebar, .kp-body .kp-footer { display: none !important; }
  .kp-body .layout-container { display: block; }
}
