/* Mira Chatbot Styles */

.mira-widget {
  position: fixed;
  right: 25px;
  bottom: 25px;
  z-index: 99999;
  font-family: Poppins, sans-serif;
}

.mira-open-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #0078ff;
  color: #fff;
  border: none;
  font-size: 26px;
  cursor: pointer;
  box-shadow: 0 5px 25px rgba(0,0,0,0.2);
}

.mira-window {
  width: 320px;
  height: 430px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 35px rgba(0,0,0,0.2);
  position: absolute;
  bottom: 80px;
  right: 0;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.mira-header {
  background: #0078ff;
  padding: 12px 15px;
  color: #fff;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mira-close {
  background: transparent;
  color: white;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

.mira-body {
  padding: 12px;
  flex: 1;
  overflow-y: auto;
  background: #f5f7fb;
}

.mira-msg {
  padding: 10px 12px;
  max-width: 80%;
  border-radius: 10px;
  margin-bottom: 10px;
  font-size: 14px;
}

.mira-msg.bot {
  background: white;
  color: #333;
  border-top-left-radius: 4px;
}

.mira-msg.user {
  background: #0078ff;
  color: #fff;
  align-self: flex-end;
  border-top-right-radius: 4px;
}

.mira-input-area {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid #ddd;
  background: #fff;
}

.mira-input-area input {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.mira-input-area button {
  padding: 10px 14px;
  background: #0078ff;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.whatsapp-btn {
  margin: 10px;
  background: #25d366;
  padding: 10px;
  border-radius: 8px;
  color: #fff;
  text-align: center;
  display: block;
  text-decoration: none;
  font-weight: 600;
}


/* Chat message container */
.mira-msg {
  max-width: 75%;
  padding: 10px 14px;
  margin: 8px 0;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.4;
  display: inline-block;
}

/* BOT MESSAGE — LEFT */
.mira-msg.bot {
  background: #ffffff;
  color: #333;
  border: 1px solid #e6e6e6;
  align-self: flex-start;
  border-top-left-radius: 3px;
}

/* USER MESSAGE — RIGHT */
.mira-msg.user {
  background: #007bff;
  color: white;
  align-self: flex-end;
  border-top-right-radius: 3px;
}

/* Parent should allow left-right alignment */
#miraBody {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  overflow-y: auto;
  height: 300px;
}
