/*
 * Leaf ERP – Classic modern theme: green, blue, white
 * Admin area overrides
 */

/* Page background */
body {
  background: #c6d4f5 !important;
  color: #1e293b !important;
}

/* Header bar */
#header {
  background: #ffffff !important;
  border-bottom: 1px solid #bae6fd !important;
  box-shadow: 0 1px 3px rgba(30, 64, 175, 0.08) !important;
}

.navbar-nav > li > a {
  color: #1e40af !important;
}

.navbar-nav > li > a:hover,
.navbar-nav > li > a:focus {
  color: #15803d !important;
  background: #f0fdf4 !important;
}

#header li > a.active {
  background: #dbeafe !important;
  color: #1e40af !important;
}

/* Sidebar */
.sidebar {
  background: #ffffff !important;
  border-right: 1px solid #bae6fd !important;
}

[dir="rtl"] .sidebar {
  border-left: 1px solid #bae6fd !important;
}

.sidebar ul.nav li a {
  color: #1e40af !important;
}

.sidebar ul.nav li a i.menu-icon {
  color: #2563eb !important;
}

.sidebar > ul.nav > li:hover a:first-child,
.sidebar > ul.nav > li.active a:first-child {
  background: #dbeafe !important;
  border-color: #93c5fd !important;
}

.sidebar ul.nav li.active > a,
.sidebar ul.nav > li > a:hover,
.sidebar ul.nav > li > a:focus,
.sidebar ul.nav li.active > a .menu-icon,
.sidebar ul.nav > li > a:hover .menu-icon,
.sidebar ul.nav > li > a:focus .menu-icon {
  color: #1e40af !important;
}

.sidebar ul.nav li .nav-second-level li a {
  color: #334155 !important;
}

.sidebar ul.nav li .nav-second-level li.active a,
.sidebar ul.nav > li .nav-second-level > li:not(.active) > a:hover,
.sidebar ul.nav > li .nav-second-level > li:not(.active) > a:focus {
  color: #15803d !important;
}

.sidebar ul.nav li .nav-second-level a:hover .menu-icon,
.sidebar ul.nav li .nav-second-level a:focus .menu-icon {
  color: #15803d !important;
}

.sidebar > ul.nav > li.active {
  border-left-color: #15803d !important;
}

[dir="rtl"] .sidebar > ul.nav > li.active {
  border-right-color: #15803d !important;
}

/* Panels / cards */
.panel-default {
  border-color: #bae6fd !important;
}

.panel-default > .panel-heading {
  background: #f0f9ff !important;
  border-color: #bae6fd !important;
  color: #1e40af !important;
}

/* Primary buttons (blue) */
.btn-primary,
.tw-bg-primary-600,
.tw-bg-blue-600 {
  background: #1e40af !important;
  border-color: #1e40af !important;
  color: #ffffff !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background: #1d4ed8 !important;
  border-color: #1d4ed8 !important;
  color: #ffffff !important;
}

/* Success / green */
.btn-success,
.tw-bg-success-600,
.label-success,
.badge-success {
  background: #15803d !important;
  border-color: #15803d !important;
  color: #ffffff !important;
}

.btn-success:hover,
.btn-success:focus {
  background: #166534 !important;
  border-color: #166534 !important;
  color: #ffffff !important;
}

/* Info / light blue */
.btn-info,
.label-info {
  background: #2563eb !important;
  border-color: #2563eb !important;
  color: #ffffff !important;
}

/* Links */
a {
  color: #1e40af !important;
}

a:hover,
a:focus {
  color: #15803d !important;
}

/* Tables */
.table > thead > tr > th {
  background: #f0f9ff !important;
  border-color: #bae6fd !important;
  color: #1e40af !important;
}

/* Alerts */
.alert-success {
  background: #f0fdf4 !important;
  border-color: #86efac !important;
  color: #166534 !important;
}

.alert-info {
  background: #eff6ff !important;
  border-color: #93c5fd !important;
  color: #1e40af !important;
}

/* Login / auth page */
body.admin-auth,
body.admin-auth .panel {
  background: #c6d4f5 !important;
  border-color: #bae6fd !important;
}

body.admin-auth .btn-primary {
  background: #1e40af !important;
  border-color: #1e40af !important;
}

body.admin-auth .panel-heading {
  background: #1e40af !important;
  color: #ffffff !important;
  border-color: #1e40af !important;
}
