/* Chatbot Styles - Enhanced Mobile Responsiveness */
.chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    font-family: 'Inter', sans-serif;
    max-width: calc(100vw - 40px);
    pointer-events: auto;
}

.chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #000A5B, #1a237e);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 10, 91, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    position: relative;
    z-index: 1001;
    pointer-events: auto;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 10, 91, 0.4);
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 20px rgba(0, 10, 91, 0.3);
    }

    50% {
        box-shadow: 0 4px 20px rgba(0, 10, 91, 0.6);
    }

    100% {
        box-shadow: 0 4px 20px rgba(0, 10, 91, 0.3);
    }
}

.chatbot-window {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transform-origin: bottom right;
    transition: all 0.3s ease;
}

.chatbot-header {
    background: linear-gradient(135deg, #000A5B, #1a237e);
    color: white;
    padding: 20px;
    text-align: center;
    position: relative;
}

.chatbot-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.chatbot-header p {
    margin: 5px 0 0;
    font-size: 12px;
    opacity: 0.9;
}

.chatbot-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.chatbot-close:hover {
    opacity: 1;
}

.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #f9fafb;
}

.message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    word-wrap: break-word;
    line-height: 1.4;
    font-size: 14px;
}

.message.bot {
    background: #e5e7eb;
    color: #374151;
    align-self: flex-start;
    border-bottom-left-radius: 6px;
}

.message.user {
    background: linear-gradient(135deg, #000A5B, #1a237e);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 6px;
}

.message.typing {
    background: #e5e7eb;
    color: #9ca3af;
    align-self: flex-start;
    border-bottom-left-radius: 6px;
}

.typing-indicator {
    display: flex;
    gap: 4px;
    align-items: center;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typing 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {

    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.5;
    }

    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

.chatbot-input-area {
    padding: 20px;
    border-top: 1px solid #e5e7eb;
    background: white;
}

.chatbot-input-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.chatbot-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 25px;
    outline: none;
    font-size: 14px;
    transition: border-color 0.3s;
}

.chatbot-input:focus {
    border-color: #000A5B;
}

.chatbot-send {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #000A5B, #1a237e);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: transform 0.2s;
}

.chatbot-send:hover {
    transform: scale(1.1);
}

.chatbot-send:disabled {
    background: #d1d5db;
    cursor: not-allowed;
    transform: none;
}

.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.quick-action {
    padding: 8px 12px;
    background: white;
    border: 1px solid #000A5B;
    color: #000A5B;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.quick-action:hover {
    background: #000A5B;
    color: white;
}

/* Mobile Responsive */
/* Mobile Responsiveness */
@media (max-width: 768px) {
    .chatbot-container {
        right: 15px;
        bottom: 15px;
        max-width: calc(100vw - 30px);
    }

    .chatbot-window {
        width: calc(100vw - 30px);
        max-width: 350px;
        height: 450px;
        right: 0;
    }

    .chatbot-toggle {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .chatbot-container {
        right: 10px;
        bottom: 10px;
        max-width: calc(100vw - 20px);
    }

    .chatbot-window {
        width: calc(100vw - 20px);
        max-width: 320px;
        height: 400px;
        border-radius: 15px;
        right: 0;
    }

    .chatbot-toggle {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .chatbot-header {
        padding: 15px;
    }

    .chatbot-header h3 {
        font-size: 16px;
    }

    .chatbot-messages {
        padding: 15px;
        gap: 12px;
    }

    .message {
        font-size: 13px;
        padding: 10px 14px;
        max-width: 85%;
    }

    .chatbot-input-container {
        padding: 15px;
    }

    .chatbot-input {
        font-size: 14px;
        padding: 10px 15px;
    }

    .send-button {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

@media (max-width: 360px) {
    .chatbot-window {
        width: calc(100vw - 15px);
        height: 350px;
        right: 0;
    }

    .chatbot-container {
        right: 5px;
        bottom: 5px;
    }
}

/* Scrollbar Styling */
.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}