body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f0f3f5;
  max-width: 500px;
  margin: 0 auto;
  padding: 0;
}
.chat-container {
  max-width: 450px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  margin: auto;
  background-color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  overflow: hidden;
  padding-bottom: 10px;
}
#chatBox {
  flex-grow: 1;
  overflow-y: auto;
  padding: 0px 10px 10px 10px;
  display: flex;
  flex-direction: column;
}
.chat-bubble {
  padding: 14px 18px;
  border-radius: 20px;
  word-wrap: break-word;
  margin-bottom: 12px;
  display: inline-block;
  max-width: 85%;
}
.chat-bubble.user {
  background-color: #7FFFD4 ;
  color: black;
  margin-left: auto;
  margin-right: 20px;
  text-align: left;
  width: auto;
  min-width: 50px;
}
.chat-bubble.ai {
  background-color: #f0f0f0;
  color: black;
  margin-right: auto;
  text-align: left;
}
.sender-header {
  font-weight: bold;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
}
.message-content {
  margin-bottom: 6px;
  white-space: pre-wrap;
}
.timestamp {
  font-size: 0.75rem;
  color: #a3a3a3;
  margin-top: 4px;
  text-align: right;
}

/* Date divider styles */
.date-divider {
  text-align: center;
  margin: 20px 0;
  font-size: 0.85rem;
  color: #666;
  padding: 8px;
  background-color: #f8f9fa;
  border-radius: 15px;
  font-weight: 500;
}

.input-buttons button:first-child {
  background-color: transparent; /* ✅ No background needed */
}

.input-buttons button:last-child {
  background-color: transparent; /* ✅ No background needed */
}

.icon {
  width: 45px;
  height: 45px;
}

/* Voice recording styles */
#voiceButton.recording {
  animation: pulse 1.5s infinite;
  box-shadow: 0 0 20px rgba(255, 68, 68, 0.5);
}

@keyframes pulse {
  0% {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.5);
  }
  50% {
    transform: scale(1.2);
    box-shadow: 0 0 30px rgba(255, 68, 68, 0.8);
  }
  100% {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.5);
  }
}

/* Recording indicator */
.recording-indicator {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #ff4444;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0.3; }
}

/* —— date divider styling —— */
.date-divider {
  text-align: center;
  margin: 12px 0;
  color: #666;
  font-size: 0.85rem;
  background: #e0e0e0;
  padding: 4px 12px;
  border-radius: 12px;
  align-self: center;
}
/* make the placeholder grey and slightly italic */
#chatInput::placeholder {
  color: #999;
  font-style: italic;
}

.blog-page {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background: #f9fafb;
  color: #333;
  line-height: 1.6;
  max-width: 100%; /* don’t restrict like chat */
}

.blog-page .container {
  width: 90%;
  max-width: 800px;
  margin: auto;
  padding: 1rem;
}

/* Navbar only applies inside blog-page */
.blog-page .navbar {
  background: #2eccb5;
  padding: 1rem 0;
  color: white;
}
.blog-page .navbar a {
  color: white;
  margin-left: 1rem;
  text-decoration: none;
}
.blog-page .navbar a:hover {
  text-decoration: underline;
}

/* Blog list cards */
.blog-page .blog-card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  margin-bottom: 1.5rem;
}
.blog-page .read-more {
  color: #2eccb5;
  font-weight: bold;
  text-decoration: none;
}

