/* ===============================
   GLOBAL STYLING
=============================== */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #f5f6fa;
}

h1, h2 {
  margin: 0;
}

/* ===============================
   HEADER
=============================== */
.app-header {
  background: #1e272e;
  color: white;
  padding: 15px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 10;
}

.version {
  font-size: 12px;
  opacity: 0.7;
}

/* ===============================
   MAIN CONTENT
=============================== */
main {
  padding: 20px;
  margin-bottom: 150px; /* cukup space buat bottom nav */
}

.card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  display: none;
}

.card.active {
  display: block;
}

input {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  margin-bottom: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
  box-sizing: border-box;
}

button {
  width: 100%;
  padding: 12px;
  border: none;
  background: #0fbcf9;
  color: white;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.1s;
}

button:active {
  transform: scale(0.98);
}

/* ===============================
   BOTTOM NAVIGATION
=============================== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: white;
  display: flex;
  flex-direction: column; /* vertikal */
  align-items: center;
  padding: 10px 0;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  gap: 8px;
  z-index: 10;
}

.main-buttons {
  display: flex;
  gap: 10px; /* jarak antar tombol Kalkulator & Diskon */
  width: 90%;
}

.main-buttons button {
  flex: 1; /* tombol sama lebar */
}

/* ===============================
   ABOUT BUTTON
=============================== */
.about-button {
  width: 90%; /* lebar sama seperti tombol utama */
}

.about-button a {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px;
  background: #0fbcf9;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.1s;
}

.about-button a:active {
  transform: scale(0.98);
}

/* ===============================
   LEGAL LINKS
=============================== */
.legal-links {
  font-size: 0.8rem;
  color: #555;
  margin-top: 4px;
  text-align: center;
}

.legal-links a {
  text-decoration: none;
  color: #0fbcf9;
  margin: 0 4px;
}

.legal-links a:hover {
  text-decoration: underline;
}
