@import url('https://fonts.googleapis.com/css2?family=Baloo+Bhai+2:wght@400..800&family=Oswald:wght@200..700&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Playfair:ital,opsz,wght@0,5..1200,300..900;1,5..1200,300..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
   font-family: "Baloo Bhai 2", sans-serif;
}

/* Chat Button */
.chat-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, hsl(223, 98%, 45%,0.8), #2a90bd);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(53, 189, 242, 0.5);
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(53, 189, 242, 0.7);
}

.chat-button i {
    color: white;
    font-size: 28px;
}

/* Chat Container */
.chat-container {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 380px;
    height: 550px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: none;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
}

.chat-container.open {
    display: flex;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Chat Header */
.chat-header {
    background: linear-gradient(135deg, hsl(223, 98%, 45%,0.8), #2a90bd);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    font-size: 18px;
    color: white;
}

.chat-header .close-btn {
    cursor: pointer;
    font-size: 24px;
    transition: transform 0.2s;
}

.chat-header .close-btn:hover {
    transform: rotate(90deg);
}

/* Chat Messages */
.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f5f5f5;
}

.message {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.bot {
    justify-content: flex-start;
}

.message.user {
    justify-content: flex-end;
}

.message-content {
    max-width: 75%;
    padding: 12px 16px;
    border-radius: 15px;
    font-size: 14px;
    line-height: 1.5;
}

.message.bot .message-content {
    background: white;
    color: #333;
    border-bottom-left-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.message.user .message-content {
    background: linear-gradient(135deg, hsl(223, 98%, 45%,0.8), #2a90bd);
    color: white;
    border-bottom-right-radius: 5px;
}

.message-content a {
    color: hsl(223, 98%, 45%,0.8);
    text-decoration: none;
    font-weight: 600;
}

.message.user .message-content a {
    color: white;
    text-decoration: underline;
}

/* Quick Options */
.quick-options {
    padding: 15px;
    background: white;
    border-top: 1px solid #e0e0e0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.quick-btn {
    padding: 8px 14px;
    background: #f0f0f0;
    border: 1px solid hsl(223, 98%, 45%,0.8);
    color: hsl(223, 98%, 45%,0.8);
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.quick-btn:hover {
    background: hsl(223, 98%, 45%,0.8);
    color: white;
}

/* Chat Input */
.chat-input {
    padding: 15px;
    background: white;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
}

.chat-input input {
    flex: 1;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    outline: none;
    font-size: 14px;
    transition: border 0.3s;
}

.chat-input input:focus {
    border-color: hsl(223, 98%, 45%,0.8);
}

.chat-input button {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, hsl(223, 98%, 45%,0.8), #2a90bd);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: transform 0.2s;
}

.chat-input button:hover {
    transform: scale(1.1);
}

/* Scrollbar */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: hsl(223, 98%, 45%,0.8);
    border-radius: 10px;
}

.chat-button,
.chat-container {
    position: fixed !important;
    transform: none !important;
    filter: none !important;
    will-change: transform;
    z-index: 9999 !important;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .chat-container {
        width: calc(100vw - 20px);
        right: 10px;
        bottom: 90px;
        height: 500px;
    }

    .chat-button {
        right: 20px;
        bottom: 20px;
    }
}
/* ==== RESPONSIVE CHATBOT FIXES ==== */

/* Tablets and small laptops */
@media (max-width: 1024px) {
  .chat-container {
    width: 360px;
    height: 500px;
    right: 25px;
    bottom: 90px;
  }

  .chat-header {
    padding: 15px;
  }

  .chat-header h3 {
    font-size: 16px;
  }

  .chat-input input {
    font-size: 14px;
  }

  .quick-btn {
    font-size: 11px;
    padding: 7px 12px;
  }
}

/* Mobile devices */
@media (max-width: 768px) {
  .chat-container {
    width: calc(100vw - 30px);
    height: 40vh;
    right: 15px;
    bottom: 85px;
    border-radius: 10px;
  }

  .chat-header {
    padding: 12px;
  }

  .chat-header h3 {
    font-size: 15px;
  }

  .chat-messages {
    padding: 12px;
  }

  .chat-input {
    padding: 10px;
    gap: 6px;
  }

  .chat-input input {
    padding: 10px;
    font-size: 13px;
  }

  .chat-input button {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .quick-options {
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px;
  }

  .quick-btn {
    font-size: 11px;
    padding: 6px 10px;
  }

  .chat-button {
    width: 55px;
    height: 55px;
    right: 15px;
    bottom: 20px;
  }

  .chat-button i {
    font-size: 26px;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .chat-container {
    width: calc(100vw - 20px);
    height: 75vh;
    right: 10px;
    bottom: 75px;
    border-radius: 10px;
  }

  .chat-header {
    padding: 10px;
  }

  .chat-header h3 {
    font-size: 14px;
  }

  .chat-messages {
    padding: 10px;
  }

  .chat-input input {
    font-size: 12px;
    padding: 8px;
  }

  .chat-input button {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }

  .quick-options {
    gap: 5px;
  }

  .quick-btn {
    font-size: 10px;
    padding: 5px 8px;
  }

  .chat-button {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 15px;
  }
}