/* =========================================================
   PROMPT SATHI — PREMIUM IMAGE GENERATION PROMPT BOX
   (Existing design bilkul unchanged rakha gaya hai)
   ========================================================= */

.ps-prompt-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 35px 0;
  padding: 0;
  border: 1px solid #dfe4ec;
  border-radius: 20px;
  background: #f8faff;
  box-shadow: 0 18px 55px rgba(15,23,42,.10);
  box-sizing: border-box;
}

.ps-prompt-card:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, #635bff, #8b5cf6, #06b6d4, #635bff);
  background-size: 250% 100%;
  animation: psPromptGradient 5s linear infinite;
}

@keyframes psPromptGradient {
  0% { background-position: 0 50%; }
  100% { background-position: 250% 50%; }
}

.ps-prompt-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 22px;
}

.ps-prompt-card-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.ps-prompt-card-icon {
  width: 45px;
  height: 45px;
  min-width: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, #635bff, #8b5cf6);
  box-shadow: 0 8px 22px rgba(99,91,255,.28);
  animation: psIconFloat 3.5s ease-in-out infinite;
}

@keyframes psIconFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.ps-prompt-card-icon svg {
  width: 22px;
  height: 22px;
}

.ps-prompt-title-wrap {
  min-width: 0;
}

.ps-prompt-label {
  display: block;
  margin-bottom: 4px;
  color: #667085;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.ps-prompt-title {
  display: block;
  color: #101828;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
}

.ps-prompt-status {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid #ddd8ff;
  border-radius: 999px;
  color: #5b52d6;
  background: #f3f1ff;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.ps-prompt-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 4px rgba(16,185,129,.10);
  animation: psStatusPulse 2s ease-in-out infinite;
}

@keyframes psStatusPulse {
  0%,100% { opacity: 1; }
  50% { opacity: .45; }
}

.ps-prompt-editor-wrap {
  padding: 0 20px 20px;
}

.ps-prompt-editor {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid #293548;
  background:
    radial-gradient(circle at 90% 5%, rgba(99,91,255,.15), transparent 25%),
    linear-gradient(145deg, #0b1220, #111a2b);
  box-shadow: 0 14px 35px rgba(15,23,42,.17);
}

.ps-prompt-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 8px 11px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.025);
  box-sizing: border-box;
}

.ps-prompt-dots {
  display: flex;
  gap: 7px;
  align-items: center;
}

.ps-prompt-dots span {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #667085;
}

.ps-prompt-toolbar-label {
  margin-left: auto;
  margin-right: 12px;
  color: #667085;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.ps-prompt-copy {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 120px;
  padding: 9px 13px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(135deg, #635bff, #5146d8);
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(99,91,255,.30);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.ps-prompt-copy:hover {
  transform: translateY(-2px);
  box-shadow: 0 9px 24px rgba(99,91,255,.40);
}

.ps-prompt-copy:active {
  transform: scale(.96);
}

.ps-prompt-copy svg {
  width: 15px;
  height: 15px;
}

.ps-prompt-copy:after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  animation: psButtonShine 4s ease-in-out infinite;
}

@keyframes psButtonShine {
  0%,55% { left: -100%; }
  75%,100% { left: 140%; }
}

.ps-prompt-copy.ps-success {
  background: linear-gradient(135deg, #059669, #10b981) !important;
  box-shadow: 0 8px 25px rgba(16,185,129,.35), 0 0 0 3px rgba(16,185,129,.10);
  animation: psSuccessButton .4s ease;
}

@keyframes psSuccessButton {
  0% { transform: scale(.92); }
  60% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

.ps-prompt-text {
  height: 400px;
  overflow-y: auto;
  padding: 20px;
  box-sizing: border-box;
  color: #e8edf5;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.85;
  white-space: pre-wrap;
  word-break: break-word;
  text-align: left;
}

.ps-prompt-text::-webkit-scrollbar {
  width: 7px;
}

.ps-prompt-text::-webkit-scrollbar-track {
  background: transparent;
}

.ps-prompt-text::-webkit-scrollbar-thumb {
  border-radius: 20px;
  background: linear-gradient(180deg, #635bff, #475467);
}

.ps-prompt-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 11px;
}

.ps-prompt-tip {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #667085;
  font-size: 11px;
  font-weight: 600;
}

.ps-prompt-tip svg {
  width: 14px;
  height: 14px;
  color: #635bff;
}

@media (max-width:650px) {

  .ps-prompt-card {
    margin: 28px 0;
    border-radius: 17px;
  }

  .ps-prompt-card-header {
    padding: 18px 14px 16px;
  }

  .ps-prompt-card-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
  }

  .ps-prompt-card-icon svg {
    width: 20px;
    height: 20px;
  }

  .ps-prompt-label {
    font-size: 9px;
    letter-spacing: 1px;
  }

  .ps-prompt-title {
    font-size: 15px;
  }

  .ps-prompt-status {
    display: none;
  }

  .ps-prompt-editor-wrap {
    padding: 0 12px 13px;
  }

  .ps-prompt-toolbar {
    min-height: 50px;
  }

  .ps-prompt-toolbar-label {
    display: none;
  }

  .ps-prompt-copy {
    min-width: 105px;
    padding: 8px 10px;
    font-size: 10px;
  }

  .ps-prompt-text {
    height: 380px;
    padding: 16px;
    font-size: 13px;
    line-height: 1.78;
  }

  .ps-prompt-footer {
    padding-top: 9px;
  }

}

@media (prefers-reduced-motion: reduce) {

  .ps-prompt-card:before,
  .ps-prompt-card-icon,
  .ps-prompt-status-dot,
  .ps-prompt-copy:after {
    animation: none !important;
  }

}
