/* Chatbot Styles */
.chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-family: 'Montserrat', sans-serif;
    z-index: 2147483631;
}

.chatbot-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 2147483630;
    pointer-events: none;
}

.chatbot-backdrop.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

html.chatbot-no-scroll,
body.chatbot-no-scroll {
    overflow: hidden;
    height: 100%;
    touch-action: none;
    overscroll-behavior: none;
}

.chatbot-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff3ffd, #7bc9ff);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(255, 63, 253, 0.4);
    transition: all 0.3s ease;
    font-size: 28px;
}

.chatbot-button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(255, 63, 253, 0.6);
}

.chatbot-button.active {
    background: linear-gradient(135deg, #7bc9ff, #ff3ffd);
}

.chatbot-window {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 380px;
    max-width: 92vw;
    height: 600px;
    background: linear-gradient(-45deg, #001a33, #002244);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 63, 253, 0.2);
    backdrop-filter: blur(10px);
}

.chatbot-window.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chatbot-header {
    background: linear-gradient(90deg, #ff3ffd, #7bc9ff);
    padding: 20px;
    border-radius: 16px 16px 0 0;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.chatbot-status {
    font-size: 12px;
    opacity: 0.9;
    margin-top: 4px;
}

.chatbot-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.chatbot-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 63, 253, 0.3);
    border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 63, 253, 0.5);
}

.message {
    display: flex;
    margin-bottom: 8px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.user {
    justify-content: flex-end;
}

.message.bot {
    justify-content: flex-start;
}

.message-content {
    max-width: 280px;
    padding: 12px 16px;
    border-radius: 12px;
    word-wrap: break-word;
    line-height: 1.4;
    font-size: 14px;
}

.message.user .message-content {
    background: linear-gradient(135deg, #ff3ffd, #7bc9ff);
    color: white;
    border-radius: 12px 4px 12px 12px;
}

.message.bot .message-content {
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    border: 1px solid rgba(255, 63, 253, 0.2);
    border-radius: 4px 12px 12px 12px;
}

.message.bot .message-content a {
    color: #7bc9ff;
    text-decoration: none;
    font-weight: 600;
}

.message.bot .message-content a:hover {
    text-decoration: underline;
}

.message-time {
    font-size: 11px;
    opacity: 0.6;
    margin-top: 4px;
    text-align: center;
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px 4px 12px 12px;
    border: 1px solid rgba(255, 63, 253, 0.2);
    width: fit-content;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 63, 253, 0.6);
    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% {
        opacity: 0.3;
        transform: translateY(0);
    }
    30% {
        opacity: 1;
        transform: translateY(-8px);
    }
}

.chatbot-input-area {
    padding: 16px;
    border-top: 1px solid rgba(255, 63, 253, 0.2);
    display: flex;
    gap: 8px;
}

.chatbot-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid rgba(255, 63, 253, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    transition: all 0.2s ease;
}

.chatbot-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.chatbot-input:focus {
    outline: none;
    border-color: rgba(255, 63, 253, 0.6);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 10px rgba(255, 63, 253, 0.2);
}

.chatbot-send {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #ff3ffd, #7bc9ff);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s ease;
    font-weight: 700;
}

.chatbot-send:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 63, 253, 0.4);
}

.chatbot-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.chatbot-send.loading {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.chatbot-error {
    background: rgba(255, 68, 68, 0.2);
    border: 1px solid rgba(255, 68, 68, 0.5);
    color: #ff8888;
    padding: 12px;
    border-radius: 8px;
    font-size: 12px;
    margin: 8px 0;
}

.chatbot-info {
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    padding: 8px;
    border-top: 1px solid rgba(255, 63, 253, 0.1);
}

@media (max-width: 600px) {
    .chatbot-backdrop {
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }

    .chatbot-window {
        position: fixed;
        width: 92vw;
        left: 4vw;
        right: 4vw;
        height: 70vh;
        max-height: 600px;
        bottom: 80px;
        border-radius: 16px 16px 0 0;
    }

    .message-content {
        max-width: 85vw;
    }

    .chatbot-container {
        bottom: 10px;
        right: 10px;
    }

    .chatbot-button {
