/* Chatbot Widget Styles */
.sv-chatbot-container {
    position: fixed;
    bottom: 150px;
    right: 20px;
    z-index: 9999;
    font-family: 'Inter', sans-serif;
}

.sv-chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #4285F4;
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.4);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.sv-chatbot-toggle:hover {
    transform: scale(1.1);
    background: #3367d6;
}

.sv-chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 450px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.sv-chatbot-window.d-none {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    display: flex !important; /* Override bootstrap d-none for transition */
}

.sv-chatbot-header {
    background: linear-gradient(135deg, #4285F4, #3367d6);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sv-chatbot-avatar {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.sv-chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sv-msg {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.4;
    word-wrap: break-word;
}

.sv-msg-bot {
    align-self: flex-start;
    background: white;
    color: #333;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.04);
}

.sv-msg-user {
    align-self: flex-end;
    background: #4285F4;
    color: white;
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 5px rgba(66,133,244,0.2);
}

.sv-msg a:not(.btn) {
    color: #4285F4;
    font-weight: 600;
    text-decoration: underline;
}

.sv-msg a.btn {
    color: white !important;
    text-decoration: none !important;
    border: none;
}

.sv-msg-user a {
    color: #fff;
}

.sv-chatbot-input-area {
    padding: 15px;
    background: white;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

.sv-chatbot-input-area input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 10px 15px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s;
}

.sv-chatbot-input-area input:focus {
    border-color: #4285F4;
}

.sv-chatbot-input-area button {
    background: #4285F4;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
}

.sv-chatbot-input-area button:hover {
    background: #3367d6;
}

/* Scrollbar for chat */
.sv-chatbot-messages::-webkit-scrollbar {
    width: 6px;
}
.sv-chatbot-messages::-webkit-scrollbar-track {
    background: transparent;
}
.sv-chatbot-messages::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 10px;
}

/* Mobile responsiveness */
@media (max-width: 576px) {
    .sv-chatbot-window {
        width: calc(100vw - 40px);
        right: -10px;
        bottom: 70px;
        height: 400px;
    }
    .sv-chatbot-container {
        bottom: 20px;
        right: 20px;
    }
}
