/*
* demo.css
* File include item demo only specific css only
******************************************************************************/

.light-style .menu .app-brand.demo {
  height: 64px;
}

.dark-style .menu .app-brand.demo {
  height: 64px;
}

.app-brand-logo.demo {
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: center;
  justify-content: center;
  display: -ms-flexbox;
  display: flex;
  width: 34px;
  height: 24px;
}

.app-brand-logo.demo svg {
  width: 35px;
  height: 24px;
}

.app-brand-text.demo {
  font-size: 1.375rem;
}

/* ! For .layout-navbar-fixed added fix padding top tpo .layout-page */
.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 64px !important;
}
.layout-navbar-fixed .layout-wrapper:not(.layout-horizontal):not(.layout-without-menu) .layout-page {
  padding-top: 78px !important;
}
/* Navbar page z-index issue solution */
.content-wrapper .navbar {
  z-index: auto;
}

/*
* Content
******************************************************************************/

.demo-blocks > * {
  display: block !important;
}

.demo-inline-spacing > * {
  margin: 1rem 0.375rem 0 0 !important;
}

/* ? .demo-vertical-spacing class is used to have vertical margins between elements. To remove margin-top from the first-child, use .demo-only-element class with .demo-vertical-spacing class. For example, we have used this class in forms-input-groups.html file. */
.demo-vertical-spacing > * {
  margin-top: 1rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-lg > * {
  margin-top: 1.875rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-lg.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-xl > * {
  margin-top: 5rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-xl.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.rtl-only {
  display: none !important;
  text-align: left !important;
  direction: ltr !important;
}

[dir='rtl'] .rtl-only {
  display: block !important;
}

/*
* Layout demo
******************************************************************************/

.layout-demo-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  margin-top: 1rem;
}
.layout-demo-placeholder img {
  width: 900px;
}
.layout-demo-info {
  text-align: center;
  margin-top: 1rem;
}

/* ============================================================
   CUSTOM COLOR OVERRIDE: Ganti Ungu (#6610f2) -> Hijau Emerald (#059669)
   ============================================================ */

/* -- Primary color utilities -- */
.text-primary { color: #059669 !important; }
.bg-primary    { background-color: #059669 !important; }
.bg-primary.bg-glow { box-shadow: 0px 2px 3px 0px rgba(5,150,105,0.35) !important; }
.bg-label-primary { background-color: #d1fae5 !important; color: #059669 !important; }
.border-primary { border-color: #059669 !important; }

/* -- Buttons -- */
.btn-primary {
  background-color: #059669 !important;
  border-color: #059669 !important;
  color: #fff !important;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.show > .btn-primary.dropdown-toggle {
  background-color: #047857 !important;
  border-color: #047857 !important;
  color: #fff !important;
}
.btn-primary.disabled,
.btn-primary:disabled {
  background-color: #059669 !important;
  border-color: #059669 !important;
}
.btn-outline-primary {
  color: #059669 !important;
  border-color: #059669 !important;
}
.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary.active {
  background-color: #d1fae5 !important;
  border-color: #059669 !important;
  color: #059669 !important;
}
.btn-label-primary {
  color: #059669 !important;
  background: #d1fae5 !important;
  border-color: transparent !important;
}
.btn-label-primary:hover,
.btn-label-primary:focus {
  background: #a7f3d0 !important;
  color: #059669 !important;
}

/* -- Links -- */
a:hover { color: #059669 !important; }

/* -- Navbar -- */
.bg-navbar-theme { border-bottom: 2px solid #e2e8f0; }

/* -- Sidebar / Menu -- */
.bg-menu-theme .menu-inner > .menu-item.active > .menu-link:not(.menu-toggle) {
  background: linear-gradient(72.47deg, #059669 22.16%, rgba(5,150,105,0.7) 76.47%) !important;
  box-shadow: 0px 2px 6px 0px rgba(5,150,105,0.45) !important;
  color: #fff !important;
}
.bg-menu-theme .menu-inner > .menu-item.active:before {
  background-color: #059669 !important;
}
.bg-menu-theme .menu-inner .menu-item.open > .menu-link.menu-toggle,
.bg-menu-theme .menu-inner .menu-item.active > .menu-link.menu-toggle {
  background: rgba(5,150,105,0.08) !important;
  color: #059669 !important;
}
.bg-menu-theme .menu-item:not(.active) .menu-link:hover {
  background: rgba(5,150,105,0.06) !important;
}

/* -- Active indicator bar on menu -- */
.layout-wrapper:not(.layout-horizontal) .bg-menu-theme .menu-inner > .menu-item.active:before {
  background-color: #059669 !important;
}

/* -- Form controls focus -- */
.form-control:focus,
.form-select:focus {
  border-color: #059669 !important;
  box-shadow: 0 0 0 0.2rem rgba(5,150,105,0.25) !important;
}
.input-group:focus-within .form-control,
.input-group:focus-within .input-group-text {
  border-color: #059669 !important;
}
.form-check-input:focus { border-color: #059669 !important; }
.form-check-input:checked,
.form-check-input[type=checkbox]:indeterminate {
  background-color: #059669 !important;
  border-color: #059669 !important;
}
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label {
  color: #059669 !important;
}

/* -- Switch -- */
.switch-input:checked ~ .switch-toggle-slider { background: #059669 !important; }
.switch-input:focus ~ .switch-toggle-slider { border-color: #059669 !important; }

/* -- Pagination -- */
.page-item.active .page-link,
.pagination li.active > a:not(.page-link),
.page-item > .page-link.active {
  background-color: #059669 !important;
  border-color: #059669 !important;
}

/* -- Badges -- */
.badge.bg-primary { background-color: #059669 !important; }
.badge.bg-label-primary { background-color: #d1fae5 !important; color: #059669 !important; }

/* -- Dropdown active -- */
.dropdown-item:not(.disabled).active,
.dropdown-item:not(.disabled):active {
  background-color: #059669 !important;
}

/* -- Nav pills -- */
.nav-pills .nav-link.active,
.nav-pills .nav-link.active:hover,
.nav-pills .nav-link.active:focus {
  background-color: #059669 !important;
}

/* -- Nav tabs active underline -- */
.nav-tabs .nav-link.active,
.nav-tabs .nav-link.active:hover,
.nav-tabs .nav-link.active:focus {
  box-shadow: 0 -2px 0 #059669 inset !important;
}

/* -- Progress bar -- */
.progress-bar { background-color: #059669 !important; }

/* -- Alert primary -- */
.alert-primary {
  background-color: #d1fae5 !important;
  border-color: #a7f3d0 !important;
  color: #065f46 !important;
}
.alert-primary .alert-link { color: #059669 !important; }

/* -- List group -- */
.list-group-item-primary {
  background-color: #d1fae5 !important;
  border-color: #a7f3d0 !important;
  color: #059669 !important;
}
.list-group-item-action.active {
  background-color: #059669 !important;
  border-color: #059669 !important;
}

/* -- Scrollbar/scrollup -- */
.scrollup:hover { background-color: #059669 !important; }
.scrollup_style1 { background-color: #059669 !important; }

/* -- Table primary -- */
.table-primary {
  --bs-table-bg: #ecfdf5 !important;
  --bs-table-hover-bg: #d1fae5 !important;
}

/* -- Dropdown notification dot -- */
.dropdown-notifications-item:not(.mark-as-read) .dropdown-notifications-read span {
  background-color: #059669 !important;
}

/* -- Card header bg-primary override -- */
.card-header.bg-primary { background-color: #059669 !important; }

/* -- Text default utility class (template style.css) -- */
.text_default { color: #059669 !important; }
.bg_default   { background-color: #059669 !important; }

/* -- Config.js JS-injected color, override via CSS var -- */
:root {
  --bs-primary: #059669 !important;
  --bs-primary-rgb: 5, 150, 105 !important;
}
