* {
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", sans-serif;
}

/* Floating Button */
.seju-chat-btn {
  position: fixed;
  bottom: 120px;
  right: 40px;
  width: 65px;
  height: 65px;
  background: #2f7d32;
  color: #fff;
  border-radius: 50%;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  z-index: 9999;
}

/* Chatbox */
.seju-chatbox {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 360px;
  height: 520px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.3);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 9999;
}

.seju-chatbox.active {
  display: flex;
}

/* Header */
.seju-header {
  background: #2f7d32;
  color: #fff;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  font-size: 26px;
}

.title h4 {
  margin: 0;
}

.title span {
  font-size: 12px;
  opacity: 0.8;
}

.close-btn {
  margin-left: auto;
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

/* Body */
.seju-body {
  flex: 1;
  padding: 15px;
  background: #f4f7f4;
  overflow-y: auto;
}

/* Messages */
.msg {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  margin-bottom: 10px;
  line-height: 1.4;
}

.msg.bot {
  background: #e2f3e6;
  color: #2f7d32;
}

.msg.user {
  background: #2f7d32;
  color: #fff;
  margin-left: auto;
}

/* Quick Replies */
.quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.quick-replies button {
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid #2f7d32;
  background: #fff;
  color: #2f7d32;
  cursor: pointer;
  font-size: 12px;
}

/* Input */
.seju-input {
  display: flex;
  padding: 10px;
  border-top: 1px solid #ddd;
}

.seju-input input {
  flex: 1;
  padding: 10px;
  border-radius: 20px;
  border: 1px solid #ccc;
  outline: none;
}

.seju-input button {
  margin-left: 8px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #2f7d32;
  color: #fff;
  cursor: pointer;
}

/* Mobile */
@media (max-width: 480px) {
  .seju-chatbox {
    width: 100%;
    height: 100%;
    bottom: 0;
    right: 0;
    border-radius: 0;
  }
}
