/* =====================
   Reset dasar
===================== */
body, h1, h2, h3, h4, h5, h6, ul, li, p {
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  background: #f7f7f7;
  color: #333;
  line-height: 1.5;
}

/* =====================
   Container utama
===================== */
#shopping-list {
  max-width: 800px;
  margin: 20px auto;
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#shopping-list h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #444;
}

.saldo {
  font-weight: bold;
  color: #2c3e50;
}

.total {
  font-weight: bold;
  color: #e74c3c;
}

/* =====================
   Tombol group
===================== */
.btn-group {
  display: flex;
  gap: 10px;
  margin: 15px 0;
}

.btn-group button {
  flex: 1;
  padding: 10px;
  border: none;
  background: #3498db;
  color: #fff;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-group button:hover {
  background: #2980b9;
}

/* =====================
   List produk
===================== */
.products {
  list-style: none;
  margin-top: 15px;
}

.products li {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  border-bottom: 1px solid #eee;
}

.products li span {
  flex: 1;
  text-align: center;
}

.products li span:first-child {
  text-align: left;
}

.products li span:last-child {
  text-align: right;
  font-weight: bold;
  color: #e74c3c;
}

/* =====================
   Modal
===================== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 10px;
}

.modal-content {
  background: #fff;
  border-radius: 10px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;       /* ✅ biar bisa scroll di HP */
  padding: 20px;
  position: relative;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.close-button {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
}

.close-button:hover {
  color: red;
}

/* =====================
   Saved Files
===================== */
.savedFilesList {
  list-style: none;
  margin-top: 15px;
}

.savedFilesList li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #ddd;
}

.savedFilesList button {
  background: #27ae60;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 12px;
}

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #f7f7f7; /* atau warna sesuai tema */
  text-align: center;
  font-size: 12px;
  color: #888;
  padding: 8px 0;
  box-shadow: 0 -2px 5px rgba(0,0,0


.savedFilesList button:hover {
  background: #1e8449;
}

/* =====================
   Responsif (HP)
===================== */
@media (max-width: 600px) {
  #shopping-list {
    margin: 10px;
    padding: 15px;
  }

  .btn-group {
    flex-direction: column;
  }

  .btn-group button {
    width: 100%;
  }

  .products li {
    flex-direction: column;
    align-items: flex-start;
  }

  .products li span {
    text-align: left;
    margin: 2px 0;
  }
}
