body {
  font-family: "DM Sans", sans-serif;
  line-height: 1.5;
  background-color: #fff3eb;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Sidebar styling */
.sidebar {
  width: 280px;
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-radius: 1rem;
  margin-right: 1.5rem;
  padding: 1.5rem;
  overflow-y: auto;
}

.layout-container {
  display: flex;
  align-items: flex-start;
}

.chat-area {
  flex: 1;
}

/* Responsive layout */
@media (max-width: 768px) {
  .layout-container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    margin-right: 0;
    margin-bottom: 1.5rem;
    max-height: 300px;
  }
}

.chat-container {
  min-height: calc(100vh - 150px);
  max-height: calc(100vh - 150px);
  padding: 2rem;
  background: white;
  border-radius: 1.5rem;
  display: flex;
  flex-direction: column;
}

.chat-content {
  flex: 1 1 auto;
  overflow-y: auto;
  margin-bottom: 1rem;
  min-height: 300px;
  display: flex;
  flex-direction: column;
}

.chat-input-area {
  background: transparent;
  border-top: 1px solid rgba(196, 90, 66, 0.1);
  padding-top: 1rem;
  margin-top: auto;
}

.chat-bubble {
  max-width: 80%;
  margin-bottom: 1rem;
  animation: fadeIn 0.3s ease-in;
  font-family: "Work Sans", sans-serif;
}

.chat-bubble.bot {
  background: #fef1ee;
  padding: 1.5rem 2rem;
  border-radius: 1.5rem;
  position: relative;
  color: #61334b;
  box-shadow: 0 4px 6px -1px rgba(196, 90, 66, 0.1);
}

.chat-bubble.bot:before {
  content: "";
  position: absolute;
  left: -10px;
  top: 20px;
  border-right: 20px solid #fef1ee;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

.chat-bubble.user {
  background: #61334b;
  color: white;
  padding: 1.5rem 2rem;
  border-radius: 1.5rem;
  margin-left: auto;
  position: relative;
}

.chat-bubble.user:after {
  content: "";
  position: absolute;
  right: -10px;
  top: 20px;
  border-left: 20px solid #61334b;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

.option-card {
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid #fbc6ba;
  background: white;
}

.option-card:hover {
  transform: translateY(-2px);
  background: #fef1ee;
  border-color: #f57153;
}

.option-card.selected {
  background: #fef1ee;
  border-color: #f57153;
  color: #c45a42;
}

.progress-bar {
  transition: width 0.3s ease-in-out;
  background: linear-gradient(90deg, #dc2859, #f57153);
}

.input-field {
  border: 1px solid #fbc6ba;
  transition: all 0.3s ease;
}

.input-field:focus {
  border-color: #f57153;
  box-shadow: 0 0 0 3px rgba(245, 113, 83, 0.1);
}

.btn-primary {
  background: linear-gradient(319.34deg, #dc2859 -33.83%, #f57153 87.51%);
  color: white;
  transition: all 0.3s ease;
  font-family: "Work Sans", sans-serif;
  font-weight: 600;
}

.btn-primary:hover {
  box-shadow: 0 10px 32px rgba(196, 90, 66, 0.46);
}

.chat-title {
  font-family: "Work Sans", sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
  color: #61334b;
  margin-bottom: 1rem;
}

.chat-subtitle {
  font-family: "DM Sans", sans-serif;
  color: #916055;
  font-size: 1.1rem;
  margin-bottom: 0.25rem !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Form styling */
label {
  font-family: "Work Sans", sans-serif;
  font-weight: 500;
  color: #61334b;
}

input,
select {
  font-family: "DM Sans", sans-serif;
  border: 1px solid #fbc6ba;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

input:focus,
select:focus {
  border-color: #f57153;
  box-shadow: 0 0 0 3px rgba(245, 113, 83, 0.1);
  outline: none;
}

.continue-btn {
  background: linear-gradient(319.34deg, #dc2859 -33.83%, #f57153 87.51%);
  color: white;
  font-family: "Work Sans", sans-serif;
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: 1.5rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}

.continue-btn:hover {
  box-shadow: 0 10px 32px rgba(196, 90, 66, 0.46);
  transform: translateY(-2px);
}

.continue-btn:after {
  content: "→";
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.continue-btn:hover:after {
  transform: translateX(4px);
}

.page-title {
  font-family: "Work Sans", sans-serif;
  font-weight: 600;
  font-size: 2.5rem;
  color: #61334b;
  margin-bottom: 2rem;
  text-align: center;
  line-height: 1.2;
}

.page-title span {
  background: linear-gradient(319.34deg, #dc2859 -33.83%, #f57153 87.51%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Loading states */
.loading-bubble {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Enhanced content styling */
.enhanced-content {
  border-left: 4px solid var(--primary-color, #61334b);
  background-color: #fafafa;
}

.error-bubble {
  border-left: 4px solid #ef4444;
}

/* Review page styling */
.prose {
  line-height: 1.8;
  color: #374151;
}

.prose p {
  margin-bottom: 1.25em;
}

.prose h2 {
  color: var(--primary-color, #61334b);
  margin-top: 2em;
  margin-bottom: 1em;
}

.prose ul,
.prose ol {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  padding-left: 1.625em;
}

.prose li {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

/* Download buttons styling */
.download-btn {
  transition: all 0.3s ease;
}

.download-btn:hover {
  transform: translateY(-2px);
}

/* Review page specific styles */
.review-container {
  min-height: calc(100vh - 100px);
  max-height: calc(100vh - 100px) !important;
  background-color: white;
  padding: 0;
}

.review-page {
  min-height: 500px !important;
  max-height: calc(100vh - 250px) !important;
  overflow-y: auto;
  background-color: white;
}

/* Section content styling */
.content-mode {
  min-height: 100px;
  max-height: 250px !important;
  padding: 1rem;
  border: 1px solid #f0f0f0;
  border-radius: 6px;
  overflow-y: auto;
  background-color: #fafafa;
}

/* Make download buttons more accessible */
#currentInput {
  margin-top: 20px;
}

/* Make download buttons more attractive */
.download-btn {
  height: 130px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.download-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}
