/*
* demo.css
* File include item demo only specific css only
******************************************************************************/
body {
  background-color: #f4f5fb; /* abu sangat terang, bersih */
  color: #769daf; /* hampir hitam, nyaman dibaca */
  font-family: 'Public Sans', sans-serif;
}


.menu .app-brand.demo {
  height: 64px;
  margin-top: 12px;
  /* Ganti background atau border jadi hijau muda */
  border-bottom: 2px solid #28a745; /* hijau */
}

.app-brand-logo.demo svg {
  width: 22px;
  height: 38px;
  /* warnanya hijau */
  fill: #28a745;
}

.app-brand-text.demo {
  font-size: 1.75rem;
  letter-spacing: -0.5px;
  text-transform: lowercase;
  color: #28a745; /* hijau dominan */
}

/* ! For .layout-navbar-fixed added fix padding top tpo .layout-page */
/* Detached navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-horizontal):not(.layout-without-menu) .layout-page {
  padding-top: 76px !important;
}
/* Default navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 64px !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;
  /* Border or shadow dengan aksen orange */
  border: 4px solid #ff6600; /* orange aksen */
  border-radius: 8px;
}

.modal-header {
  border-bottom: 1px solid #28a745; /* hijau */
}

.layout-demo-info {
  text-align: center;
  margin-top: 1rem;
  color: #28a745; /* hijau */
  font-weight: 600;
}

/* Tambahan: tombol dan link orange sebagai aksen */
button,
a,
.btn,
.link {
  color: #ff6600;
  border-color: #ff6600;
  transition: all 0.3s ease;
}

button:hover,
a:hover,
.btn:hover,
.link:hover {
  color: #ffffff;
  /* background-color: #ff6600; */
  border-color: #ff6600;
}

/* Highlight border hijau untuk focus input */

input:focus,
textarea:focus,
select:focus {
  border-color: #28a745;
  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}


/* 🌈 Menu Default Background (non-active) */
.bg-menu-theme .menu-inner .menu-item > .menu-link {
  background: linear-gradient(to right, rgba(255, 255, 255, 0.5), rgba(40, 167, 69, 0.05));
  color: #444;
  font-weight: normal;
  border-radius: 6px;
  transition: all 0.3s ease;
}

/* 🔍 Hover */
.bg-menu-theme .menu-inner .menu-item > .menu-link:hover {
  background: linear-gradient(to right, rgba(255, 255, 255, 0.7), rgba(40, 167, 69, 0.15));
  color: #000;
}

/* 🟠 Active Menu */
.bg-menu-theme .menu-inner .menu-item.active > .menu-link,
.bg-menu-theme .menu-inner .menu-item.active .menu-sub .menu-item.active > .menu-link {
  background: linear-gradient(135deg, rgba(252, 122, 4, 0.15), rgba(40, 167, 69, 0.2)) !important;
  font-weight: bold !important;
  color: #000 !important;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1;
}

/* 🔽 Submenu hover/active */
.bg-menu-theme .menu-sub .menu-item > .menu-link:hover,
.bg-menu-theme .menu-sub .menu-item.active > .menu-link {
  background: rgba(255, 255, 255, 0.9);
  color: #000 !important;
  font-weight: bold;
  border-left: 3px solid #fc7a04;
  border-radius: 4px;
}

.swal2-container {
  z-index: 20000 !important;
}

th.text-center {
        text-align: center;
        vertical-align: middle !important;
    }

.select-wilayah {
        z-index: 9999 !important;
}

#vertical-example {
    height: 300px;
    overflow-y: auto; /* Scroll vertikal */
    overflow-x: hidden; /* Hilangkan scroll horizontal */
}
/* Efek hover biasa */
.focusable-table tbody tr:hover {
    background-color: #f0f8ff; /* warna hover */
    cursor: pointer; /* biar kelihatan klikable */
}

/* Efek fokus setelah klik (tetap muncul walau cursor keluar) */
.focusable-table tbody tr.focused {
    background-color: #ffddab; /* warna fokus */
}
.editable-tenor {
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.editable-tenor:hover {
    background-color: #f0f8ff; /* biru muda hover */
}
.table-hover tbody tr:hover {
    background-color: #fad8bd !important; /* ganti dengan warna yang diinginkan */
}
.table-hover tbody tr:hover td,
.table-hover tbody tr:hover th {
    color: #fa6502 !important;
}
table thead {
    color: #000; /* warna teks header */
}
#toggleButton {
        transition: all 0.3s ease;
}

/* Hover smooth berbeda per level */
tr.level-program {
    transition: background-color 0.3s ease;
}

tr.level-program:hover {
    background-color: rgba(49, 132, 253, 0.2);
    /* biru muda transparan */
}

tr.level-kegiatan {
    transition: background-color 0.3s ease;
}

tr.level-kegiatan:hover {
    background-color: rgba(255, 193, 7, 0.2);
    /* kuning muda transparan */
}

tr.level-subkegiatan {
    transition: background-color 0.3s ease;
}

tr.level-subkegiatan:hover {
    background-color: rgba(25, 135, 84, 0.2);
    /* hijau muda transparan */
}
/* Hover efek untuk row yang bisa di-expand */
.clickable-row {
    cursor: pointer;
    transition: background-color 0.2s;
}
.clickable-row:hover {
    background-color: #f0f8ff; /* biru muda, bisa disesuaikan */
}

/* Animasi slide-down dan fade */
.bs-toast {
    transform: translateY(-20px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.bs-toast.show {
    transform: translateY(0);
    opacity: 1;
}
