/**
 * Replix corporate theme override (portal.replix.com.tr)
 * 2026-09-27 — Bootstrap ve theme.min.css'in mavisini kurumsal kirmizi/gri/siyah paletle degistirir.
 * Yuklenme sirasi: bootstrap.min > vendors > theme.min > modal-fix > BU DOSYA (en son yuklenir).
 */

:root {
    /* Kurumsal renkler */
    --replix-red:       #e82339;
    --replix-red-hover: #c81730;
    --replix-red-dark:  #8f0a1e;
    --replix-red-soft:  #fef2f2;
    --replix-red-line:  #fecaca;
    --replix-ink:       #0a0a0b;
    --replix-gray-900:  #111827;
    --replix-gray-700:  #334155;
    --replix-gray-500:  #64748b;
    --replix-gray-300:  #cbd5e1;
    --replix-gray-100:  #f1f5f9;

    /* Bootstrap primary override */
    --bs-primary:       #e82339;
    --bs-primary-rgb:   232,35,57;
    --bs-link-color:    #e82339;
    --bs-link-color-rgb:232,35,57;
    --bs-link-hover-color: #c81730;
    --bs-link-hover-color-rgb: 200,23,48;
    --bs-dark:          #0a0a0b;
    --bs-dark-rgb:      10,10,11;

    /* Legacy theme variables */
    --primary-color:    #e82339;
    --primary-hover:    #c81730;
}

/* === Butonlar === */
.btn-primary,
.bg-primary {
    background-color: #e82339 !important;
    border-color: #e82339 !important;
    color: #fff !important;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.btn-primary:not(:disabled):not(.disabled):active,
.show > .btn-primary.dropdown-toggle {
    background-color: #c81730 !important;
    border-color: #c81730 !important;
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(232,35,57,.28) !important;
}
.btn-primary:focus,
.btn-primary.focus,
.btn-primary:not(:disabled):not(.disabled):active:focus {
    box-shadow: 0 0 0 .2rem rgba(232,35,57,.28) !important;
}
.btn-outline-primary {
    color: #e82339 !important;
    border-color: #e82339 !important;
}
.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary.active {
    background-color: #e82339 !important;
    border-color: #e82339 !important;
    color: #fff !important;
}
.btn-soft-primary {
    background-color: #fef2f2 !important;
    color: #c81730 !important;
    border-color: transparent !important;
}
.btn-soft-primary:hover {
    background-color: #fee2e2 !important;
    color: #8f0a1e !important;
}
.btn-dark,
.btn-secondary {
    background-color: #0a0a0b !important;
    border-color: #0a0a0b !important;
    color: #fff !important;
}
.btn-dark:hover,
.btn-secondary:hover {
    background-color: #1e293b !important;
    border-color: #1e293b !important;
}

/* === Linkler === (sadece primary vurgular kirmizi olsun; nav/sidebar/breadcrumb dokunulmaz) */
a.link-primary,
.text-primary,
.link-danger {
    color: #e82339 !important;
}
a.link-primary:hover,
.text-primary:hover {
    color: #c81730 !important;
}

/* === Formlar & Focus === */
/* 2026-09-27: TUM form input/select/textarea zemin — pastel kirmizi (#fef2f2) */
.form-control,
.form-select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
input[type="month"],
input[type="week"],
input[type="time"],
textarea,
select {
    background-color: #fef2f2 !important;
}
.form-control:focus,
.form-select:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="datetime-local"]:focus,
textarea:focus,
select:focus {
    background-color: #fff5f5 !important;
    border-color: #e82339 !important;
    box-shadow: 0 0 0 .2rem rgba(232,35,57,.15) !important;
}
/* Checkbox/radio ayri renklendirme */
.form-check-input:focus {
    border-color: #e82339 !important;
    box-shadow: 0 0 0 .2rem rgba(232,35,57,.15) !important;
}
.form-check-input:checked {
    background-color: #e82339 !important;
    border-color: #e82339 !important;
}
.form-switch .form-check-input:checked {
    background-color: #e82339 !important;
    border-color: #e82339 !important;
}
/* Devre disi (disabled) alanlar — pembe tonu ozelligini kaybetmesin ama daha sonuk */
.form-control:disabled,
.form-select:disabled,
.form-control[readonly] {
    background-color: #fdf2f2 !important;
    opacity: .75;
}

/* === Badges & Alerts === */
.badge.bg-primary,
.badge-primary,
.text-bg-primary {
    background-color: #e82339 !important;
    color: #fff !important;
}
.alert-primary {
    background-color: #fef2f2 !important;
    border-color: #fecaca !important;
    color: #8f0a1e !important;
}

/* === NXL Sidebar (portal ana menu) — koyu gri default, siyah hover, kirmizi aktif === */
.nxl-navigation .nxl-link,
.nxl-navigation .nxl-link .nxl-mtext,
.nxl-navigation .nxl-link .nxl-micon,
.nxl-navigation .nxl-link .nxl-micon i,
.nxl-navigation .nxl-caption {
    color: #64748b !important;
}
.nxl-navigation .nxl-link:hover,
.nxl-navigation .nxl-link:hover .nxl-mtext,
.nxl-navigation .nxl-link:hover .nxl-micon,
.nxl-navigation .nxl-link:hover .nxl-micon i {
    color: #0a0a0b !important;
    background-color: #f1f5f9 !important;
}
.nxl-navigation .nxl-item.active > .nxl-link,
.nxl-navigation .nxl-link.active {
    color: #e82339 !important;
    background-color: #fef2f2 !important;
    border-left: 0 !important;
}
.nxl-navigation .nxl-link.active .nxl-mtext,
.nxl-navigation .nxl-link.active .nxl-micon,
.nxl-navigation .nxl-link.active .nxl-micon i {
    color: #e82339 !important;
    background: transparent !important;
    border: 0 !important;
}
.nxl-navigation .nxl-item.nxl-hasmenu.active > .nxl-link .nxl-mtext,
.nxl-navigation .nxl-item.nxl-hasmenu.active > .nxl-link .nxl-micon i {
    color: #e82339 !important;
}
.nxl-navigation .nxl-item .nxl-submenu .nxl-item .nxl-link:hover {
    background-color: #f8fafc !important;
}
.nxl-navigation .nxl-item .nxl-submenu .nxl-link.active {
    color: #e82339 !important;
    background: transparent !important;
    border-left: 0 !important;
    font-weight: 700;
}

/* NXL top header (icons + user dropdown) */
.nxl-header .nxl-head-link {
    color: #64748b !important;
}
.nxl-header .nxl-head-link:hover {
    color: #0a0a0b !important;
}

/* Legacy sidebar (varsa) */
.sidebar,
.left-side-menu,
.navbar-vertical,
.side-nav {
    background-color: #0a0a0b !important;
}
.sidebar a,
.side-nav a,
.navbar-vertical a,
.left-side-menu a {
    color: #cbd5e1 !important;
}
.sidebar a:hover,
.side-nav a:hover,
.navbar-vertical a:hover,
.left-side-menu a:hover {
    color: #ffffff !important;
    background-color: rgba(232,35,57,.08) !important;
}
.sidebar .active > a,
.side-nav .active > a,
.navbar-vertical .active > a,
.left-side-menu .active > a {
    color: #ffffff !important;
    background-color: rgba(232,35,57,.16) !important;
    border-left: 3px solid #e82339 !important;
}

/* === Progress bars, spinners === */
.progress-bar {
    background-color: #e82339 !important;
}
.spinner-border.text-primary,
.spinner-grow.text-primary {
    color: #e82339 !important;
}

/* === Card border-primary === */
.card.border-primary,
.border-primary {
    border-color: #e82339 !important;
}
.card-header.bg-primary {
    background-color: #e82339 !important;
}

/* === Nav pills / tabs === */
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    background-color: #e82339 !important;
    color: #fff !important;
}
.nav-tabs .nav-link.active {
    color: #e82339 !important;
    border-bottom-color: #e82339 !important;
}

/* === Page-title / breadcrumb links === */
.page-title-box a,
.breadcrumb-item a {
    color: #64748b !important;
}
.page-title-box a:hover,
.breadcrumb-item a:hover {
    color: #e82339 !important;
}

/* === Yardimci sinir === */
.bg-danger-subtle,
.text-bg-danger-subtle {
    background-color: #fef2f2 !important;
    color: #8f0a1e !important;
}
.text-info,
.bg-info,
.badge.bg-info,
.alert-info {
    /* Mavi info tonlarini gri notre yapalim */
    background-color: #f1f5f9 !important;
    color: #334155 !important;
    border-color: #cbd5e1 !important;
}
.text-info { background-color: transparent !important; }

/* Vurgu ikon renkleri (feather / bootstrap icons) */
.icon-primary,
i.text-primary,
.fa-primary {
    color: #e82339 !important;
}

/* === Tablo satir hover — 2026-09-27 kurumsal pastel kirmizi === */
/* NOT: theme.min.css'te .table-responsive .table.table-hover>tbody>tr:hover>* selector kullaniliyor
   ve --bs-table-accent-bg: rgb(244 244 249) atiyor. Bu selectore ESIT/YUKSEK spesifite lazim. */
:root {
    --bs-table-hover-bg: #fef2f2 !important;
    --bs-table-hover-color: inherit;
    --bs-table-accent-bg: #fef2f2 !important;
}
/* Genel hover (dusuk spesifite) */
.table > tbody > tr:hover > *,
.table-hover > tbody > tr:hover > *,
table.dataTable > tbody > tr:hover > * {
    background-color: #fef2f2 !important;
    --bs-table-bg-state: #fef2f2 !important;
    --bs-table-accent-bg: #fef2f2 !important;
    color: inherit !important;
    box-shadow: none !important;
}
/* Yuksek spesifite — theme.min.css'in .table-responsive prefix'iyle esles */
.table-responsive .table.table-hover > tbody > tr:hover > *,
.table-responsive .table > tbody > tr:hover > *,
.table-responsive table.dataTable.table-hover > tbody > tr:hover > *,
.table-responsive table.dataTable > tbody > tr:hover > *,
.table-responsive .table.table-striped > tbody > tr:hover > *,
.table-responsive .table.table-striped > tbody > tr:nth-of-type(odd):hover > *,
body .table-responsive .table > tbody > tr:hover > * {
    background-color: #fef2f2 !important;
    --bs-table-bg-state: #fef2f2 !important;
    --bs-table-accent-bg: #fef2f2 !important;
    color: inherit !important;
    box-shadow: none !important;
}
/* Striped nth-of-type hover  */
.table-striped > tbody > tr:nth-of-type(odd):hover > *,
.table-striped > tbody > tr:hover > * {
    background-color: #fef2f2 !important;
    --bs-table-accent-bg: #fef2f2 !important;
}
/* DataTables secili satir */
table.dataTable tbody tr.selected,
table.dataTable tbody tr.selected > * {
    background-color: #fee2e2 !important;
    color: inherit !important;
}
/* Legacy varyasyonlar */
.nxl-table > tbody > tr:hover > *,
.data-table tbody tr:hover,
tbody tr.rx-hover:hover {
    background-color: #fef2f2 !important;
}
