/* === GLOBAL STYLES === */
body {
  font-family: 'Montserrat', sans-serif;
  text-align: center;
  padding: 0 20px 20px 20px;
  margin: 0;
  background: url('/images/cdbkg.jpg') no-repeat center center fixed;
  background-size: cover;
  background-color: #ffffff;
}

/* === UNIVERSAL BUTTONS === */
button, .nav-button {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 16px;
  color: #333;
  background-color: #f0f0f0;
  border: 1px solid #aaa;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.3s ease-in-out, border-color 0.3s ease-in-out;
  box-shadow: none;
  cursor: pointer;
  margin-top: 10px;
}

button:hover,
.nav-button:hover {
  background-color: #e0e0e0;
  border-color: #666;
  color: #111;
}

/* === CHATBOT BUTTONS === */
.chatbot-btn {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 18px;
  background-color: #f0f0f0;
  color: #333;
  border: 1px solid #aaa;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);

  /* ✅ Flexible and consistent */
  max-width: 240px;
  min-width: 160px;
  height: 60px;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}



.chatbot-btn:hover {
  background-color: #e0e0e0;
  border-color: #666;
  color: #111;
}

.chatbot-btn.active {
  background-color: #dcdcdc;
  border-color: #333;
  color: #000;
}

/* === DASHBOARD CONTAINER === */
#dashboard {
  width: 100%;
  max-width: 1600px;
  background: #f8f6f0;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(200, 156, 148, 0.15);
  margin: auto;
  box-sizing: border-box;
}

#chatbotButtons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}


#mainContainer {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  margin-top: 20px;
  flex-wrap: nowrap;
}

#leftColumn {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-width: 0;
}

#rightColumn {
  flex: 1 1 55%;
  min-width: 500px;
  padding-left: 20px;
}

#summaryFrame {
  width: 100%;
  height: 800px;
  border: 2px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
  box-shadow: 0 4px 12px rgba(200, 156, 148, 0.2);
}

/* === CHATBOX === */
#chatBox {
  flex: 1 1 50%;
  min-height: 400px;
  max-height: 800px;
  overflow-y: auto;
  padding: 15px;
  background-color: #ffffff;
  border: 2px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
  font-size: 16px;
  line-height: 1.6;
  white-space: pre-line;
  box-shadow: 0 4px 12px rgba(200, 156, 148, 0.2);
}

#chatBox p {
  margin-bottom: 12px;
}

#userInput {
  width: 100%;
  max-width: 100%;
  min-height: 120px;
  resize: vertical;
  padding: 10px;
  font-size: 16px;
  border: 2px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
  margin-top: 10px;
  background: #fff;
  color: #333;
}

#sendButton, #voiceRecordButton {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 600;
  padding: 10px 16px;
  margin-top: 10px;
  background-color: #f0f0f0;
  color: #333;
  border: 2px solid #ccc;
  border-radius: 5px;
  cursor: pointer;
}

#sendButton:hover, #voiceRecordButton:hover {
  background-color: #e0e0e0;
  color: #111;
  border-color: #ccc;
}

/* === SPINNER === */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  #mainContainer {
    flex-direction: column;
  }
  #leftColumn, #rightColumn {
    width: 100%;
    padding: 0;
  }
  #summaryFrame {
    height: 500px;
  }
}
/* === Buy Credits Button === */
.credit-button {
  background-color: #fdf7f2; /* light cream/pinkish tone */
  color: #5a3e36; /* warm, readable brown */
  border: 2px solid #ccc; /* matches chatBox border */
  font-weight: bold;
  padding: 12px 24px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(200, 156, 148, 0.25); /* soft shadow using rose tone */
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  transition: background-color 0.3s ease-in-out, border-color 0.3s ease-in-out;
}

.credit-button:hover {
  background-color: #f5ecca; /* soft hover effect */
  border-color: #b07f78;
  color: #3d2a25;
}


/* === Footer === */
footer {
  margin-top: 50px;
  padding: 20px;
  text-align: center;
  font-size: 0.9rem;
  color: #666;
}
#userAuthControls button {
  min-width: 100px;
  text-align: center;
}
#clariiaLogo {
  position: absolute;
  top: 10px;
  left: 20px;
  height: 60px;
  z-index: 1000;
}
