/**
 * Arte Mülk admin — site ile aynı renk paleti (#c5955b / #674921)
 * Şablon turuncusu (#EB8153) yerine geçer; style.css sonrası yüklenir.
 */
:root {
  --artemulk-primary: #c5955b;
  --artemulk-primary-dark: #674921;
  --artemulk-primary-mid: #a67c45;
  --artemulk-highlight: #b19777;
  --artemulk-primary-light: rgba(197, 149, 91, 0.12);
  --artemulk-primary-shadow: rgba(197, 149, 91, 0.22);
  --primary: var(--artemulk-primary);
  --secondary: var(--artemulk-primary-mid);
}

[data-primary="color_1"],
[data-primary="color_13"] {
  --primary: var(--artemulk-primary) !important;
  --secondary: var(--artemulk-primary-mid) !important;
}

/* Logo */
.nav-header .brand-logo {
  padding-left: 1.25rem !important;
  padding-right: 1.25rem !important;
}

.nav-header .brand-logo img.logo-abbr {
  display: block !important;
  max-height: 46px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

[data-theme-version="light"] .nav-header .brand-logo .logo-light,
.nav-header .brand-logo .logo-light {
  display: none !important;
}

[data-theme-version="light"] .nav-header .brand-logo .logo-dark,
.nav-header .brand-logo .logo-dark {
  display: block !important;
}

[data-theme-version="dark"] .nav-header .brand-logo .logo-dark {
  display: none !important;
}

[data-theme-version="dark"] .nav-header .brand-logo .logo-light {
  display: block !important;
}

[data-theme-version="dark"] .nav-header {
  background-color: #1e2740 !important;
}

[data-theme-version="dark"] .nav-header .hamburger .line {
  background: #fff !important;
}

[data-sidebar-style="mini"] .nav-header .brand-logo img.logo-abbr,
.menu-toggle .nav-header .brand-logo img.logo-abbr {
  max-width: 42px;
  max-height: 42px;
}

/* Hamburger menü */
.hamburger .line,
.hamburger:hover .line,
.nav-header .hamburger .line,
.nav-header .nav-control .hamburger .line,
[data-sidebar-style="full"][data-layout="vertical"] .menu-toggle .nav-header .nav-control .hamburger .line,
[data-sidebar-style="mini"] .nav-header .nav-control .hamburger .line {
  background: var(--artemulk-primary) !important;
}

/* Sidebar aktif / hover */
.deznav .metismenu > li:hover > a,
.deznav .metismenu > li:focus > a,
.deznav .metismenu > li.mm-active > a {
  color: var(--artemulk-primary) !important;
  background: var(--artemulk-primary-light) !important;
}

.deznav .metismenu > li:hover > a i,
.deznav .metismenu > li:focus > a i,
.deznav .metismenu > li.mm-active > a i {
  color: var(--artemulk-primary) !important;
}

.deznav .metismenu > li:hover > a g [fill],
.deznav .metismenu > li:focus > a g [fill],
.deznav .metismenu > li.mm-active > a g [fill] {
  fill: var(--artemulk-primary) !important;
}

[data-sidebar-style="compact"] .deznav .metismenu > li.mm-active > a i {
  background: var(--artemulk-primary-light) !important;
  color: var(--artemulk-primary) !important;
  box-shadow: 0 12px 15px 0 var(--artemulk-primary-shadow) !important;
}

.deznav .metismenu ul a:hover,
.deznav .metismenu ul a:focus,
.deznav .metismenu ul a.mm-active {
  color: var(--artemulk-primary) !important;
}

[data-sidebar-style="full"][data-layout="vertical"] .deznav .metismenu > li > a:before {
  background: var(--artemulk-primary) !important;
}

/* Başlıklar */
.page-titles h4,
.card-header h4,
.card-header .card-title,
.card-title.text-primary {
  color: var(--artemulk-primary-dark) !important;
}

/* Üst bar — çıkış linki */
.header-right .header-profile > a,
.header-right .header-profile > a span,
.header-right .header-profile > a:hover,
.header-right .header-profile > a:focus {
  color: var(--artemulk-primary-dark) !important;
}

.header-right .header-profile > a svg.text-danger {
  stroke: var(--artemulk-primary) !important;
  color: var(--artemulk-primary) !important;
}

.copyright p strong {
  color: var(--artemulk-primary-dark);
}

/* Butonlar & formlar */
.auth-logo {
  max-height: 72px;
  width: auto;
  max-width: 260px;
}

.auth-form .btn-primary,
.auth-form .btn-success {
  background: linear-gradient(
    135deg,
    var(--artemulk-primary) 0%,
    var(--artemulk-primary-mid) 50%,
    var(--artemulk-primary-dark) 100%
  ) !important;
  border: none !important;
}

.btn-primary,
.btn-success,
.badge-primary {
  background-color: var(--artemulk-primary) !important;
  border-color: var(--artemulk-primary) !important;
}

.btn-primary:hover,
.btn-success:hover,
.btn-primary:focus,
.btn-success:focus {
  background-color: var(--artemulk-primary-mid) !important;
  border-color: var(--artemulk-primary-mid) !important;
}

.btn-outline-primary {
  color: var(--artemulk-primary) !important;
  border-color: var(--artemulk-primary) !important;
}

.btn-outline-primary:hover {
  background-color: var(--artemulk-primary) !important;
  border-color: var(--artemulk-primary) !important;
}

.bg-primary {
  background-color: var(--artemulk-primary) !important;
}

.text-primary,
a.text-primary {
  color: var(--artemulk-primary) !important;
}

a:hover,
a:focus {
  color: var(--artemulk-primary-mid);
}

.form-control:focus,
.custom-select:focus {
  border-color: var(--artemulk-primary) !important;
  box-shadow: 0 0 0 0.2rem rgba(197, 149, 91, 0.25) !important;
}

/* Tablo & sayfalama */
.table .thead-primary th,
.table.primary-table-bg-hover thead th {
  background-color: var(--artemulk-primary-dark) !important;
}

.pagination .page-item.active .page-link {
  background-color: var(--artemulk-primary) !important;
  border-color: var(--artemulk-primary) !important;
  box-shadow: 0 10px 20px 0 var(--artemulk-primary-shadow) !important;
}

.pagination .page-item .page-link:hover {
  color: var(--artemulk-primary) !important;
  background: var(--artemulk-primary-light) !important;
  border-color: var(--artemulk-primary-light) !important;
}

/* Preloader */
#preloader .sk-child {
  background-color: var(--artemulk-primary) !important;
}
