@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600&family=Manrope:wght@400;500;700&family=Caveat:wght@600&display=swap');

:root {
  --purple: #c48fd9;
  --pink: #e88fb0;
  --text-dark: #5c3d6b;
  --text-soft: #8a7690;
  --cream: #fdf6fb;
  --lavender-light: #e6c9f5;
  --pink-light: #f9c9de;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Manrope', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  min-height: 100vh;
}

h1, h2, h3 { font-family: 'Fraunces', serif; }

/* ===== Hero ===== */
.hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, var(--cream) 100%);
}

.hero .bookmark {
  position: absolute;
  top: 0;
  right: 12%;
  width: 40px;
  height: 120px;
  background: linear-gradient(180deg, var(--purple), var(--pink));
  clip-path: polygon(0 0, 100% 0, 100% 85%, 50% 100%, 0 85%);
  box-shadow: 0 4px 15px rgba(196, 143, 217, 0.4);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.brand-name {
  font-family: 'Caveat', cursive;
  font-size: 1.7rem;
  color: var(--purple);
  margin-bottom: 8px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.hero h1 .accent {
  background: linear-gradient(90deg, var(--purple), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
}

.slogan {
  font-family: 'Caveat', cursive;
  font-size: 1.7rem;
  color: var(--text-soft);
  margin-bottom: 45px;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  padding: 16px 34px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: linear-gradient(90deg, var(--purple), var(--pink));
  color: white;
  box-shadow: 0 10px 25px rgba(196, 143, 217, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(196, 143, 217, 0.55);
}

.btn-secondary {
  background: white;
  color: var(--purple);
  border: 2px solid var(--lavender-light);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  background: #faf3fc;
}

/* ===== How It Works — diary timeline ===== */
.how-it-works {
  padding: 110px 20px;
  text-align: center;
  background: linear-gradient(180deg, var(--cream), #fdf0f5);
}

.section-eyebrow {
  font-family: 'Caveat', cursive;
  color: var(--purple);
  font-size: 1.4rem;
  display: block;
  margin-bottom: 6px;
}

.how-it-works h2 {
  font-size: 2.3rem;
  margin-bottom: 60px;
  color: var(--text-dark);
}

.timeline {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  padding-left: 40px;
  text-align: left;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: repeating-linear-gradient(180deg, var(--lavender-light) 0 8px, transparent 8px 16px);
}

.timeline-step {
  position: relative;
  padding-bottom: 50px;
}

.timeline-step:last-child { padding-bottom: 0; }

.timeline-step::before {
  content: attr(data-step);
  position: absolute;
  left: -40px;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-step h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.timeline-step p {
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 480px;
}

/* ===== About — torn journal page ===== */
.about {
  padding: 110px 20px;
  background: #ffffff;
}

.about-page {
  max-width: 700px;
  margin: 0 auto;
  background: var(--cream);
  border-radius: 2px;
  padding: 60px 50px 50px;
  position: relative;
  box-shadow: 0 25px 60px rgba(196, 143, 217, 0.18);
}

.about-page::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
  background: #ffffff;
  clip-path: polygon(0% 100%, 4% 0%, 8% 100%, 12% 0%, 16% 100%, 20% 0%, 24% 100%, 28% 0%, 32% 100%, 36% 0%, 40% 100%, 44% 0%, 48% 100%, 52% 0%, 56% 100%, 60% 0%, 64% 100%, 68% 0%, 72% 100%, 76% 0%, 80% 100%, 84% 0%, 88% 100%, 92% 0%, 96% 100%, 100% 0%);
}

.about-page h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.about-page p {
  color: var(--text-soft);
  line-height: 1.85;
  margin-bottom: 18px;
  font-size: 1.02rem;
}

/* ===== Contact ===== */
.contact {
  padding: 110px 20px;
  text-align: center;
}

.contact h2 {
  font-size: 2.3rem;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.contact .section-subtitle {
  color: var(--text-soft);
  margin-bottom: 50px;
  font-size: 1.05rem;
}

.contact-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-instagram {
  background: linear-gradient(90deg, var(--purple), var(--pink));
  color: white;
  padding: 16px 36px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(196, 143, 217, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-instagram:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(196, 143, 217, 0.55);
}

.btn-whatsapp {
  background: #ffffff;
  color: #4a9d5c;
  border: 2px solid #b7e3c2;
  padding: 16px 36px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-whatsapp:hover {
  transform: translateY(-3px);
  background: #f3fbf5;
}
/* ===== Auth Pages (Sign Up / Login) ===== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: linear-gradient(180deg, #ffffff 0%, var(--cream) 100%);
}

.auth-card {
  background: #ffffff;
  max-width: 420px;
  width: 100%;
  padding: 45px 40px;
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(196, 143, 217, 0.18);
}

.auth-card .brand-name {
  text-align: center;
  display: block;
}

.auth-card h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.auth-card .auth-subtitle {
  text-align: center;
  color: var(--text-soft);
  font-size: 0.95rem;
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 2px solid var(--lavender-light);
  font-family: 'Manrope', sans-serif;
  font-size: 0.95rem;
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.2s ease;
}

.form-group input:focus {
  border-color: var(--purple);
}

.auth-submit {
  width: 100%;
  padding: 14px;
  border-radius: 50px;
  border: none;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(196, 143, 217, 0.4);
}

.auth-message {
  text-align: center;
  font-size: 0.9rem;
  margin-top: 16px;
  min-height: 20px;
}

.auth-message.error { color: #d64545; }
.auth-message.success { color: #4a9d5c; }

.auth-switch {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-soft);
  margin-top: 25px;
}

.auth-switch a {
  color: var(--purple);
  font-weight: 600;
  text-decoration: none;
}
/* ===== Dashboard ===== */
.dashboard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: #ffffff;
  box-shadow: 0 2px 15px rgba(196, 143, 217, 0.1);
}

.dashboard-nav .brand-name {
  margin-bottom: 0;
}

.logout-btn {
  padding: 10px 22px;
  border-radius: 50px;
  border: 2px solid var(--lavender-light);
  background: white;
  color: var(--purple);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.logout-btn:hover {
  background: #faf3fc;
}

.dashboard-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 50px 20px;
}

.dashboard-greeting {
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.dashboard-subtitle {
  color: var(--text-soft);
  margin-bottom: 40px;
}

.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

.dash-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 15px 40px rgba(196, 143, 217, 0.12);
}

.dash-card h3 {
  font-size: 1.15rem;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.dash-status {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.dash-status.not-started {
  background: #f3eef7;
  color: var(--text-soft);
}

.dash-status.used {
  background: #fdeef2;
  color: var(--pink);
}

.dash-link {
  color: var(--purple);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
}
/* ===== Multi-step Consultation Form ===== */
.consult-wrap {
  max-width: 700px;
  margin: 0 auto;
  padding: 50px 20px 80px;
}

.consult-header {
  text-align: center;
  margin-bottom: 35px;
}

.consult-header h1 {
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.consult-header p {
  color: var(--text-soft);
  font-size: 0.95rem;
}

.progress-bar {
  height: 8px;
  background: #f0e6f5;
  border-radius: 50px;
  margin-bottom: 40px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  border-radius: 50px;
  transition: width 0.3s ease;
  width: 25%;
}

.step-label {
  text-align: center;
  font-family: 'Caveat', cursive;
  font-size: 1.3rem;
  color: var(--purple);
  margin-bottom: 20px;
}

.consult-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 40px 35px;
  box-shadow: 0 20px 50px rgba(196, 143, 217, 0.15);
}

.form-step { display: none; }
.form-step.active { display: block; }

.form-step h3 {
  font-size: 1.2rem;
  color: var(--text-dark);
  margin-bottom: 25px;
}

.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 2px solid var(--lavender-light);
  font-family: 'Manrope', sans-serif;
  font-size: 0.95rem;
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.2s ease;
  background: white;
}

.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--purple);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.radio-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.radio-option {
  border: 2px solid var(--lavender-light);
  border-radius: 50px;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-dark);
  transition: all 0.2s ease;
}

.radio-option input {
  display: none;
}

.radio-option.selected {
  background: linear-gradient(90deg, var(--purple), var(--pink));
  color: white;
  border-color: transparent;
}

.step-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 35px;
}

.step-btn {
  padding: 13px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease;
}

.step-btn:hover { transform: translateY(-2px); }

.step-btn-back {
  background: white;
  color: var(--text-soft);
  border: 2px solid #eee;
}

.step-btn-next,
.step-btn-submit {
  background: linear-gradient(90deg, var(--purple), var(--pink));
  color: white;
}

.step-btn:disabled {
  opacity: 0.4;
  cursor: default;
  transform: none;
}
/* ===== Real submission status + lists ===== */
.dash-status.pending {
  background: #f3eef7;
  color: var(--purple);
}

.submission-item {
  padding: 12px 0;
  border-bottom: 1px solid #f0e6f5;
}

.submission-item:last-child { border-bottom: none; }

.submission-item .sub-status {
  font-weight: 600;
  color: var(--purple);
  font-size: 0.9rem;
  text-transform: capitalize;
}

.submission-item .sub-date {
  font-size: 0.8rem;
  color: var(--text-soft);
}
/* ===== Admin ===== */
.admin-denied {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

.admin-denied h2 {
  color: var(--text-dark);
  margin-bottom: 10px;
}

.admin-denied p {
  color: var(--text-soft);
}
/* ===== Glowing headline effect ===== */
.hero h1.glow-text {
  animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% {
    text-shadow:
      0 0 10px rgba(196, 143, 217, 0.3),
      0 0 20px rgba(196, 143, 217, 0.2),
      0 0 30px rgba(232, 143, 176, 0.15);
  }
  50% {
    text-shadow:
      0 0 18px rgba(196, 143, 217, 0.55),
      0 0 35px rgba(196, 143, 217, 0.4),
      0 0 50px rgba(232, 143, 176, 0.3);
  }
}
/* ===== Public homepage nav bar ===== */
.public-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.public-nav .brand-name {
  margin-bottom: 0;
  font-size: 1.4rem;
}

.public-nav-links {
  display: flex;
  align-items: center;
  gap: 25px;
}

.public-nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-size: 0.9rem;
  font-weight: 600;
}

.nav-login-link {
  color: var(--purple) !important;
}

.nav-signup-btn {
  background: linear-gradient(90deg, var(--purple), var(--pink));
  color: white !important;
  padding: 10px 22px;
  border-radius: 50px;
}
/* ===== Admin Dashboard Layout ===== */
.admin-shell {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 220px;
  background: #ffffff;
  padding: 30px 20px;
  box-shadow: 2px 0 15px rgba(196, 143, 217, 0.08);
  flex-shrink: 0;
}

.admin-sidebar .brand-name {
  display: block;
  margin-bottom: 40px;
  padding-left: 8px;
}

.admin-nav-link {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
  cursor: pointer;
}

.admin-nav-link.active,
.admin-nav-link:hover {
  background: #faf3fc;
  color: var(--purple);
}

.admin-main {
  flex: 1;
  padding: 40px;
  max-width: 1100px;
}

.admin-main h1 {
  font-size: 1.8rem;
  color: var(--text-dark);
  margin-bottom: 30px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-bottom: 45px;
}

.admin-stat-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(196, 143, 217, 0.1);
}

.admin-stat-card .stat-number {
  font-family: 'Fraunces', serif;
  font-size: 2.2rem;
  color: var(--purple);
  margin-bottom: 5px;
}

.admin-stat-card .stat-label {
  color: var(--text-soft);
  font-size: 0.85rem;
}

.admin-section-title {
  font-size: 1.2rem;
  color: var(--text-dark);
  margin-bottom: 15px;
  margin-top: 35px;
}

.admin-table {
  width: 100%;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(196, 143, 217, 0.08);
  border-collapse: collapse;
}

.admin-table th {
  text-align: left;
  padding: 14px 20px;
  background: #faf3fc;
  color: var(--text-dark);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-table td {
  padding: 14px 20px;
  border-top: 1px solid #f5eef8;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.admin-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
  background: #f3eef7;
  color: var(--purple);
}

.admin-table a {
  color: var(--purple);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.85rem;
}

.admin-empty {
  padding: 30px;
  text-align: center;
  color: var(--text-soft);
  font-size: 0.9rem;
}
/* ===== Customer detail page ===== */
.detail-section-title {
  font-size: 1.05rem;
  color: var(--text-dark);
  margin-bottom: 12px;
  margin-top: 30px;
}

.no-records {
  color: var(--text-soft);
  font-size: 0.9rem;
  font-style: italic;
}
/* ===== Status dropdown + notes ===== */
.status-select {
  padding: 6px 12px;
  border-radius: 50px;
  border: 2px solid var(--lavender-light);
  font-family: 'Manrope', sans-serif;
  font-size: 0.8rem;
  color: var(--text-dark);
  background: white;
  cursor: pointer;
}

.notes-box textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 2px solid var(--lavender-light);
  font-family: 'Manrope', sans-serif;
  font-size: 0.9rem;
  min-height: 70px;
  resize: vertical;
  margin-bottom: 10px;
}

.note-item {
  background: #faf3fc;
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.note-item .note-date {
  font-size: 0.75rem;
  color: var(--text-soft);
  margin-top: 6px;
}
/* ===== Chat / Messaging ===== */
.chat-wrap {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 20px;
}

.chat-box {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(196, 143, 217, 0.15);
  display: flex;
  flex-direction: column;
  height: 65vh;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 25px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-bubble {
  max-width: 75%;
  padding: 12px 18px;
  border-radius: 18px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.chat-bubble.mine {
  align-self: flex-end;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  color: white;
  border-bottom-right-radius: 4px;
}

.chat-bubble.theirs {
  align-self: flex-start;
  background: #f5eef8;
  color: var(--text-dark);
  border-bottom-left-radius: 4px;
}

.chat-bubble .chat-time {
  display: block;
  font-size: 0.7rem;
  opacity: 0.7;
  margin-top: 4px;
}

.chat-input-row {
  display: flex;
  gap: 10px;
  padding: 18px;
  border-top: 1px solid #f0e6f5;
}

.chat-input-row textarea {
  flex: 1;
  padding: 12px 16px;
  border-radius: 16px;
  border: 2px solid var(--lavender-light);
  font-family: 'Manrope', sans-serif;
  font-size: 0.9rem;
  resize: none;
  outline: none;
  min-height: 44px;
  max-height: 100px;
}

.chat-send-btn {
  background: linear-gradient(90deg, var(--purple), var(--pink));
  color: white;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  font-size: 1.1rem;
  flex-shrink: 0;
}/* ===== Profile avatar circle ===== */
.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.avatar-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  cursor: pointer;
  line-height: 1;
  box-shadow: 0 6px 16px rgba(196, 143, 217, 0.35);
  border: 2px solid #ffffff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.avatar-circle:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 10px 22px rgba(196, 143, 217, 0.45);
}

/* ===== Profile page ===== */
.profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}

.avatar-circle-large {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.6rem;
  flex-shrink: 0;
  box-shadow: 0 10px 25px rgba(196, 143, 217, 0.3);
}

.profile-info-row {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid #f0e6f5;
}

.profile-info-row span:first-child {
  color: var(--text-soft);
  font-size: 0.9rem;
}

.profile-info-row span:last-child {
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.9rem;
}

.empty-note {
  color: var(--text-soft);
  font-size: 0.9rem;
  font-style: italic;
}
/* ===== Admin Inbox ===== */
.inbox-shell {
  display: flex;
  height: calc(100vh - 0px);
}

.inbox-list {
  width: 300px;
  background: #ffffff;
  border-right: 1px solid #f0e6f5;
  overflow-y: auto;
  flex-shrink: 0;
}

.inbox-item {
  padding: 16px 20px;
  border-bottom: 1px solid #f5eef8;
  cursor: pointer;
  transition: background 0.15s ease;
}

.inbox-item:hover,
.inbox-item.active {
  background: #faf3fc;
}

.inbox-item .inbox-name {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.92rem;
  margin-bottom: 4px;
}

.inbox-item .inbox-preview {
  color: var(--text-soft);
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inbox-item .inbox-status-badge {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: 50px;
  background: #f3eef7;
  color: var(--purple);
  font-weight: 600;
}

.inbox-chat-area {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.inbox-chat-header {
  padding: 20px 25px;
  border-bottom: 1px solid #f0e6f5;
  background: #ffffff;
  font-weight: 600;
  color: var(--text-dark);
}

.inbox-empty-state {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  font-size: 0.95rem;
}
/* ===== Admin Form Builder ===== */
.category-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 22px 26px;
  margin-bottom: 16px;
  box-shadow: 0 10px 30px rgba(196, 143, 217, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.category-card h3 {
  font-size: 1.05rem;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.category-card p {
  font-size: 0.85rem;
  color: var(--text-soft);
}

.category-actions a {
  color: var(--purple);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.85rem;
  margin-left: 15px;
}

.new-category-form {
  background: #ffffff;
  border-radius: 16px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(196, 143, 217, 0.1);
}

.new-category-form input,
.new-category-form textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 2px solid var(--lavender-light);
  font-family: 'Manrope', sans-serif;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.small-btn {
  padding: 10px 22px;
  border-radius: 50px;
  border: none;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  color: white;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}
/* ===== Admin Form Builder ===== */
.category-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 22px 26px;
  margin-bottom: 16px;
  box-shadow: 0 10px 30px rgba(196, 143, 217, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.category-card h3 {
  font-size: 1.05rem;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.category-card p {
  font-size: 0.85rem;
  color: var(--text-soft);
}

.category-actions a {
  color: var(--purple);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.85rem;
  margin-left: 15px;
}

.new-category-form {
  background: #ffffff;
  border-radius: 16px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(196, 143, 217, 0.1);
}

.new-category-form input,
.new-category-form textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 2px solid var(--lavender-light);
  font-family: 'Manrope', sans-serif;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.small-btn {
  padding: 10px 22px;
  border-radius: 50px;
  border: none;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  color: white;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}
/* ===== Question Builder ===== */
.question-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 14px;
  box-shadow: 0 8px 25px rgba(196, 143, 217, 0.08);
}

.question-card .q-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.question-card .q-text {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.question-card .q-meta {
  font-size: 0.78rem;
  color: var(--text-soft);
  margin-top: 4px;
}

.q-delete-btn {
  background: none;
  border: none;
  color: #d64545;
  font-size: 0.8rem;
  cursor: pointer;
  font-weight: 600;
}

.new-question-form {
  background: #ffffff;
  border-radius: 16px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(196, 143, 217, 0.1);
}

.new-question-form input,
.new-question-form select {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 2px solid var(--lavender-light);
  font-family: 'Manrope', sans-serif;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.form-row-inline {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.form-row-inline label {
  font-size: 0.85rem;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 6px;
}
/* ===== Delete category button ===== */
.cat-delete-btn {
  background: none;
  border: none;
  color: #d64545;
  cursor: pointer;
  margin-left: 15px;
  display: inline-flex;
  align-items: center;
  padding: 6px;
  border-radius: 8px;
  transition: background 0.15s ease;
}

.cat-delete-btn:hover {
  background: #fdeaea;
}
/* ===== Customer-facing dynamic forms ===== */
.category-select-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px 26px;
  margin-bottom: 16px;
  box-shadow: 0 10px 30px rgba(196, 143, 217, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.category-select-card:hover {
  transform: translateY(-3px);
}

.category-select-card h3 {
  font-size: 1.05rem;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.category-select-card p {
  font-size: 0.85rem;
  color: var(--text-soft);
}

.category-select-card .arrow {
  color: var(--purple);
  font-size: 1.2rem;
}

.dynamic-question {
  margin-bottom: 22px;
}

.dynamic-question label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.dynamic-question .optional-tag {
  color: var(--text-soft);
  font-weight: 400;
  font-size: 0.78rem;
}