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

.menu .app-brand.demo {
  height: 64px;
  margin-top: 12px;
}

.app-brand-logo.demo svg {
  width: 22px;
  height: 38px;
}

.app-brand-text.demo {
  font-size: 1.75rem;
  letter-spacing: -0.5px;
}

/* ! For .layout-navbar-fixed added fix padding top to .layout-page */
/* Detached navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-horizontal):not(.layout-without-menu) .layout-page {
  padding-top: 74px !important;
}
/* Default navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 64px !important;
}
.docs-page .layout-navbar-fixed.layout-wrapper:not(.layout-without-menu) .layout-page,
.docs-page .layout-menu-fixed.layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 62px !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;
}

/* Dropdown buttons going out of small screens */
@media (max-width: 576px) {
  #dropdown-variation-demo .btn-group .text-truncate {
    width: 231px;
    position: relative;
  }
  #dropdown-variation-demo .btn-group .text-truncate::after {
    position: absolute;
    top: 45%;
    right: 0.65rem;
  }
}

/*
* 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;
}

html {
  transition: background-color 0.3s ease, color 0.3s ease;
}

.card, .navbar, .dropdown-menu {
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ============================================
   DARK MODE – FULL SNEAT PRO COLOR SYSTEM FIX
   ============================================ */
[data-bs-theme="dark"] {
  --bs-body-bg: #1d1f27;
  --bs-bg-level-1: #2b2d36;
  --bs-bg-level-2: #22242b;
  --bs-border-color: #3b3d47;
  --bs-text-color: #e4e4e7;
  --bs-heading-color: #ffffff;
  --bs-muted: #9d9da3;
}

/* Background utama */
[data-bs-theme="dark"] body {
  background-color: var(--bs-body-bg) !important;
}

/* Navbar */
[data-bs-theme="dark"] .layout-navbar,
[data-bs-theme="dark"] .navbar {
  background-color: var(--bs-bg-level-2) !important;
  border-bottom: 1px solid var(--bs-border-color) !important;
  color: var(--bs-text-color) !important;
}

/* Sidebar */
[data-bs-theme="dark"] .layout-menu {
  background-color: var(--bs-bg-level-2) !important;
  color: var(--bs-text-color) !important;
}

[data-bs-theme="dark"] .menu-inner > .menu-item > a,
[data-bs-theme="dark"] .menu-link,
[data-bs-theme="dark"] .menu-header {
  color: var(--bs-text-color) !important;
}

/* Active menu item */
[data-bs-theme="dark"] .menu-item.active > a {
  background-color: #3b3d47 !important;
  color: #fff !important;
}

/* Card */
[data-bs-theme="dark"] .card {
  background-color: var(--bs-bg-level-1) !important;
  border-color: var(--bs-border-color) !important;
  color: var(--bs-text-color) !important;
}

/* Card title */
[data-bs-theme="dark"] .card h4,
[data-bs-theme="dark"] .card-title {
  color: var(--bs-text-color) !important;
}

/* Text */
[data-bs-theme="dark"] .text-body,
[data-bs-theme="dark"] .text-muted,
[data-bs-theme="dark"] p,
[data-bs-theme="dark"] span,
[data-bs-theme="dark"] h1, 
[data-bs-theme="dark"] h2, 
[data-bs-theme="dark"] h3, 
[data-bs-theme="dark"] h4, 
[data-bs-theme="dark"] h5, 
[data-bs-theme="dark"] h6 {
  color: var(--bs-text-color) !important;
}

/* Dropdown */
[data-bs-theme="dark"] .dropdown-menu {
  background-color: var(--bs-bg-level-2) !important;
  border-color: var(--bs-border-color) !important;
}

/* Input */
[data-bs-theme="dark"] input,
[data-bs-theme="dark"] .form-control {
  background-color: #3a3c45 !important;
  color: #fff !important;
  border-color: var(--bs-border-color) !important;
}

/* Charts Grid Line Color */
[data-bs-theme="dark"] .apexcharts-gridline {
  stroke: #3f414a !important;
}

/* Icon */
[data-bs-theme="dark"] i,
[data-bs-theme="dark"] .icon-base {
  color: #d4d4d8 !important;
}

/* Transition smooth */
html, body, .card, .navbar, .dropdown-menu, .layout-menu {
  transition: background-color .25s ease, color .25s ease;
}

/* ============================================
   DARK MODE — ICON BACKGROUND FIX (HIGH VISIBILITY)
   ============================================ */

[data-bs-theme="dark"] .avatar,
[data-bs-theme="dark"] .avatar img {
  background-color: transparent !important;
}

/* Warna background icon card */
[data-bs-theme="dark"] .card .avatar {
  background-color: rgba(255, 255, 255, 0.08) !important;
  border-radius: 10px !important;
}

/* ICON GENERIC FIX (biar lebih terlihat) */
[data-bs-theme="dark"] .card .avatar i,
[data-bs-theme="dark"] .card .avatar img {
  opacity: 0.95 !important;
  filter: brightness(1.3) contrast(1.2) !important;
}

/* Specific icon background based on category */
[data-bs-theme="dark"] .card .avatar.bg-label-success {
  background-color: rgba(52, 199, 89, 0.28) !important;
}

[data-bs-theme="dark"] .card .avatar.bg-label-info {
  background-color: rgba(90, 200, 250, 0.28) !important;
}

[data-bs-theme="dark"] .card .avatar.bg-label-warning {
  background-color: rgba(255, 204, 0, 0.28) !important;
}

[data-bs-theme="dark"] .card .avatar.bg-label-primary {
  background-color: rgba(88, 86, 214, 0.28) !important;
}

[data-bs-theme="dark"] .card .avatar.bg-label-secondary {
  background-color: rgba(120, 120, 120, 0.28) !important;
}

/* ICON di server uptime card */
[data-bs-theme="dark"] #serverStatusIcon,
[data-bs-theme="dark"] #libStatusIcon {
  filter: brightness(1.4) !important;
}

/* Circle icon small (di header navbar) */
[data-bs-theme="dark"] .icon-small,
[data-bs-theme="dark"] .bx {
  color: #696cff !important;
}

/* ===========================
   DARK MODE — YEAR BADGE FIX
   =========================== */
[data-bs-theme="dark"] .badge.year-badge,
[data-bs-theme="dark"] .badge.bg-label-warning {
  background-color: rgba(255, 200, 0, 0.20) !important;
  color: #ffde68 !important;      /* lebih terang, tetap warm */
  border: 1px solid rgba(255, 200, 0, 0.35) !important;
  box-shadow: 0 0 6px rgba(255, 200, 0, 0.25) !important;
  padding: 4px 10px !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
}

/* ===========================
   DARK MODE TOOLTIP FIX
   =========================== */
[data-bs-theme="dark"] .apexcharts-tooltip,
[data-bs-theme="dark"] .apexcharts-tooltip.apexcharts-theme-light {
  background: rgba(20, 20, 25, 0.92) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45) !important;
  backdrop-filter: blur(4px) !important;
  color: #f1f1f1 !important;
}

/* Tooltip Title */
[data-bs-theme="dark"] .apexcharts-tooltip-title {
  background: rgba(30, 30, 35, 0.95) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

/* Tooltip Marker (warna dot kecil) */
[data-bs-theme="dark"] .apexcharts-tooltip-marker {
  border: none !important;
}

/* Tooltip box radius */
[data-bs-theme="dark"] .apexcharts-tooltip,
[data-bs-theme="dark"] .apexcharts-tooltip-title {
  border-radius: 8px !important;
}

  .verified-badge {
    color: #FF0000;
    margin-left: 4px;
    font-size: 13px;
  }
  
/* ================================
   FIX FORM THEME (Sneat Style)
================================ */

/* Label */
.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #566a7f;
  margin-bottom: 6px;
}

/* Input */
.form-control {
  border: 1px solid #d7dce5 !important;
  background: #f8f9fa !important;
  height: 42px !important;
  border-radius: 8px !important;
  padding: 8px 14px !important;
  font-size: 0.95rem !important;
  transition: all .2s ease;
}

.form-control:focus {
  border-color: #696cff !important;
  background: #fff !important;
  box-shadow: 0 0 0 0.18rem rgba(105,108,255,0.15) !important;
}

/* Section Titles */
.card-title, h5 {
  color: #364a63;
  font-weight: 700;
}

/* Divider bawah section */
h5.border-bottom {
  border-bottom: 2px solid #e4e6ef !important;
}

/* Card padding fix */
.card {
  border-radius: 14px !important;
  padding: 22px !important;
  box-shadow: 0 4px 18px rgba(0,0,0,0.05) !important;
}

.dropdown {
  position: relative;
  width: 100%;
}

.dropdown-display {
  padding: 12px;
  background: #f5f6fa;
  border: 1px solid #d9d9e0;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
}

.dropdown-options {
  display: none;
  position: absolute;
  width: 100%;
  background: #fff;
  margin-top: 4px;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.dropdown-option {
  padding: 10px;
  cursor: pointer;
  transition: 0.1s;
}

.dropdown-option:hover {
  background: #f1f1f5;
}

.dropdown.open .dropdown-options {
  display: block;
}

.mt-4, .mt-5 {
  margin-top: 28px !important;
}

.mb-4 {
  margin-bottom: 18px !important;
}