/* Chatbot Styles Update */
:root {
    --chatbot-primary: #6B0504;
    --chatbot-primary-light: #e36159;
    --chatbot-bg: rgba(255, 255, 255, 0.98);
    --chatbot-header-bg: #6B0504;
    --chatbot-text-light: #ffffff;
    --chatbot-text-dark: #333333;
    --chatbot-shadow: 0 10px 40px rgba(107, 5, 4, 0.2);
    --chatbot-border: #e2e8f0;
}

.chatbot-launcher {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--chatbot-primary);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: var(--chatbot-shadow);
    z-index: 999999 !important;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chatbot-launcher:hover {
    transform: scale(1.1);
    background: var(--chatbot-primary-light);
}

.chatbot-container {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 380px;
    height: 600px;
    max-height: calc(100vh - 120px);
    background: var(--chatbot-bg);
    border-radius: 12px;
    /* box-shadow: var(--chatbot-shadow); */
    z-index: 1000000 !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    /* backdrop-filter: blur(10px); */
}

.chatbot-container.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
}

.chatbot-header {
    background: var(--chatbot-header-bg);
    padding: 15px 20px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatbot-logo {
    width: 35px;
    height: 35px;
    background: white;
    border-radius: 50%;
    padding: 3px;
    object-fit: contain;
}

.chatbot-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
}

.chatbot-status {
    font-size: 11px;
    opacity: 0.9;
    display: flex;
    align-items: center;
}

.chatbot-status::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    margin-right: 5px;
    box-shadow: 0 0 5px #4ade80;
}

.chatbot-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    opacity: 0.8;
}

.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-behavior: smooth;
}

.chatbot-message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 15px;
    font-size: 14px;
    line-height: 1.5;
    position: relative;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.chatbot-message.bot {
    background: #e2e2e2;
    color: #1e293b;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.chatbot-message.user {
    background: var(--chatbot-primary);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chatbot-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    align-self: flex-start;
    width: 100%;
}

.chatbot-option-btn {
    background: white;
    border: 1px solid var(--chatbot-primary);
    color: var(--chatbot-primary);
    padding: 8px 12px;
    border-radius: 18px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.chatbot-option-btn:hover {
    background: var(--chatbot-primary);
    color: white;
}

.chatbot-typing {
    display: flex;
    gap: 4px;
    padding: 10px 15px;
    background: #f1f5f9;
    border-radius: 15px;
    align-self: flex-start;
    margin-bottom: 12px;
}

.chatbot-typing span {
    width: 6px;
    height: 6px;
    background: #94a3b8;
    border-radius: 50%;
    animation: typing 1s infinite alternate;
}

.chatbot-typing span:nth-child(2) { animation-delay: 0.2s; }
.chatbot-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    from { opacity: 0.3; transform: scale(1); }
    to { opacity: 1; transform: scale(1.2); }
}

.chatbot-input-area {
    padding: 15px;
    background: white;
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid var(--chatbot-border);
}

.chatbot-input-area input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    color: var(--chatbot-text-dark);
}

.chatbot-input-area button {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 18px;
    transition: color 0.2s;
}

.chatbot-input-area #chatbot-send-btn {
    color: var(--chatbot-primary);
}

.chatbot-file-upload {
    display: block;
    width: 100%;
    padding: 10px;
    border: 2px dashed var(--chatbot-border);
    border-radius: 10px;
    text-align: center;
    font-size: 12px;
    color: #64748b;
    margin-top: 5px;
    cursor: pointer;
}

.chatbot-file-upload:hover {
    border-color: var(--chatbot-primary-light);
    color: var(--chatbot-primary);
}

/* File Input Container Styles */
.chatbot-file-input-container {
    width: 100%;
    animation: fadeIn 0.3s ease-out;
}

.chatbot-file-input-container > div {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0;
    padding: 15px !important;
    border-radius: 12px !important;
    margin: 10px 0 !important;
}

.chatbot-file-input-container label {
    display: block !important;
    margin-bottom: 8px !important;
    font-weight: 600 !important;
    color: var(--chatbot-text-dark);
    font-size: 13px !important;
}

.chatbot-file-input-container input[type="file"] {
    display: block !important;
    width: 100%;
    margin-bottom: 12px !important;
    padding: 8px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 13px;
    background: white;
}

.chatbot-file-submit-btn {
    background: var(--chatbot-primary) !important;
    color: white !important;
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    transition: all 0.2s;
}

.chatbot-file-submit-btn:hover {
    background: var(--chatbot-primary-light) !important;
    transform: translateY(-1px);
}

.chatbot-file-skip-btn {
    background: #94a3b8 !important;
    color: white !important;
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    margin-left: 8px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    transition: all 0.2s;
}

.chatbot-file-skip-btn:hover {
    background: #64748b !important;
    transform: translateY(-1px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .chatbot-launcher {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }

    .chatbot-container {
        bottom: 0;
        right: 0;
        left: 0;
        top: 0;
        width: 100%;
        height: 100% !important;
        max-height: none;
        border-radius: 0;
        z-index: 1000000;
    }

    .chatbot-launcher.hidden-mobile {
        display: none;
    }

    .chatbot-header {
        padding: 20px;
        padding-top: env(safe-area-inset-top, 20px);
    }
}
