body {
  font-family: Arial, sans-serif;
  background-color: #f2f2f2;
  margin: 0;
  padding: 20px;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  background-color: #fff;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

h1 {
  text-align: center;
  color: #333;
  margin-top: 15px;
}

h2 {
  margin-top: 10px;
  color: #666;
}

label {
  display: block;
  margin-bottom: 10px;
  color: #666;
}

input[type="text"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 16px;
}

button {
  background-color: #4caf50;
  color: #fff;
  border: none;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
  /* margin-top: 10px; */
}

/* -------------- HASIL PERHITUNGAN ----------- */
.result {
  margin-top: 20px;
  background-color: #f9f9f9;
  padding: 10px;
  border-radius: 4px;
  max-width: 100%;
  overflow-x: auto;
}

.result table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}

.result th,
.result td {
  padding: 8px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.result th {
  background-color: #f2f2f2;
}

.result tr:hover {
  background-color: #f5f5f5;
}

/* --------------- END HASIL PERHITUNGAN ----------------- */

.input-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* Tambahkan ini agar elemen dapat bungkus ke baris baru */
}
.input-container input {
  flex: 1;
  margin-right: 10px;
}

.input-container button {
  white-space: nowrap;
}

.input-group {
  display: flex;
  align-items: stretch;
  width: 100%;
}

.input-group-prepend {
  display: flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  margin-bottom: 0;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #495057;
  text-align: center;
  white-space: nowrap;
  background-color: #e9ecef;
  border: 1px solid #ced4da;
  border-right: 0;
  border-radius: 0.25rem 0 0 0.25rem;
}

.input-group input[type="text"] {
  position: relative;
  flex: 1 1 auto;
  width: 1%;
  margin-bottom: 0;
  border: 1px solid #ced4da;
  border-left: 0;
  border-radius: 0 0.25rem 0.25rem 0;
}

.bank-info {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
}

.bank-info img {
  height: 50px;
  width: auto;
}

/* Style untuk tab */
.nav-tabs li {
  list-style-type: none;
}
.nav-tabs .nav-link {
  text-decoration: none; /* Menghilangkan garis underline */
}
.tab-container {
  margin-bottom: 30px;
  margin-top: 35px;
}

.nav-tabs {
  display: flex;
  justify-content: center;
  border-bottom: 2px solid #dee2e6;
  margin-bottom: -2px;
  padding: 0;
}

.nav-tabs .nav-item {
  margin-bottom: -2px;
  margin-right: 10px;
}

.nav-tabs .nav-item:last-child {
  margin-right: 0;
}

.nav-tabs .nav-link {
  color: #666;
  padding: 12px 24px;
  border: none;
  border-bottom: 2px solid transparent;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out, border-color 0.3s ease-in-out;
  background-color: #f2f2f2;
}

.nav-tabs .nav-link.active {
  color: #333;
  background-color: #fff;
  border: 1px solid #b5d6fafb;
  border-bottom: 2px solid #007bff;
}

.nav-tabs .nav-link:hover {
  color: #333;
  background-color: #e6e6e6d5;
  border-bottom-color: #007bff;
}

.tab-content {
  padding: 0;
  background-color: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.tab-pane {
  display: none;
}

.tab-pane.show {
  display: block;
}
.info {
  box-shadow: none;
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.info p {
  position: relative;
  padding-left: 20px;
  margin: 0;
  line-height: 1.6;
  font-size: 14px;
  color: #555;
}

.info p::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #333;
}

.info p:first-child {
  margin-top: 10px !important;
  font-weight: bold;
  color: #333;
  padding-left: 0;
}

.info p:first-child::before {
  display: none;
}
.conclusion-tabungan,
.conclusion-deposito {
  background-color: #f2f7ff;
  border: 2.5px solid #cce0ff;
  border-radius: 4px;
  padding: 10px;
  margin-top: 25px;
  font-size: 16px;
  color: #333;
  text-align: center;
  position: relative;
  overflow: hidden;
  --d: 8s;
  --angle: 90deg;
  --gradX: 50%;
  --gradY: 0%;
  --c1: rgba(168, 239, 255, 1);
  --c2: rgba(168, 239, 255, 0.1);
  border-image: conic-gradient(from var(--angle), var(--c2), var(--c1) 0.1turn, var(--c1) 0.15turn, var(--c2) 0.25turn) 30;
  animation: borderRotate var(--d) linear infinite;
  outline: 1.5px solid rgba(168, 239, 255, 0.5); /* Tambahkan border outline */
  outline-offset: -1.5px; /* Mengatur jarak border outline dari border dalam */
}
.conclusion-tabungan p,
.conclusion-deposito p {
  margin: 0;
  padding: 10px 0;
  position: relative;
  z-index: 1;
}

.conclusion-deposito {
  text-align: left;
}

/* sebelum klik hitung deposito kesimpulan */
.conclusion-deposito.text-center {
  text-align: center;
  padding: 10px;
}

.conclusion-deposito ul {
  margin: 0;
  padding-left: 0;
  list-style-position: inside;
}

.conclusion-deposito li {
  margin-top: 8px;
  margin-bottom: 5px;
  padding-left: 10px;
}

.paralax-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.line {
  position: absolute;
  width: 300%;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.4);
  transform: rotate(-45deg);
  animation: paralax 10s linear infinite;
}

.line-1 {
  top: 20%;
  left: -100%;
  animation-delay: 0s;
}

.line-2 {
  top: 40%;
  left: -50%;
  animation-delay: -2.5s;
}

.line-3 {
  top: 60%;
  left: -150%;
  animation-delay: -5s;
}

.line-4 {
  top: 80%;
  left: -100%;
  animation-delay: -7.5s;
}

@keyframes paralax {
  0% {
    transform: translateX(0) rotate(-45deg);
  }
  100% {
    transform: translateX(100%) rotate(-45deg);
  }
}

@property --angle {
  syntax: "<angle>";
  initial-value: 90deg;
  inherits: true;
}

@property --gradX {
  syntax: "<percentage>";
  initial-value: 50%;
  inherits: true;
}

@property --gradY {
  syntax: "<percentage>";
  initial-value: 0%;
  inherits: true;
}

:root {
  --d: 2500ms;
  --angle: 90deg;
  --gradX: 100%;
  --gradY: 50%;
  --c1: rgba(168, 239, 255, 1);
  --c2: rgba(168, 239, 255, 0.1);
}

.conclusion-tabungan,
.conclusion-deposito {
  border-image: conic-gradient(from var(--angle), var(--c2), var(--c1) 0.1turn, var(--c1) 0.15turn, var(--c2) 0.25turn) 30;
  animation: borderRotate var(--d) linear infinite forwards;
}

@keyframes borderRotate {
  100% {
    --angle: 420deg;
  }
}

.note {
  font-size: 10px !important;

  color: #666; /* Mengubah warna teks menjadi abu-abu */
  font-style: italic; /* Membuat teks miring */
  margin-top: 5px;
}
footer {
  color: #333;
  text-align: center;
  padding: 10px;
  height: 50px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
}

.footer-content {
  display: flex;
  align-items: center;
}

.footer-content a {
  color: #333;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.footer-content a:hover {
  text-decoration: underline;
}

.github-icon {
  width: 16px;
  height: 16px;
  margin-right: 5px;
  fill: #333;
}

.created-by {
  margin-right: 10px;
}

/* Media Query untuk layar yang lebarnya kurang dari 600px */

@media (max-width: 500px) {
  .container {
    max-width: 100%;
  }
  .note {
    font-size: 8px;
  }
  h2 {
    font-size: 18px;
  }

  .result table {
    font-size: 14px;
  }
  .conclusion-tabungan p,
  .conclusion-deposito p {
    font-size: 12px !important;
  }
  .input-container {
    flex-direction: column; /* Mengubah arah flex menjadi vertikal */
    align-items: stretch; /* Memastikan anak-anak container memenuhi lebar */
  }

  .input-group {
    flex-wrap: wrap; /* Memungkinkan elemen di dalam input-group untuk bungkus */
  }

  .input-container input,
  .input-group {
    margin-right: 0; /* Menghilangkan margin kanan dari input */
  }

  .input-group-prepend {
    flex: 0 0 auto; /* Mencegah .input-group-prepend dari mengambil lebih banyak ruang daripada yang dibutuhkan */
  }

  .input-group input[type="text"] {
    flex: 1; /* Mengizinkan input untuk mengisi sisa ruang */
  }

  .input-container button {
    margin-top: 10px; /* Menambahkan margin atas untuk tombol */
    width: 100%; /* Mengatur lebar tombol menjadi 100% */
  }
}
