/* Common styles for Button Generator */

/* DaisyUI primary color override */
.step-primary + .step-primary:before, .step-primary:after { background-color: #2F988B !important; }
.btn-primary { background-color: #2F988B !important; border-color: #2F988B !important; color: #fff !important; }
.btn-primary:hover { background-color: #268076 !important; border-color: #268076 !important; }

/* Base */
body { font-family: Arial, sans-serif; }

/* Button preview */
.preview-area {
  background-color: #f8fafc;
  background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
  background-size: 20px 20px;
}
.preview-area.dark {
  background-color: #1d1f4c;
  background-image: radial-gradient(#3d4070 1px, transparent 1px);
}

/* Generated button */
.generated-btn {
  min-width: 140px;
  min-height: 40px;
  white-space: nowrap;
}
.generated-btn span,
.generated-btn .btn-icon {
  position: relative;
  z-index: 2;
}

/* Template cards (index page) */
.template-card {
  cursor: pointer;
  width: 100%;
}
.template-btn {
  min-width: 140px;
  min-height: 40px;
  white-space: nowrap;
}
.template-btn.icon-only {
  min-width: auto;
}
.template-btn .template-btn-text,
.template-btn .btn-icon {
  position: relative;
  z-index: 2;
}

/* Icon display */
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-icon svg {
  display: block;
}

/* Code blocks */
.code-block {
  background-color: #1d1f4c !important;
}

/* Consistent small border-radius for UI elements */
.input, .select, .btn:not(.template-btn):not(.generated-btn), .join, .checkbox, .modal-box, .badge, .template-card,
.bg-white.border, .bg-white.shadow-sm {
  border-radius: 4px !important;
}
