#chatbot {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 420px;
    height: 650px;
    background: linear-gradient(145deg, #0a1929 0%, #001e3c 25%, #003a70 50%, #002856 75%, #001e3c 100%);
    color: #fff;
    border-radius: 24px;
    overflow: hidden;
    font-family: 'Poppins', 'Inter', 'Segoe UI', sans-serif;
    z-index: 9999;
    box-shadow: 0 25px 50px rgba(0, 119, 182, 0.4), 0 0 0 1px rgba(0, 217, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 0 60px rgba(0, 217, 255, 0.2);
    backdrop-filter: blur(30px);
    display: flex;
    flex-direction: column;
    animation: slideUpBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition: all 0.3s ease;
}


/* Responsive Chatbot Breakpoints */

@media (min-width: 1920px) {
    #chatbot {
        width: 450px;
        height: 700px;
    }
}

@media (max-width: 1919px) and (min-width: 1280px) {
    #chatbot {
        width: 420px;
        height: 650px;
    }
}

@media (max-width: 1279px) and (min-width: 1024px) {
    #chatbot {
        width: 380px;
        height: 600px;
    }
}

@media (max-width: 1023px) and (min-width: 768px) {
    #chatbot {
        width: 90vw;
        height: 70vh;
        bottom: 10px;
        right: 5vw;
    }
}

@media (max-width: 767px) and (min-width: 480px) {
    #chatbot {
        width: 95vw;
        height: 75vh;
        bottom: 10px;
        right: 2.5vw;
        border-radius: 20px;
    }
}

@media (max-width: 479px) {
    #chatbot {
        width: 100vw;
        height: 100vh;
        bottom: 0;
        right: 0;
        border-radius: 0;
        max-width: none;
        max-height: none;
    }
}

#chatbot::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: radial-gradient(circle at 50% 0%, rgba(0, 180, 216, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

@keyframes slideUpBounce {
    0% {
        transform: translateY(100px) scale(0.8);
        opacity: 0;
    }
    50% {
        transform: translateY(-10px) scale(1.02);
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}


/* Header with Marine Theme - Responsive */

#chatbot .header {
    background: linear-gradient(135deg, #006ba6 0%, #0077b6 40%, #00b4d8 70%, #0096c7 100%);
    padding: 20px 24px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    box-shadow: 0 4px 20px rgba(0, 119, 182, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
    gap: 10px;
}

@media (max-width: 767px) {
    #chatbot .header {
        padding: 16px 20px;
        font-size: 14px;
        gap: 8px;
    }
}

@media (max-width: 479px) {
    #chatbot .header {
        padding: 14px 16px;
        font-size: 13px;
        gap: 6px;
    }
}

#chatbot .header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

#chatbot .header span {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

#chatbot .header span::before {
    content: '🌊';
    font-size: 24px;
    animation: wave 2s ease-in-out infinite;
}

@keyframes wave {
    0%,
    100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-10deg);
    }
    75% {
        transform: rotate(10deg);
    }
}

#closeChat {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
    font-weight: bold;
    flex-shrink: 0;
}

#closeChat:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#closeChat:active {
    transform: rotate(90deg) scale(0.95);
}

@media (max-width: 767px) {
    #closeChat {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
}

@media (max-width: 479px) {
    #closeChat {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
}


/* Messages Container with Enhanced Scrolling */

#chatbot .messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    overflow-x: hidden;
    font-size: 14px;
    background: radial-gradient(circle at 20% 50%, rgba(0, 119, 182, 0.05) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(0, 180, 216, 0.05) 0%, transparent 50%), rgba(0, 30, 60, 0.2);
    scroll-behavior: smooth;
    position: relative;
}


/* Enhanced Scrollbar */

#chatbot .messages::-webkit-scrollbar {
    width: 8px;
}

#chatbot .messages::-webkit-scrollbar-track {
    background: rgba(0, 30, 60, 0.4);
    border-radius: 4px;
    margin: 8px 0;
}

#chatbot .messages::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00d9ff 0%, #0077b6 100%);
    border-radius: 4px;
    transition: all 0.3s;
}

#chatbot .messages::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #00b4d8 0%, #006ba6 100%);
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
}


/* Message Bubbles with Modern Design */

#chatbot .messages>div {
    margin-bottom: 18px;
    padding: 14px 18px;
    border-radius: 18px;
    max-width: 85%;
    line-height: 1.6;
    word-wrap: break-word;
    animation: messageSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    position: relative;
}

@keyframes messageSlideIn {
    0% {
        opacity: 0;
        transform: translateY(15px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* Enhanced Avatar */

.avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    position: relative;
}

.avatar::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
    animation: avatarShine 3s infinite;
    z-index: -1;
}

@keyframes avatarShine {
    0%,
    100% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
}


/* Message Content */

.message-content {
    flex: 1;
    min-width: 0;
}


/* User Message with Gradient */

.user {
    text-align: right;
    margin-left: auto;
    background: linear-gradient(135deg, #00d9ff 0%, #0091ad 100%);
    border-radius: 18px 18px 4px 18px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 20px rgba(0, 217, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 -1px 2px rgba(0, 0, 0, 0.1);
    flex-direction: row-reverse;
    transform-origin: right center;
}

.user:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 28px rgba(0, 217, 255, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 -1px 2px rgba(0, 0, 0, 0.15);
}

.user .avatar {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 100%);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.user .message-content {
    color: #ffffff;
    text-align: right;
    font-weight: 500;
}


/* Bot Message with Marine Theme */

.bot {
    text-align: left;
    color: #e5e7eb;
    background: linear-gradient(135deg, rgba(15, 118, 210, 0.25) 0%, rgba(0, 119, 182, 0.18) 100%);
    border-radius: 18px 18px 18px 4px;
    border: 1px solid rgba(0, 217, 255, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 20px rgba(0, 217, 255, 0.15);
    backdrop-filter: blur(10px);
    transform-origin: left center;
}

.bot:hover {
    transform: scale(1.02);
    background: linear-gradient(135deg, rgba(15, 118, 210, 0.3) 0%, rgba(0, 119, 182, 0.22) 100%);
    border-color: rgba(0, 217, 255, 0.5);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 25px rgba(0, 217, 255, 0.25);
}

.bot .avatar {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.3) 0%, rgba(0, 119, 182, 0.2) 100%);
    border: 2px solid rgba(0, 217, 255, 0.4);
    animation: botPulse 2s ease-in-out infinite;
}

@keyframes botPulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(0, 217, 255, 0.7);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(0, 217, 255, 0);
    }
}

.bot .message-content {
    color: #e5e7eb;
}


/* Enhanced Text Formatting */

.bot strong {
    color: #00d9ff;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
}

.bot em {
    color: #64b5f6;
    font-style: italic;
}


/* Loading State with Animation */

.bot.loading {
    color: #64b5f6;
    background: linear-gradient(135deg, rgba(100, 181, 246, 0.15) 0%, rgba(0, 217, 255, 0.1) 100%);
    border-color: rgba(100, 181, 246, 0.4);
    animation: loadingPulse 1.5s ease-in-out infinite;
}

@keyframes loadingPulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.02);
        opacity: 0.8;
    }
}

.bot.loading .message-content {
    color: #64b5f6;
    position: relative;
}

.bot.loading .message-content::after {
    content: '●●●';
    display: inline-block;
    animation: loadingDots 1.5s infinite;
    margin-left: 4px;
    letter-spacing: 2px;
}

@keyframes loadingDots {
    0% {
        content: '●';
    }
    40% {
        content: '●●';
    }
    60%,
    100% {
        content: '●●●';
    }
}


/* Error State */

.bot.error {
    color: #fca5a5;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(239, 68, 68, 0.1) 100%);
    border-color: rgba(239, 68, 68, 0.5);
    animation: errorShake 0.5s;
}

@keyframes errorShake {
    0%,
    100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

.bot.error .avatar {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.3) 0%, rgba(239, 68, 68, 0.2) 100%);
    border-color: rgba(239, 68, 68, 0.5);
}

.bot.error .message-content {
    color: #fca5a5;
}


/* Modern Input Area */

#chatbot .input-area {
    display: flex;
    border-top: 1px solid rgba(0, 217, 255, 0.2);
    background: linear-gradient(180deg, rgba(0, 30, 60, 0.8) 0%, rgba(0, 30, 60, 0.95) 100%);
    flex-shrink: 0;
    padding: 14px;
    gap: 10px;
    backdrop-filter: blur(20px);
}

#chatbot input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid rgba(0, 217, 255, 0.4);
    outline: none;
    background: rgba(0, 30, 60, 0.7);
    color: #ffffff;
    font-size: 14px;
    font-family: inherit;
    font-weight: 500;
    border-radius: 14px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

#chatbot input:focus {
    border-color: #00d9ff;
    background: rgba(0, 30, 60, 0.9);
    box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.15), 0 4px 16px rgba(0, 217, 255, 0.25), inset 0 0 10px rgba(0, 217, 255, 0.1);
}

#chatbot input::placeholder {
    color: rgba(156, 163, 175, 0.6);
}

#chatbot input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


/* Modern Send Button */

#chatbot button {
    background: linear-gradient(135deg, #00b4d8 0%, #0077b6 50%, #005fa3 100%);
    border: none;
    padding: 14px 24px;
    cursor: pointer;
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    border-radius: 14px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 180, 216, 0.35);
    white-space: nowrap;
}

#chatbot button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

#chatbot button::after {
    content: '➤';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    opacity: 0;
    transition: all 0.3s ease;
}

#chatbot button:hover {
    background: linear-gradient(135deg, #0096c7 0%, #006ba6 50%, #004a8a 100%);
    box-shadow: 0 0 25px rgba(0, 217, 255, 0.6), 0 8px 20px rgba(0, 180, 216, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    padding-right: 40px;
}

#chatbot button:hover::before {
    width: 400px;
    height: 400px;
}

#chatbot button:hover::after {
    opacity: 1;
    right: 16px;
}

#chatbot button:active {
    transform: translateY(0) scale(0.98);
}

#chatbot button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

#chatbot button:disabled:hover {
    padding-right: 24px;
    box-shadow: 0 4px 12px rgba(0, 180, 216, 0.3);
}

#chatbot button:disabled:hover::before {
    width: 0;
    height: 0;
}

#chatbot button:disabled:hover::after {
    opacity: 0;
}

#chatbot button:disabled:hover::before {
    width: 0;
    height: 0;
}


/* Responsive Design */

@media (max-width: 768px) {
    #chatbot {
        width: calc(100vw - 30px);
        height: 500px;
        bottom: 12px;
        right: 15px;
        left: 15px;
        border-radius: 16px;
    }
    #chatbot .header {
        padding: 14px 16px;
        font-size: 15px;
    }
    #chatbot .messages {
        padding: 12px;
    }
    #chatbot .messages>div {
        font-size: 13px;
        max-width: 90%;
    }
    #chatbot input {
        padding: 10px 12px;
        font-size: 12px;
    }
    #chatbot button {
        padding: 10px 16px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    #chatbot {
        width: calc(100vw - 20px);
        height: 400px;
        bottom: 10px;
        right: 10px;
        left: 10px;
        border-radius: 12px;
    }
    #chatbot .header {
        padding: 12px 16px;
        font-size: 15px;
    }
    #chatbot .messages {
        padding: 10px;
    }
    #chatbot input {
        padding: 12px 14px;
        font-size: 13px;
    }
    #chatbot button {
        padding: 12px 18px;
        font-size: 13px;
    }
    #chatToggle {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }
    #chatToggle i {
        font-size: 20px;
    }
}


/* Accessibility & Motion Preferences */

@media (prefers-reduced-motion: reduce) {
    #chatbot,
    #chatbot .messages>div,
    .bot.loading,
    .avatar,
    #chatbot button::before {
        animation: none;
    }
    #chatbot button,
    .user,
    .bot,
    #closeChat {
        transition: none;
    }
}


/* Focus Visible for Accessibility */

#chatbot input:focus-visible,
#chatbot button:focus-visible,
#closeChat:focus-visible {
    outline: 2px solid #00d9ff;
    outline-offset: 2px;
}


/* Close Animation */

@keyframes slideDown {
    from {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    to {
        transform: translateY(100px) scale(0.8);
        opacity: 0;
    }
}


/* Chat Toggle Icon */

#chatToggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #00b4d8 0%, #0077b6 100%);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 119, 182, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9998;
    border: 2px solid rgba(255, 255, 255, 0.2);
    font-size: 0;
}

#chatToggle:hover {
    transform: scale(1.15);
    box-shadow: 0 12px 32px rgba(0, 119, 182, 0.6);
}

#chatToggle i {
    color: #ffffff;
    font-size: 24px;
    animation: bounceIn 0.6s ease-out;
    display: block;
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}


/* Minimized Chatbot State */

#chatbot.minimized {
    width: 60px !important;
    height: 60px !important;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    animation: minimizeBounce 0.4s ease-out;
}

@keyframes minimizeBounce {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

#chatbot.minimized .header,
#chatbot.minimized .messages,
#chatbot.minimized .input-area {
    display: none;
}

#chatbot.minimized::before {
    content: '💬';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 28px;
    z-index: 10;
}


/* Typing Indicator Animation */

.typing-indicator {
    display: inline-flex;
    gap: 4px;
    margin-right: 6px;
}

.typing-indicator span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #64b5f6;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}


/* ============================================
   RESPONSIVE CHATBOT DESIGN
   ============================================ */


/* Extra Large Screens */

@media (min-width: 1920px) {
    #chatbot {
        width: 450px !important;
        height: 700px !important;
    }
}


/* Large Screens */

@media (min-width: 1280px) and (max-width: 1919px) {
    #chatbot {
        width: 420px !important;
        height: 650px !important;
    }
}


/* Medium-Large Screens */

@media (min-width: 1024px) and (max-width: 1279px) {
    #chatbot {
        width: 380px !important;
        height: 600px !important;
    }
    #chatbot .header {
        padding: 16px 18px;
        font-size: 14px;
    }
    #chatbot input {
        padding: 12px 14px;
        font-size: 12px;
    }
    #chatbot button {
        padding: 10px 16px;
        font-size: 11px;
    }
}


/* Tablet Screens (768px - 1023px) */

@media (max-width: 1023px) {
    #chatbot {
        width: 90vw !important;
        max-width: 100% !important;
        height: 70vh !important;
        max-height: calc(100vh - 80px) !important;
        bottom: 10px !important;
        right: 10px !important;
        left: 10px !important;
        border-radius: 20px;
    }
    #chatbot .header {
        padding: 14px 16px;
        font-size: 13px;
    }
    #chatbot .header span {
        gap: 8px;
    }
    #chatbot .header span::before {
        font-size: 20px;
    }
    #chatbot .messages {
        padding: 14px;
    }
    #chatbot input {
        padding: 11px 14px;
        font-size: 12px;
        border-radius: 12px;
    }
    #chatbot button {
        padding: 10px 14px;
        font-size: 11px;
        border-radius: 10px;
    }
    #chatbot .input-area {
        padding: 12px;
        gap: 8px;
    }
    .avatar {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
}


/* Mobile Screens (480px - 767px) */

@media (max-width: 767px) {
    #chatbot {
        width: 95vw !important;
        max-width: 100% !important;
        height: 75vh !important;
        max-height: calc(100vh - 70px) !important;
        bottom: 5px !important;
        right: 5px !important;
        left: 5px !important;
        border-radius: 16px;
        z-index: 9999;
    }
    #chatbot::before {
        height: 250px;
    }
    #chatbot .header {
        padding: 12px 14px;
        font-size: 12px;
    }
    #chatbot .header span {
        gap: 6px;
        font-size: 12px;
    }
    #chatbot .header span::before {
        font-size: 18px;
    }
    #closeChat {
        width: 30px;
        height: 30px;
        font-size: 16px;
        padding: 0;
    }
    #chatbot .messages {
        padding: 12px;
        font-size: 13px;
    }
    #chatbot .messages>div {
        margin-bottom: 12px;
        padding: 10px 12px;
        max-width: 85%;
        border-radius: 14px;
    }
    .avatar {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    #chatbot input {
        padding: 10px 12px;
        font-size: 11px;
        border-radius: 10px;
    }
    #chatbot button {
        padding: 9px 12px;
        font-size: 10px;
        border-radius: 9px;
    }
    #chatbot .input-area {
        padding: 10px;
        gap: 6px;
    }
    #chatToggle {
        width: 50px;
        height: 50px;
        bottom: 10px !important;
        right: 10px !important;
        font-size: 20px;
    }
}


/* Extra Small Screens (below 480px) */

@media (max-width: 479px) {
    #chatbot {
        width: 100vw !important;
        max-width: 100% !important;
        height: 100vh !important;
        max-height: 100vh !important;
        bottom: 0 !important;
        right: 0 !important;
        left: 0 !important;
        top: 0 !important;
        border-radius: 0;
        z-index: 9999;
        position: fixed !important;
    }
    #chatbot::before {
        height: 200px;
    }
    #chatbot .header {
        padding: 10px 12px;
        font-size: 11px;
    }
    #chatbot .header span {
        gap: 4px;
        font-size: 11px;
    }
    #chatbot .header span::before {
        font-size: 16px;
    }
    #closeChat {
        width: 28px;
        height: 28px;
        font-size: 14px;
        padding: 0;
    }
    #chatbot .messages {
        padding: 10px;
        font-size: 12px;
    }
    #chatbot .messages>div {
        margin-bottom: 10px;
        padding: 8px 10px;
        max-width: 88%;
        border-radius: 12px;
        gap: 10px;
    }
    .avatar {
        width: 24px;
        height: 24px;
        font-size: 12px;
        flex-shrink: 0;
    }
    #chatbot input {
        padding: 9px 10px;
        font-size: 10px;
        border-radius: 8px;
    }
    #chatbot button {
        padding: 8px 10px;
        font-size: 9px;
        border-radius: 8px;
    }
    #chatbot .input-area {
        padding: 8px;
        gap: 4px;
    }
    #chatToggle {
        width: 45px;
        height: 45px;
        bottom: 5px !important;
        right: 5px !important;
        font-size: 18px;
    }
}


/* Icon Rendering Fix for Chatbot */

#chatbot i,
#chatbot .fa,
#chatbot [class*="fa-"],
#chatToggle i,
#chatToggle .fa {
    display: inline-block !important;
    font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Pro' !important;
    font-weight: 900 !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
    color: inherit !important;
    vertical-align: -0.125em;
}

#chatbot i::before,
#chatbot .fa::before,
#chatToggle i::before,
#chatToggle .fa::before {
    display: inline-block !important;
}