/* static/style.css */

body {
  font-family: Arial, sans-serif;
  margin: 0;
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

/* Chat Widget */
#chat-widget {
  width: 1000px;
  height: 490px;
  border: 1px solid #ccc;
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Chat Header */
.chat-header {
  background-color: #b63a2f;
  color: white;
  padding: 5px 10px;
  text-align: center;
  font-size: 12px;
  font-weight: bold;
  height: 35px;
  box-sizing: border-box;
  border-radius: 15px 15px 0 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Messages Area */
#messages {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  background-color: #ffffff;
}

.welcome-logo {
  display: block;
  margin: 0 auto 10px auto;
  width: 180px;
  height: 50px;
}

.welcome-logo1 {
  display: block;
  margin: 0 auto 10px auto;
  width: 290px;
  height: 150px;
}

.welcome-text {
  text-align: center;
  font-size: 15px;
  color: #b63a2f;
  margin-bottom: 10px;
  font-weight: bold;
}

/* Assistant Response Styling */
.message.assistant {
  background-color: #f2f2f2;
  color: #b63a2f;
  padding: 10px;
  margin: 10px 0;
  border-radius: 8px;
  line-height: 1.5;
  font-size: 16px;
  font-weight: bold;
  white-space: pre-wrap;
}

/* User Message Styling */
.message.user {
  text-align: right;
  color: #000000;
  padding: 5px;
  font-size: 14px;
  font-weight: bold;
}

/* Error Message Styling */
.message.error {
  color: red;
  font-size: 12px;
  padding: 5px;
}

/* Input Area */
.input-area {
  display: flex;
  padding: 10px;
  border-top: 1px solid #ccc;
}

#messageInput {
  flex: 1;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
  margin-right: 10px;
}

.send-button {
  background-color: #e22f2f;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
}

.send-button:hover {
  background-color: #cc2727;
}

/* Minimal mic button (voice) */
.mic-button {
  background-color: #fff;
  color: #555;
  border: 1px solid #ccc;
  padding: 10px 16px;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
  margin-left: 5px;
}
.mic-button:hover {
  background-color: #f8f8f8;
}

/* Chat Footer */
.chat-footer {
  display: flex;
  justify-content: space-around;
  padding: 10px;
  background-color: #ffffff;
  border-top: 1px solid #ccc;
}

.action-btn {
  background-color: #b63a2f;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
}

.action-btn:hover {
  background-color: #333;
}

.sponsor-text {
  text-align: center;
  margin-top: 5px;
  font-size: 11px;
  color: #011a42; 
  font-weight: bold;
}

/* Ensure images in assistant messages scale to 50% width and are centered */
.message.assistant img {
  max-width: 50%;
  display: block;
  margin: 10px auto;
}

/* Simple progress bar (10px tall) */
#progressBarContainer {
  width: 300px;
  height: 10px;
  border: 1px solid #000;
  display: none;
  margin: 10px auto;
}
#progressBar {
  width: 0%;
  height: 100%;
  background-color: #4CAF50;
  transition: width 0.2s ease;
}

/* Panel for language selection (hidden by default) */
#languagePanel {
  display: none;
  margin-top: 6px;
  text-align: center;
  padding: 4px;
}

/* Language Buttons with flags */
.lang-btn {
  background: #f9f9f9;
  border: 1px solid #ccc;
  padding: 5px 8px;
  margin: 3px;
  border-radius: 5px;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lang-btn img {
  width: 20px;
  height: auto;
  display: inline-block;
}
.lang-btn:hover {
  background: #eee;
}

@media screen and (max-width:600px){
  .lang-btn {
    font-size: 14px;
    margin: 3px 2px;
    padding: 5px 6px;
  }
  .lang-btn img {
    width: 18px;
  }
  }
  /* Transcript block tweaks (shared across assistants) */
  .transcript { line-height: 1.45; }
  .transcript p { margin: 6px 0; }
  .transcript ul, .transcript ol { margin: 6px 0 0 18px; padding: 0; }
  .transcript li { margin: 2px 0; }
  .transcript strong { font-weight: 600; }

  /* Optional: make the two label lines stand out slightly */
  .transcript .label { font-weight: 700; color: #093569; }
}
