/* Global Reset & Font Setup */
* * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', 'Inter', 'Jaldi', 'Microsoft Sans Serif', Arial, sans-serif;
}

body {
  background-color: #f5f5f5;
  color: #333;
  padding: 20px;
  line-height: 1.5;
}

.container {
  max-width: 500px;
  margin: 0 auto;
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

h1 {
  text-align: center;
  margin-bottom: 15px;
  font-size: 22px;
  color: #1a1a1a;
}

.input-group {
  margin-bottom: 15px;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  font-size: 14px;
}

input, select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  background-color: white;
  cursor: pointer;
}

.btn {
  width: 100%;
  padding: 12px;
  background-color: #0066cc;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 10px;
}

.btn:hover {
  background-color: #0055aa;
}

/* Image Preview Section */
.image-card {
  position: relative;
  margin-top: 25px;
  text-align: center;
  background: transparent;
  padding: 0;
  overflow: hidden;
}

.image-card img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  line-height: 0;
}

/* ROI Overlay */
.roi-overlay {
  position: absolute;
  top: 350px;
  left: 25px;
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 550;
  letter-spacing: -1px;
  color: #FFFFFF;
}

.roi-overlay .roi-sign {
  position: relative;
  top: -34px;
  right: 0.50px;
  display: inline-block;
  font-size: 21px;

}

.roi-overlay .roi-value {
  position: relative;
  top: -34.80px;
  right: 5px;
  display: inline-block;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.65px;

}

/* Overlay Texts */
.value-type {
  position: absolute;
  top: 215.50px;
  right: 397px;
  font-family: 'Microsoft Sans Serif', sans-serif;
  font-size: 17.90px;
  font-weight: 300;
  letter-spacing: 0px;
}

.value-lev {
  position: absolute;
  top: 218px;
  right: 351px;
  font-family: 'Segoe UI', 'Microsoft Sans Serif', Arial, sans-serif;
  font-size: 14px;
  font-weight: 300; /* 280 → 300 */
}

.value-entry {
  position: absolute;
  left: 25px;
  bottom: 216px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1.40px;
  color: #ffffff;
}

.value-exit {
  position: absolute;
  left: 240px;
  bottom: 216px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.40px;
  color: #ffffff;
}

.value-coin {
  position: absolute;
  top: 185px;
  left: 26px;
  font-family: 'Inter', sans-serif;
  font-size: 21px;
  font-weight: 720;
  letter-spacing: 0.6px;
  color: #ffffff;
}

.value-referral {
  position: absolute;
  bottom: 20px;
  left: 138px;
  font-family: 'Jaldi', sans-serif;
  font-size: 17.50px;
  font-weight: 550;
  color: #ffffff;
  letter-spacing: 0.10px;
}

/* QR Code */
.qr-code {
  position: absolute;
  bottom: 19px;
  right: 21px;
  width: 71px;
  height: 71px;
  background-color: #ffffff;
  padding: 4px;
  box-sizing: border-box;
  border-radius: 4px;
}

.qr-code canvas {
  width: 100%;
  height: 100%;
}

/* Color Classes */
.green-text {
  color: #19CB8A !important;
}
.red-text {
  color: #F6465D !important;
}

/* ✅ Button Row Container */
#actionButtons.button-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: nowrap;
}

/* ✅ Individual Button Styling */
.download-btn {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  padding: 10px 16px;
  background-color: #26C188;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.download-btn:hover {
  background-color: #218838;
}

.download-btn.save {
  background-color: #007BFF;
}

.download-btn.reset {
  background-color: #E80000;
}

/* ✅ Icon Alignment */
.download-btn i {
  font-size: 16px;
  margin-right: 4px;
}

/* Responsive Layout */
@media (max-width: 500px) {
  .container {
    padding: 15px;
  }

  .roi-overlay .roi-sign {
    font-size: 18px;
    position: relative;
    top: -58px;
    left: 0.50px;
  }

  .roi-overlay .roi-value {
    font-size: 20px;
    position: relative;
    top: -57px;
    letter-spacing: 0.70px;
  }

  .value-entry {
    position: absolute;
    left: 108px;
    bottom: 90.30px;
    font-size: 12px;
  }

  .value-exit {
    position: absolute;
    left: 108px;
    bottom: 68.50px;
    font-size: 12px;
  }

  .value-type {
    position: absolute;
    top: 42px;
    right: 280px;
    font-size: 10px;
  }

  .value-lev {
    position: absolute;
    top: 44px;
    right: 253px;
    font-size: 7px;
  }

  .value-coin {
    position: absolute;
    top: 44px;
    left: 97px;
    font-size: 7px;
  }

  .value-referral {
    position: absolute;
    bottom: 30px;
    left: 75px;
    font-size: 16px;
    letter-spacing: -0.10px;
  }

  .qr-code {
    width: 29.50px;
    height: 29.50px;
    bottom: 28.50px;
    left: 38px;
    background-color: #FFFFFF;
    padding: 1.5px;
  }

  #actionButtons.button-row {
    flex-direction: row;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: nowrap;
  }

  .download-btn {
    flex: 1;
    font-size: 15px;
    padding: 10px 12px;
    margin: 0;
  }

  .download-btn i {
    font-size: 15px;
    margin-right: 6px;
  }
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper input {
  flex: 1;
  padding-right: 40px; /* কপি বাটনের জন্য জায়গা */
}

.copy-btn {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  cursor: pointer;
  color: #555;
  font-size: 18px;
}

.copy-btn:hover {
  color: #0066cc;
}
