/* padding so the icons don’t overlap the text */
.search-bar{
    padding-block: 0.5rem;
    border: 1px solid theme('colors.gray.300');
    border-radius: 0.375rem;
    font-size: 1rem;
    width: 24rem;
}

/* small loading logo next to status text */
#ucLogoGif{
    width: 1.5rem;
    height: 1.5rem;
}

/* position icons inside search bar */
#ucHourglass,
#ucArrow{
    top: 50%;
    transform: translateY(-50%);
}

/* ── glowing pulse for the Resize/Edit toggle ───────────────────── */
@keyframes glowPulse {
    0%   { box-shadow: 0 0 4px 0 rgba(56,189,248,.7); }
    50%  { box-shadow: 0 0 12px 2px rgba(56,189,248,1); }
    100% { box-shadow: 0 0 4px 0 rgba(56,189,248,.7); }
  }
  .glow-pulse {
    animation: glowPulse 1.8s ease-in-out infinite;
  }

  /* U-Craft prompt bar mobile fix */
@media (max-width: 640px) {
  .search-bar,
  #ucInput {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }
  /* Ensure container has no horizontal overflow */
  .max-w-lg, .mx-auto {
    box-sizing: border-box;
  }
}

/* U-Craft logo section adjustments */
.logo-wrap {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  /* Prevent any horizontal overflow */
  overflow-x: hidden;
}
.ucraft-logo-img {
  width: 100%;
  max-width: 360px;
  height: auto;
  object-fit: contain;
  display: block;
  background: transparent;
}
.logo-caption {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  background: rgba(30,41,59,0.65); /* Slate-900 bg */
  color: #fff;
  border-radius: 0.5em;
  padding: 0.25em 0.75em;
  font-size: 0.92em;
  letter-spacing: 0.02em;
  font-family: sans-serif;
  pointer-events: none;
  z-index: 2;
  user-select: none;
}
@media (max-width: 640px) {
  .logo-wrap {
    max-width: 95vw;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }
  .ucraft-logo-img {
    max-width: 95vw;
    width: 100%;
  }
  .logo-caption {
    font-size: 0.76em;
    padding: 0.18em 0.5em;
    right: 0.25rem;
    bottom: 0.25rem;
  }
}


/* solid UC buttons (used in dimension panel + buy popup) */
.ucActionBtn{
    display:inline-block;
    padding:0.5rem 1rem;
    border-radius:0.375rem;
    background:#0ea5e9;           /* sky-600 fallback */
    color:#fff;
    font-weight:600;
    text-align:center;
    cursor:pointer;
    box-shadow:0 2px 6px rgba(0,0,0,.3);
    transition:background .15s,transform .1s;
  }
  .ucActionBtn:hover{background:#0284c7;}  /* sky-700 */
  .ucActionBtn:active{transform:scale(.97);}
  
  .ucActionBtn.alt{
    background:#059669;           /* emerald-600 */
  }
  .ucActionBtn.alt:hover{
    background:#047857;           /* emerald-700 */
  }