/* Enhanced Chatbot Styles for RK International School */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}
@keyframes messageSlideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes typingDots {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  30% {
    transform: translateY(-6px);
    opacity: 1;
  }
}
@keyframes slideInUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}
.chatbot-handler {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: linear-gradient(135deg, #d3b143 0%, #f4d03f 50%, #d3b143 100%);
  width: 70px;
  height: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  border: 3px solid #45070e;
  z-index: 1000;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  animation: bounce 2s infinite;
}
.chatbot-handler:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.chatbot-handler:focus {
  outline: 2px solid #d3b143;
  outline-offset: 2px;
}
.chatbot-handler img {
  width: 50px;
  height: 50px;
  transition: transform 0.3s ease;
}
.chatbot-handler i {
  display: none;
  font-size: 28px;
  color: #45070e;
  font-weight: bold;
}

.chatbox {
  display: none;
  position: fixed;
  right: 24px;
  bottom: 100px;
  height: 500px;
  width: 350px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  border: 2px solid #d3b143;
  overflow: hidden;
  z-index: 999;
  font-family: "Poppins", sans-serif;
}
.chatbox .heading {
  background: linear-gradient(135deg, #d3b143 0%, #f4d03f 50%, #d3b143 100%);
  display: flex;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.chatbox .heading img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 12px;
  border: 2px solid #45070e;
}
.chatbox .heading section h2 {
  font-size: 16px;
  font-weight: 600;
  color: #45070e;
  margin-bottom: 4px;
}
.chatbox .heading section p {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: #333;
  gap: 6px;
}
.chatbox .heading section p img {
  width: 12px;
  height: 12px;
  border: none;
  margin: 0;
}
.chatbox .texts {
  height: 350px;
  overflow-y: auto;
  padding: 15px;
  background: linear-gradient(to bottom, #fafafa, #fff);
  scroll-behavior: smooth;
}
.chatbox .texts::-webkit-scrollbar {
  width: 6px;
}
.chatbox .texts::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}
.chatbox .texts::-webkit-scrollbar-thumb {
  background: #d3b143;
  border-radius: 3px;
}
.chatbox .texts::-webkit-scrollbar-thumb:hover {
  background: rgb(183.9482758621, 150.6810344828, 43.0517241379);
}
.chatbox .texts > div {
  margin-bottom: 15px;
  animation: messageSlideIn 0.3s ease-out;
}
.chatbox .texts > div div, .chatbox .texts > div p {
  font-size: 12px;
}
.chatbox .texts > div div:nth-child(1), .chatbox .texts > div p:nth-child(1) {
  font-weight: bolder;
  font-size: 12px;
}
.chatbox .texts > div div:nth-child(2), .chatbox .texts > div p:nth-child(2) {
  font-size: 10px;
}
.chatbox .texts > div .btn {
  background: linear-gradient(135deg, #d3b143 0%, #f4d03f 50%, #d3b143 100%);
  padding: 8px 12px;
  border-radius: 15px;
  font-size: 12px;
  margin: 2px;
  text-decoration: none;
  font-weight: 600;
  color: #45070e;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  transition: all 0.3s ease;
  border: 1px solid #d3b143;
}
.chatbox .texts > div .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(211, 177, 67, 0.3);
  background: linear-gradient(135deg, #f4d03f, #d3b143);
}
.chatbox .texts > div img {
  width: 30px;
}
.chatbox .texts .chatbot_txt {
  align-self: flex-start;
  text-align: left;
}
.chatbox .texts .chatbot_txt .msg {
  padding: 12px 16px;
  border-radius: 18px 18px 18px 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  font-size: 14px;
  line-height: 1.4;
  position: relative;
  max-width: 85%;
  animation: messageSlideIn 0.3s ease-out;
  background: #fff;
  color: #333;
  border: 1px solid #e0e0e0;
  margin-left: 0;
}
.chatbox .texts .chatbot_txt .msg::before {
  content: "";
  position: absolute;
  bottom: 0;
  width: 0;
  height: 0;
  border: 6px solid transparent;
  left: -6px;
  border-right-color: #fff;
  border-bottom-color: #fff;
}
.chatbox .texts .usr_txt {
  align-self: flex-end;
  margin-left: auto;
  text-align: right;
  position: relative;
  left: 0;
}
.chatbox .texts .usr_txt .msg {
  padding: 12px 16px;
  border-radius: 18px 18px 6px 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  font-size: 14px;
  line-height: 1.4;
  position: relative;
  max-width: 85%;
  animation: messageSlideIn 0.3s ease-out;
  background: linear-gradient(135deg, #45070e, #6b1f1f);
  color: white;
  box-shadow: 0 2px 8px rgba(69, 7, 14, 0.2);
}
.chatbox .texts .usr_txt .msg::before {
  content: "";
  position: absolute;
  bottom: 0;
  width: 0;
  height: 0;
  border: 6px solid transparent;
  right: -6px;
  border-left-color: #45070e;
  border-bottom-color: #45070e;
}
.chatbox .timestamp {
  font-size: 11px;
  color: #999;
  margin-top: 4px;
  opacity: 0.8;
}
.chatbot_txt .chatbox .timestamp {
  text-align: left;
}
.usr_txt .chatbox .timestamp {
  text-align: right;
}
.chatbox .typing-indicator .msg {
  background: #fff !important;
  border: 1px solid #e0e0e0 !important;
  padding: 16px !important;
}
.chatbox .typing-animation {
  display: flex;
  gap: 4px;
  justify-content: center;
  align-items: center;
}
.chatbox .typing-animation span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #d3b143;
  animation: typingDots 1.4s infinite ease-in-out;
}
.chatbox .typing-animation span:nth-child(1) {
  animation-delay: 0s;
}
.chatbox .typing-animation span:nth-child(2) {
  animation-delay: 0.2s;
}
.chatbox .typing-animation span:nth-child(3) {
  animation-delay: 0.4s;
}
.chatbox .quick-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}
.chatbox .inputs {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 15px;
  background: #f8f9fa;
  border-top: 1px solid #e0e0e0;
  gap: 10px;
}
.chatbox .inputs input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 25px;
  outline: none;
  font-size: 14px;
  background: white;
  transition: all 0.3s ease;
}
.chatbox .inputs input:focus {
  border-color: #d3b143;
  box-shadow: 0 0 0 3px rgba(211, 177, 67, 0.1);
}
.chatbox .inputs input::placeholder {
  color: #999;
}
.chatbox .inputs button {
  background: linear-gradient(135deg, #45070e, #6b1f1f);
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(69, 7, 14, 0.2);
}
.chatbox .inputs button:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.chatbox .inputs button:focus {
  outline: 2px solid #d3b143;
  outline-offset: 2px;
}
.chatbox .inputs button i {
  color: white;
  font-size: 16px;
}

.red_alert {
  background-color: rgba(255, 0, 0, 0.575);
  color: white;
  font-size: 9px;
  padding: 3px;
  border-radius: 10px;
  font-weight: bolder;
  position: relative;
  top: -5px;
  left: -10px;
  animation: pulse 0.5s infinite linear;
}

@media screen and (max-width: 768px) {
  .chatbox {
    width: calc(100vw - 20px);
    right: 10px;
    bottom: 90px;
    height: 450px;
  }
  .chatbot-handler {
    right: 15px;
    bottom: 15px;
    width: 60px;
    height: 60px;
  }
  .chatbot-handler img {
    width: 40px;
    height: 40px;
  }
}
@media screen and (max-width: 550px) {
  .chatbot-handler {
    right: 10px;
    bottom: 10px;
  }
  .chatbox {
    right: 10px;
    bottom: 79px;
  }
}
@media screen and (max-width: 480px) {
  .chatbox {
    width: calc(100vw - 10px);
    right: 5px;
    bottom: 80px;
    height: 400px;
  }
  .chatbox .texts {
    height: 280px;
    padding: 10px;
  }
  .chatbox .texts > div {
    max-width: 90%;
  }
  .chatbox .heading {
    padding: 12px 15px;
  }
  .chatbox .heading section h2 {
    font-size: 14px;
  }
  .chatbox .inputs {
    padding: 10px;
  }
  .chatbot-handler {
    width: 55px;
    height: 55px;
  }
  .chatbot-handler img {
    width: 35px;
    height: 35px;
  }
}
@media (prefers-contrast: high) {
  .chatbox .texts .chatbot_txt .msg {
    border: 2px solid #000;
  }
  .chatbox .texts .usr_txt .msg {
    border: 2px solid #fff;
  }
}
@media (prefers-reduced-motion: reduce) {
  .chatbot-handler {
    animation: none;
  }
  @keyframes messageSlideIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
  @keyframes typingDots {
    0%, 100% {
      opacity: 0.4;
    }
    50% {
      opacity: 1;
    }
  }
}

/*# sourceMappingURL=chatbot.css.map */
