:root {
  --steel-dark: #0c1a2f;
  --steel-mid: #3a8fd4;
  --panel-bg: #fbfcfe;
  --text-light: #5a6b7b;
  --border-soft: rgba(12, 26, 47, 0.08);
  --radius: 12px;
  --transition-speed: 0.2s;
  --font-primary: "Segoe UI", "Inter", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-primary);
  background-color: var(--panel-bg);
  color: var(--steel-dark);
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--transition-speed);
}

/* Header */
.clarasocial-header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 28px 16px;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.logo-pulse {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(200, 200, 200, 0.15), transparent 70%);
  animation: pulse 2.5s infinite ease-in-out;
}

.logo-pulse::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 20px rgba(180, 180, 180, 0.3);
}

.logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(180, 180, 180, 0.2);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(180, 180, 180, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(180, 180, 180, 0);
  }
}

.title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--steel-dark);
  margin: 6px 0 0 0;
  letter-spacing: -0.25px;
}

.subtitle {
  font-size: 0.85rem;
  color: var(--text-light);
  margin: 2px 0 0 0;
}

/* Main container */
.app-container {
  max-width: 740px;
  margin: 40px auto;
  padding: 0 20px 60px;
}

/* Labels */
.label {
  font-size: 0.9rem;
  color: var(--steel-dark);
  font-weight: 500;
  display: block;
  margin-bottom: 6px;
}

/* Inputs */
textarea,
select {
  width: 100%;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 10px 12px;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  color: var(--steel-dark);
  background: #fff;
  transition: border var(--transition-speed), box-shadow var(--transition-speed);
}

textarea:focus,
select:focus {
  outline: none;
  border-color: var(--steel-mid);
  box-shadow: 0 0 0 2px rgba(58, 143, 212, 0.15);
}

/* Selectors container */
.selectors {
  display: flex;
  gap: 16px;
  margin: 20px 0;
}

.selector {
  flex: 1;
}

/* Button */
.generate-btn {
  display: inline-block;
  background: var(--steel-mid);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 10px 24px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition-speed), transform var(--transition-speed);
}

.generate-btn:hover {
  background: #2d78bb;
  transform: translateY(-1px);
}

.generate-btn:active {
  transform: translateY(0);
}

/* Output and Log */
.output-section,
.log-section {
  margin-top: 36px;
}

.output-section h2,
.log-section h2 {
  font-size: 1.1rem;
  color: var(--steel-dark);
  font-weight: 600;
  margin-bottom: 10px;
}

.output-box,
.log-box {
  background: #f5f7fa;
  padding: 14px;
  border-radius: var(--radius);
  font-family: "SF Mono", "Consolas", monospace;
  font-size: 0.9rem;
  color: var(--steel-dark);
  border: 1px solid var(--border-soft);
  white-space: pre-wrap;
  line-height: 1.5;
  min-height: 100px;
  overflow-y: auto;
}

/* Scrollbar subtlety */
.output-box::-webkit-scrollbar,
.log-box::-webkit-scrollbar {
  width: 6px;
}

.output-box::-webkit-scrollbar-thumb,
.log-box::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
}

/* Responsive */
@media (max-width: 600px) {
  .selectors {
    flex-direction: column;
  }
}
/* Footer */
.identity-footer {
  text-align: center;
  color: var(--text-light);
  font-size: 0.8rem;
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid var(--border-soft);
  opacity: 0.85;
}

.identity-footer p {
  margin: 0;
  letter-spacing: 0.2px;
  font-weight: 400;
}
/* =========================================
   Status Line — Smooth Context Display
   ========================================= */

#statusLine {
  margin-top: 10px;
  font-size: 0.9rem;
  font-family: "Segoe UI", sans-serif;
  text-align: center;
  font-weight: 500;
  letter-spacing: 0.3px;
  opacity: 0.95;
  transition: color 0.8s ease, opacity 0.8s ease;
}

/* Tone color mapping */
#statusLine.clinical_confident,
#statusLine.clinical_direct {
  color: #2e8b57; /* professional green */
}

#statusLine.reflective_confident {
  color: #3a6ea5; /* calm blue-gray */
}

#statusLine.gentle_responsible {
  color: #b8860b; /* muted amber */
}

#statusLine.methodical_trustworthy {
  color: #4682b4; /* steel blue */
}

/* Smooth pulse effect on update */
#statusLine.updated {
  opacity: 0.6;
  filter: brightness(1.25);
}
/* === ClaraSocial Status Line (Era + Phase + Tone) === */
#statusLine {
  display: inline-block;
  margin-top: 16px;
  margin-bottom: 20px;
  padding: 8px 18px;
  background: rgba(23, 125, 67, 0.06); /* subtle Clara green tint */
  color: rgb(23, 125, 67);
  font-family: "Segoe UI", sans-serif;
  font-size: 0.9rem;
  border: 1px solid rgba(23, 125, 67, 0.25);
  border-radius: 24px;
  text-align: center;
  transition: all 0.6s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

#statusLine strong {
  font-weight: 600;
  color: rgb(23, 125, 67);
}

/* Fade-in animation for status changes */
#statusLine.fade-in {
  opacity: 1;
  transform: translateY(0);
}

#statusLine.fade-out {
  opacity: 0;
  transform: translateY(-4px);
  transition: all 0.4s ease;
}
#statusLine {
  margin-top: 28px;  /* creates space below the Generate button */
  margin-bottom: 24px;
}
#statusSummary {
  max-width: 720px;
  margin: 0 auto 20px;
  line-height: 1.4;
}
