@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
a {
  text-decoration: none;
  color: inherit;
}

html {
  background: #f9fafb;
}

body {
  margin: 0;
  background-color: #f9fafb;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  min-height: 100vh;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
}
.modal-480 {
  max-width: 480px;
}
.modal-backdrop {
    backdrop-filter: blur(18px);
    background: rgba(0,0,0,.55);
}
.modal-content {
    animation: zoomIn .25s ease;
}

@keyframes zoomIn {
    from { transform: scale(.9); opacity:0 }
    to   { transform: scale(1); opacity:1 }
}

.main-wrapper {
  width: 480px;
  margin: 0 auto;
  background-color: #f9fafb;
  min-height: 100vh;
  padding-bottom: 100px !important;
}

.header-section {
  background-color: #ffd100;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* position: relative; */

  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.user-icon {
  width: 37px;
  height: 37px;
}

.user-icon-sm {
  width: 27px;
  height: 27px;
}

.greeting-text,
.profile-text {
  font-weight: 600;
  color: #131927;
  margin: 0;
}

.greeting-text {
  font-size: 18px;
  flex: 1;
}

.profile-text {
  font-size: 16px;
}

.header-icons {
  display: flex;
  gap: 8px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-btn img {
  width: 24px;
  height: 24px;
}

/* banner */
.banner-section {
  width: 100%;
  height: 249px;
  overflow: hidden;
}

.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.info-card-index {
  background: linear-gradient(301deg, rgba(255, 209, 0, 1) 0%, rgba(255, 255, 255, 1) 100%);
  padding: 12px 16px 24px;
  border-radius: 12px 12px 0 0;
  margin-top: -12px;
  position: relative;
  z-index: 1;
}

.info-title {
  font-size: 18px;
  font-weight: 600;
  color: #131927;
  margin-top: 0;
  margin-bottom: 2px;
}

.info-text {
  font-size: .875rem;
  color: #131927;
}

/* CONTENT */
.content-section {
  background: #f9fafb;
  padding: 16px;
  border-radius: 12px 12px 0 0;
  margin-top: -12px;
  position: relative;
  z-index: 2;
}

/* calculate card */
.calculate-card {
  background-color: #fff;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0px 4px 4px -2px rgba(19, 25, 39, 0.008), 0px 2px 4px -2px rgba(19, 25, 39, 0.12);
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  background: linear-gradient(
    to bottom,
    #8a8a8a 0%,
    #6b6b6b 20%,
    #2a2a2a 55%,
    #000000 100%
  );
}

.calc-icon {
  flex-shrink: 0;
  width: 44%;
}

.calc-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background-color: #fff;
  /* box-shadow: 0px 8px 8px -4px rgba(19, 25, 39, 0.008), 0px 4px 6px -4px rgba(19, 25, 39, 0.12); */
  border-radius: 50px;
}

.calc-text {
  font-size: 1rem;
  font-weight: 500;
  color: #000;
}

.arrow-icon {
  width: 20px;
  height: 20px;
}

/* menu grid */
.menu-grid {
  /* margin-left: 8px;
  margin-right: 8px; */
  margin-bottom: 20px;
}

.menu-grid a {
  text-decoration: none;
}

.menu-item {
  background-color: #fff;
  border-radius: 8px;
  padding: 8px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 80px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.menu-item img {
  width: 26px;
  height: 26px;
  object-fit: cover;
}

.menu-item span {
  font-size: .775rem;
  font-weight: 500;
  color: #131927;
  line-height: 14px;
}

/* promo banner */
.promo-banner {
  max-width: 100%;
  border-radius: 8px;
}

.promo-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* untuk per section */
.title-section {
  margin-top: 20px;
  margin-bottom: 10px;
}

.title-section h5 {
  margin-bottom: 0;
  font-size: 16px;
  font-weight: 600;
  color: #131927;
}

.title-section span {
  font-size: 12px;
}

/* card custom */
.custom-card.card {
  border-radius: 10px;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  height: 100%;
}

.custom-card .card-body {
  border-radius: 16px 16px 0 0;
}

/* personal best ada tambahan */
.custom-card .card-icon {
  width: 27px;
  height: 27px;
  object-fit: cover;
  border-radius: 50%;
  text-align: center;
  margin-bottom: 6px;
}

.custom-card .card-label {
  font-size: .775rem;
  font-weight: 500;
  color: #4d5461;
  text-align: center;
  line-height: 17px;
  margin-bottom: 5px;
}

.custom-card .card-value {
  text-align: center;
}

.custom-card .value-number {
  font-size: 14px;
  font-weight: 600;
  color: #131927;
}

.custom-card .value-unit {
  font-size: 12px;
  font-weight: 600;
  color: #131927;
  margin-left: 2px;
}

.custom-card .card-status {
  font-size: 10px;
  font-weight: 500;
  color: #131927;
  text-align: center;
}

/* Table */
table {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 0px !important;
}

table thead {
  background-color: #ffd100;
  border-radius: 10px;
}

table thead tr td:first-child {
  border-top-left-radius: 10px;
}

table thead tr td:last-child {
  border-top-right-radius: 10px;
}

table thead td {
  background-color: #ffd100 !important;
  text-align: center;
  vertical-align: middle;
}

table td {
  padding: 10px;
  border: 2px solid #f9fafb;
  vertical-align: middle;
}

.btn-report {
  background: #FFBB33;
  padding: 5px 15px;
  border: none;
  border-radius: 10px;
  color: #fff;
}

/* bottom nav */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background-color: #fff;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-around;
  padding: 8px 0;
  z-index: 1000;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  text-decoration: none;
  color: #9ea2ae;
  flex: 1;
}

.nav-item i {
  font-size: 24px;
}

.nav-item img {
  width: 24px;
  height: 24px;
}

.nav-item span {
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
}

.nav-item.active {
  color: #ffd100;
}

.nav-item.active span {
  font-weight: 500;
}

/* Responsive */
@media (max-width: 480px) {
  body {
    max-width: 100%;
  }

  .main-wrapper {
    max-width: 100%;
  }

  .bottom-nav {
    max-width: 100%;
  }
  .calc-content {
    padding: 16px;
  }
  .calc-icon {
    flex-shrink: 0;
    width: 51%;
  }
}

.chart-wrapper {
  background: #fff;
  border-radius: 12px;
  padding: 10px;
}

canvas {
  max-width: 100%;
}

.form-card.card {
  border-radius: 16px;
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin: 14px 12px;
  background-color: #fff;

}

.form-card .card-header {
  background: #ffd100;
  border-bottom: 1px solid #e5e5e5;
  font-size: 15px;
  padding: 12px;
  border-radius: 16px 16px 0 0;
}

.form-card .card-header.gradient {
  background: linear-gradient(358deg, rgba(255, 209, 0, 1) 0%, rgba(255, 255, 255, 1) 100%);
}

.form-card .card-body {
  padding: 16px;
}

.form-card .card-body h5 {
  font-size: 16px;
  font-weight: 600;
}

.form-card .btn-submit {
  font-size: 15px;
  border-radius: 25px;
  padding-top: 15px;
  padding-bottom: 15px;
}

.form-label {
  font-size: 14px;
  font-weight: 500;
  color: #666;
  margin-bottom: 6px;
}

.form-select,
.form-control {
  border-radius: 10px;
  font-size: 15px;
  padding: 10px;
  border: 1px solid #e5e5e5;
  box-shadow: none !important;
}

.form-select:focus,
.form-control:focus {
  border-color: #FFC107;
}

.btn-warning {
  background: linear-gradient(90deg, #FFD100 0%, #FFDA30 100%);
  border: none;
  border-radius: 20px;
  padding: 11px;
  font-size: 15px;
  font-weight: 600;
}

.btn-outline-warning{
  border-radius: 20px;
}

.btn-warning:hover {
  background: #e6ac00;
}
.w-24 {
    width: 24% !important;
}