@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;700&display=swap');

#cec-app {
  font-family: 'Vazirmatn', sans-serif !important;
  max-width: 800px;
  margin: auto;
  padding: 0;
  color: #f5f5f5;
  text-align: center;
}

#cec-app * {
  box-sizing: border-box;
  text-align: center;
}

/* ✅ Set default color for most elements */
#cec-app input,
#cec-app button,
#cec-app div,
#cec-app label {
  font-family: 'Vazirmatn', sans-serif !important;
  color: #f5f5f5 !important;
}

/* ✅ Override h2, h3 to black */
#cec-app h2,
#cec-app h3 {
  font-family: 'Vazirmatn', sans-serif !important;
  color: #000000 !important;
}

/* ✅ Input box with dark background and white text */
#cec-app input[type="text"] {
  width: 100%;
  padding: 10px;
  font-size: 18px;
  border-radius: 12px;
  border: none;
  margin-bottom: 10px;
  background-color: #101010;
  color: #ffffff;
}

#cec-app .cec-detect-label {
  font-size: 14px;
  color: #b79d76 !important;
  margin-bottom: 15px;
}

#cec-app .cec-summary {
  font-size: 16px;
  color: #d6cbbd;
  font-weight: bold;
  
}

#cec-app .cec-button {
  background: #2a2a2a !important;
  border: 2px solid #555 !important;
  border-radius: 14px !important;
  color: #fff !important;
  font-size: 16px !important;
  padding: 12px !important;
  width: 100% !important;
  transition: all 0.3s ease;
  cursor: pointer;
}

#cec-app .cec-button:hover {
  background-color: #3a3a3a !important;
}

#cec-app .cec-button.selected {
  background-color: #b79d76 !important;
  border-color: #b79d76 !important;
  font-weight: bold !important;
  color: #fff !important;
}

#cec-app .cec-box {
  background: #1b1b1b;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 0 10px #00000020;
  margin-top: 20px;
}

#cec-app .cec-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

#cec-app .cec-step {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  height: 0;
  overflow: hidden;
}

#cec-app .cec-step.active {
  opacity: 1;
  visibility: visible;
  height: auto;
  overflow: visible;
}

#cec-app .cec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
}

#cec-app .cec-cell {
  background: #2a2a2a !important;
  padding: 15px;
  border-radius: 16px;
  text-align: center;
  color: #f5f5f5 !important;
}

#cec-app .cec-value {
  font-size: 22px;
  font-weight: bold;
  margin-top: 5px;
  color: #f5f5f5;
}

#cec-app .cec-actions {
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

/* ✅ Right-align specific labels for better UX */
#cec-app label[for="cec-amount-input"],
#cec-app .cec-options > label {
  text-align: right !important;
  display: block;
  width: 100%;
  color: #ffffff !important;
}

@media (max-width: 600px) {
  #cec-app .cec-options-grid,
  #cec-app .cec-grid {
    grid-template-columns: 1fr;
  }
}