/* ===== Trezo-like Sidebar ===== */
.sidebar,
#sidebar,
.menu_background {
  background: #111936 !important;
  color: #fff !important;
  min-height: 100vh;
  width: 260px;
  border-right: none;
  box-shadow: 2px 0 24px -8px rgba(17, 25, 54, 0.13);
  font-family: 'Inter', 'Nunito', 'Open Sans', sans-serif;
}

.sidebar .sidebar-nav,
#sidebar .sidebar-nav {
  padding: 24px 0 0 0;
  margin: 0;
  list-style: none;
}

.sidebar .nav-item,
#sidebar .nav-item {
  margin-bottom: 6px;
}

.sidebar .nav-link,
#sidebar .nav-link {
  display: flex;
  align-items: center;
  color: #b4b9c5 !important;
  font-weight: 500;
  border-radius: 8px;
  padding: 10px 22px;
  transition: background 0.2s, color 0.2s;
  font-size: 1rem;
  gap: 12px;
  position: relative;
}

.sidebar .nav-link.active,
.sidebar .nav-link:hover,
#sidebar .nav-link.active,
#sidebar .nav-link:hover {
  background: #222e50 !important;
  color: #fff !important;
}

.sidebar .nav-link .badge,
#sidebar .nav-link .badge {
  background: #6c47ff;
  color: #fff;
  border-radius: 10px;
  font-size: 0.85em;
  margin-left: auto;
  padding: 2px 8px;
}

.sidebar .nav-link .hot,
#sidebar .nav-link .hot {
  background: #ff4d4f;
  color: #fff;
  border-radius: 8px;
  font-size: 0.8em;
  padding: 2px 7px;
  margin-left: 8px;
  font-weight: 600;
}

.sidebar .nav-link i,
#sidebar .nav-link i {
  font-size: 1.15em;
  margin-right: 8px;
  color: #6c47ff;
}

/* Sidebar section titles */
.sidebar .menu-title,
#sidebar .menu-title {
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: #8d93a7;
  margin: 24px 22px 10px 22px;
  font-weight: 700;
}

/* Show More link */
.sidebar .show-more,
#sidebar .show-more {
  color: #a788ff;
  font-weight: 600;
  font-size: 1em;
  display: block;
  margin: 18px 0 12px 22px;
  cursor: pointer;
  transition: color 0.2s;
}
.sidebar .show-more:hover,
#sidebar .show-more:hover {
  color: #fff;
}

/* ===== FIX NAVBAR COLOR TO MATCH SIDEBAR (TREZO THEME) ===== */
.navbar,
.topbar,
.header,
.navbar.navbar,
header.navbar,
nav.navbar {
  background: linear-gradient(90deg, #111936 60%, #222e50 100%) !important;
  border: none !important;
  box-shadow: 0 2px 12px rgba(17, 25, 54, 0.07);
  min-height: 60px;
  color: #fff !important;
  z-index: 1040;
}

/* Navbar brand/logo */
.navbar .navbar-brand,
.topbar .navbar-brand,
.header .navbar-brand {
  color: #fff !important;
  font-weight: bold;
  font-size: 1.35em;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Navbar search bar */
.navbar .search-bar,
.topbar .search-bar,
.header .search-bar {
  background: #fff;
  border-radius: 10px;
  padding: 5px 16px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 12px rgba(44, 62, 80, 0.08);
  margin-left: 32px;
  min-width: 320px;
  max-width: 460px;
  width: 100%;
}
.navbar .search-bar input,
.topbar .search-bar input,
.header .search-bar input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 1em;
  width: 100%;
  padding: 6px 4px;
  color: #222e50;
}
.navbar .search-bar input::placeholder,
.topbar .search-bar input::placeholder,
.header .search-bar input::placeholder {
  color: #8d93a7;
  opacity: 1;
}
/* Responsive */
@media (max-width: 991px) {
  .navbar,
  .topbar,
  .header {
    padding: 0 10px;
  }
  .navbar .search-bar,
  .topbar .search-bar,
  .header .search-bar {
    margin-left: 8px;
    min-width: 140px;
    max-width: 250px;
  }
}

/* ===== Main Content Area ===== */
body {
  background: #f7f9fb;
  font-family: 'Inter', 'Nunito', 'Open Sans', sans-serif;
  color: #222e50;
}

.main-content,
.content {
  margin-left: 260px;
  padding: 32px 32px 32px 32px;
  min-height: 100vh;
  background: #f7f9fb;
}

/* ===== Top Card (Greeting) ===== */
.dashboard-welcome {
  background: linear-gradient(90deg, #6c47ff 60%, #5578f8 100%);
  color: #fff;
  border-radius: 18px;
  padding: 32px 28px 24px 28px;
  margin-bottom: 32px;
  box-shadow: 0 6px 32px 0 rgba(44, 62, 80, 0.1);
}
.dashboard-welcome h2 {
  font-size: 1.35em;
  font-weight: 700;
  margin-bottom: 12px;
}
.dashboard-welcome .highlight {
  color: #ffe15d;
  font-weight: 700;
}

/* ===== Dashboard Stat Cards ===== */
.stat-card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 2px 16px rgba(44, 62, 80, 0.06);
  padding: 22px 20px 16px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-right: 18px;
  min-width: 210px;
}
.stat-card .stat-icon {
  background: #ededfc;
  color: #6c47ff;
  font-size: 1.5em;
  border-radius: 12px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stat-card .stat-main {
  font-size: 1.28em;
  font-weight: 700;
}
.stat-card .stat-desc {
  font-size: 1.93em;
  color: #8d93a7;
}

.info-card .fw-bold {
  font-size: 1.8em;
  font-weight: 700;
  color: #222e50; /* Sesuaikan warna jika perlu */
  line-height: 1.1;
}
.login_header {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: 16px; /* Atur jika ingin ada jarak ke bawah */
}

.login_header .logo img {
  max-width: 180px;    /* Atur maksimal lebar logo, misal 150–220px */
  width: 100%;
  height: auto;        /* Jaga rasio proporsional */
  display: block;
  margin: 0 auto;
  object-fit: contain;
  /* Untuk memastikan logo tidak 'meledak' jika ukuran file besar */
  box-shadow: none;
}
/* ===== Search Bar ===== */
.search-bar {
  background: #fff;
  border-radius: 12px;
  padding: 10px 18px;
  box-shadow: 0 2px 12px rgba(44, 62, 80, 0.08);
  border: 1px solid #e9eaf0;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.search-bar input {
  border: none;
  outline: none;
  background: none;
  font-size: 1em;
  width: 100%;
}
.nav-icon i {
  color: #fff !important;
}
.nav-link.nav-profile .dropdown-toggle,
.nav-profile .d-none.d-md-block.dropdown-toggle {
  color: #fff !important;
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
  .sidebar,
  #sidebar,
  .menu_background {
    width: 100vw;
    min-width: unset;
    position: fixed;
    left: -100vw;
    z-index: 1050;
    top: 0;
    transition: left 0.4s;
  }
  .sidebar.open,
  #sidebar.open,
  .menu_background.open {
    left: 0;
  }
  .main-content,
  .content {
    margin-left: 0;
    padding: 16px;
  }
}

@media (max-width: 600px) {
  .dashboard-welcome {
    padding: 18px 10px 14px 10px;
    font-size: 1em;
  }
  .stat-card {
    padding: 14px 10px 10px 10px;
    min-width: 150px;
    font-size: 0.95em;
  }
}

/* ===== Scrollbar Custom ===== */
.sidebar::-webkit-scrollbar,
#sidebar::-webkit-scrollbar {
  width: 8px;
  background: #222e50;
}
.sidebar::-webkit-scrollbar-thumb,
#sidebar::-webkit-scrollbar-thumb {
  background: #2b3761;
  border-radius: 10px;
}
