/* ========== RESET ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", system-ui, sans-serif;
}

/* ========== ROBOTIC AI BACKGROUND ========== */
body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f2f2f2;

  background:
    linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.85)),
    url("https://images.unsplash.com/photo-1677442136019-21780ecad995?auto=format&fit=crop&w=1920&q=80");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ========== APP CONTAINER ========== */
.app-container {
  width: 100%;
  max-width: 820px;
  padding: 48px;

  background: rgba(15, 15, 15, 0.75);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);

  border-radius: 26px;
  border: 1px solid rgba(255,255,255,0.08);

  box-shadow:
    0 40px 120px rgba(0,0,0,0.9),
    inset 0 1px 0 rgba(255,255,255,0.05);

  text-align: center;
}

/* ========== HEADER ========== */
.app-header h1 {
  font-size: 2.6rem;
  font-weight: 600;
}

.app-header p {
  margin-top: 8px;
  font-size: 1.05rem;
  color: #b5b5b5;
}

/* ========== INPUT SECTION ========== */
.input-section {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

#promptInput {
  width: 100%;
  padding: 16px 20px;
  border-radius: 16px;

  background: rgba(20,20,20,0.9);
  border: 1px solid rgba(255,255,255,0.12);

  color: #fff;
  font-size: 0.95rem;
  resize: none;
  outline: none;

  transition: all 0.3s ease;
}

#promptInput::placeholder {
  color: #8f8f8f;
}

#promptInput:focus {
  border-color: #ff6a00;
  box-shadow: 0 0 0 2px rgba(255,106,0,0.3);
}

/* ========== BUTTON ========== */
#analyzeBtn {
  padding: 15px;
  border-radius: 40px;
  border: none;

  background: linear-gradient(135deg, #ff6a00, #ff8c1a);
  color: #fff;

  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.3px;

  cursor: pointer;
  transition: all 0.25s ease;

  box-shadow:
    0 14px 40px rgba(255,106,0,0.45);
}

#analyzeBtn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 18px rgba(255,106,0,0.7),
    0 22px 55px rgba(255,106,0,0.6);
}

#analyzeBtn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

/* ========== OUTPUT ========== */
.output-section {
  margin-top: 28px;
}

#output {
  text-align: left;
  padding: 22px;
  border-radius: 18px;

  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);

  font-size: 0.95rem;
  line-height: 1.6;
  color: #eaeaea;
}

.resultWrap h2 {
  margin-bottom: 6px;
}

.muted {
  opacity: 0.8;
}

.panel {
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.08);
}

.stepCard {
  margin-top: 12px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.08);
}

.stepHead {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  opacity: 0.8;
}

.codeBox {
  max-height: 300px;
  overflow: auto;
  font-size: 0.8rem;
  background: rgba(0,0,0,0.4);
  padding: 12px;
  border-radius: 12px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 600px) {
  .app-container {
    padding: 28px;
  }
}
