/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BODY */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f4f7fb;
  color: #1c1c1c;

  width: 100%;
  min-height: 100vh;

  overflow-x: hidden;
}

/* ========================= */
/* PAGE SYSTEM (FIX BUG) */
/* ========================= */

/* HANYA page utama */
#menu, #login, #register, #dashboard {
  width: 100%;
  min-height: 100vh;
  padding: 20px;

  display: none;
}

/* tampil */
#menu:not(.hidden),
#login:not(.hidden),
#register:not(.hidden),
#dashboard:not(.hidden) {
  display: flex;
  flex-direction: column;
  justify-content: center;

  animation: fadeIn 0.3s ease;
}

/* hidden class */
.hidden {
  display: none !important;
}

/* animasi */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================= */
/* TITLE */
/* ========================= */
h1 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 20px;
}

/* ========================= */
/* FORM */
/* ========================= */
form {
  background: white;
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* INPUT */
input, select {
  width: 100%;
  padding: 14px;
  margin: 8px 0;

  border-radius: 14px;
  border: none;

  font-size: 16px;
  background: #f9fafb;

  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* BUTTON */
button {
  width: 100%;
  padding: 16px;
  margin-top: 12px;

  border-radius: 14px;
  border: none;

  font-weight: 600;
  font-size: 16px;

  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: white;

  box-shadow: 0 10px 25px rgba(99,102,241,0.3);

  cursor: pointer;
}

button:active {
  transform: scale(0.96);
}

/* ========================= */
/* DASHBOARD */
/* ========================= */
.card {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: white;

  border-radius: 20px;
  padding: 24px;
  margin: 16px 0;

  box-shadow: 0 15px 40px rgba(59,130,246,0.3);
}

.balance {
  font-size: 26px;
  font-weight: bold;
}

.rek {
  font-size: 13px;
  opacity: 0.8;
}

/* ACTION */
.action-container {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.action-btn {
  flex: 1;
  text-align: center;
  font-size: 12px;
}

.action-circle {
  width: 55px;
  height: 55px;
  margin: 0 auto 6px;

  background: white;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 20px;

  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* HISTORY */
#history {
  margin-top: 16px;
  background: white;
  border-radius: 16px;
  padding: 14px;
}

#history p {
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px solid #eee;
}

/* ========================= */
/* ✨ SHINE USERNAME EFFECT */
/* ========================= */
/* ========================= */
/* ✨ SHINE USERNAME EFFECT */
/* ========================= */
.shine-text {
  position: relative;
  display: inline-block;
  font-weight: 600;

  background: linear-gradient(
    90deg,
    #ffffff 0%,
    #dbeafe 25%,
    #ffffff 50%,
    #dbeafe 75%,
    #ffffff 100%
  );

  background-size: 200% auto;

  /* bikin gradient jadi teks */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  animation: shineMove 3s linear infinite;
}

@keyframes shineMove {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}


/* ========================= */
/* DESKTOP */
/* ========================= */
@media (min-width: 768px) {
  body {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 40px;
  }

  #menu, #login, #register, #dashboard {
    max-width: 420px;
    min-height: auto;

    background: white;
    border-radius: 20px;

    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
  }
}