html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: #f5f6f8;
}

body {
  font-family: Arial, sans-serif;
}

/* =========================================================
   APP CONTAINER
   ========================================================= */

.app-container {
  width: 100%;
  max-width: 500px;
  min-height: 100vh;
  margin: auto;
  background: #fff;
  position: relative;
  overflow-x: hidden;
}

/* =========================================================
   HEADER
   ========================================================= */

.app-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #eef2ff;
  border-bottom: 1px solid #c7d2fe;
}

.app-header-inner {
  height: 60px;
}

.app-logo {
  height: 35px;
  width: auto;
}

.app-title {
  font-size: 16px;
  font-weight: 600;
  color: #3730a3;
}

/* =========================================================
   CONTENT
   ========================================================= */

.app-content {
  min-height: calc(100vh - 60px);
  padding: 15px;
  padding-bottom: 85px;
}

/* =========================================================
   BOTTOM NAVIGATION
   ========================================================= */

.app-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 500px;
  height: 65px;
  background: #fff;
  border-top: 1px solid #ddd;
  z-index: 1000;
  display: flex;
  align-items: stretch;
}

.app-bottom-nav button {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: #777;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 11px;
  cursor: pointer;
}

.app-bottom-nav button i {
  font-size: 19px;
}

.app-bottom-nav button span {
  line-height: 1;
}

.app-bottom-nav button.active {
  color: #0d6efd;
}

/* =========================================================
   AJAX LOADING
   ========================================================= */

#ajax-loading {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.65);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

#ajax-loading.show {
  display: flex;
}

/* =========================================================
   MENU PANEL
   ========================================================= */

.menu-panel {
  display: none;
  position: fixed;
  right: max(10px, calc((100vw - 500px) / 2 + 10px));
  bottom: 70px;
  width: 280px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
  z-index: 1100;
  overflow: hidden;
}

.menu-panel.show {
  display: block;
}

.menu-panel-item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 13px 16px;
  border: 0;
  border-bottom: 1px solid #eee;
  background: #fff;
  color: #333;
  text-align: left;
  cursor: pointer;
}

.menu-panel-item:last-child {
  border-bottom: 0;
}

.menu-panel-item:hover {
  background: #f5f5f5;
}

.menu-panel-item i {
  width: 30px;
  margin-right: 10px;
  text-align: center;
}

.menu-panel-item span {
  font-size: 14px;
}

/* =========================================================
   DASHBOARD
   ========================================================= */

.dashboard {
  padding-bottom: 10px;
}

.dashboard-card {
  padding: 15px;
  border: 1px solid;
  border-radius: 12px;
}

.dashboard-card-indigo {
  background: #eef2ff;
  border-color: #c7d2fe;
}

.dashboard-card-blue {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.dashboard-card-green {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.dashboard-card-orange {
  background: #fff7ed;
  border-color: #fed7aa;
}

.dashboard-card-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  border-radius: 10px;
  font-size: 17px;
}

.dashboard-card-indigo .dashboard-card-icon {
  background: #e0e7ff;
  color: #3730a3;
}

.dashboard-card-blue .dashboard-card-icon {
  background: #dbeafe;
  color: #1d4ed8;
}

.dashboard-card-green .dashboard-card-icon {
  background: #dcfce7;
  color: #15803d;
}

.dashboard-card-orange .dashboard-card-icon {
  background: #ffedd5;
  color: #c2410c;
}

.dashboard-card-value {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  color: #111827;
}

.dashboard-card-label {
  margin-top: 3px;
  font-size: 12px;
  color: #6b7280;
}

.dashboard-section {
  margin-top: 20px;
}

.dashboard-section-title {
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #374151;
}

.dashboard-status {
  padding: 15px;
  border: 1px solid;
  border-radius: 12px;
}

.dashboard-status-green {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.dashboard-status-orange {
  background: #fff7ed;
  border-color: #fed7aa;
}

.dashboard-status-icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  border-radius: 9px;
  font-size: 15px;
}

.dashboard-status-green .dashboard-status-icon {
  background: #dcfce7;
  color: #15803d;
}

.dashboard-status-orange .dashboard-status-icon {
  background: #ffedd5;
  color: #c2410c;
}

.dashboard-status-value {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
}

.dashboard-status-label {
  margin-top: 3px;
  font-size: 12px;
  color: #6b7280;
}

/* =========================================================
   DESKTOP / RESPONSIVE
   ========================================================= */

@media (min-width: 501px) {
  body {
    background: #e9ecef;
  }

  .app-container {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
  }
}

@media (min-width: 768px) {
  .app-container {
    max-width: 900px;
  }

  .app-bottom-nav {
    max-width: 900px;
  }

  .menu-panel {
    right: max(10px, calc((100vw - 900px) / 2 + 10px));
  }
}

@media (max-width: 767px) {
  body {
    font-size: 14px;
  }

  .app-title {
    font-size: 15px;
  }

  .app-content {
    padding: 12px;
    padding-bottom: 85px;
  }

  .table {
    font-size: 13px;
  }

  .form-label {
    font-size: 13px;
  }

  .form-control,
  .form-select {
    font-size: 14px;
  }

  .btn {
    font-size: 13px;
  }
}

@media (max-width: 575.98px) {
  .hide-mobile {
    display: none !important;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .hide-tablet {
    display: none !important;
  }
}

::placeholder {
  color: #cbd5e1 !important;
  opacity: 1;
  font-weight: 400;
}

:-ms-input-placeholder {
  color: #cbd5e1 !important;
}

::-ms-input-placeholder {
  color: #cbd5e1 !important;
}

/* =========================
   MENU ICON
   ========================= */

.menu-panel-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 10px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 17px;
}

/* WARNA ICON */

.menu-blue {
  color: #2563eb;
  background: #dbeafe;
}

.menu-green {
  color: #16a34a;
  background: #dcfce7;
}

.menu-orange {
  color: #ea580c;
  background: #ffedd5;
}

.menu-purple {
  color: #7c3aed;
  background: #ede9fe;
}

.menu-red {
  color: #e11d48;
  background: #ffe4e6;
}

/* =========================
   PROFILE MENU
   ========================= */

.profile-menu {
  position: fixed;

  right: 12px;
  bottom: 72px;

  width: 210px;

  background: #fff;

  border: 1px solid #e5e7eb;
  border-radius: 14px;

  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);

  padding: 8px;

  z-index: 1050;

  display: none;
}

.profile-menu.show {
  display: block;
}

.profile-menu-item {
  width: 100%;

  display: flex;
  align-items: center;

  gap: 10px;

  border: 0;
  background: transparent;

  padding: 8px;

  border-radius: 10px;

  text-align: left;

  font-size: 14px;
}

.profile-menu-item:hover {
  background: #f8fafc;
}

.profile-menu-item .menu-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;

  border-radius: 9px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
}
