/* Chatbot Widget Styles */
.chatbot-toggler {
    position: fixed;
    bottom: 30px;
    right: 35px;
    outline: none;
    border: none;
    height: 50px;
    width: 50px;
    display: flex;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--clr-primary);
    transition: all 0.2s ease;
    z-index: 9999;
    box-shadow: 0 0 20px rgba(255, 86, 0, 0.4);
}

.chatbot-toggler:hover {
    transform: scale(1.1);
}

.chatbot-toggler span {
    color: #fff;
    position: absolute;
    font-size: 1.5rem;
}

.chatbot {
    position: fixed;
    right: 35px;
    bottom: 90px;
    width: 350px;
    background: #1e293b;
    border-radius: 15px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.5);
    transform-origin: bottom right;
    box-shadow: 0 0 128px 0 rgba(0, 0, 0, 0.1),
        0 32px 64px -48px rgba(0, 0, 0, 0.5);
    transition: all 0.1s ease;
    z-index: 9998;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.show-chatbot .chatbot {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.chatbot header {
    padding: 16px 0;
    position: relative;
    text-align: center;
    color: #fff;
    background: var(--clr-primary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.chatbot header h2 {
    font-size: 1.2rem;
    font-family: var(--font-heading);
}

.chatbot header span {
    position: absolute;
    right: 15px;
    top: 50%;
    display: none;
    cursor: pointer;
    transform: translateY(-50%);
}

.chatbot .chatbox {
    overflow-y: auto;
    height: 400px;
    padding: 30px 20px 100px;
    background: #0f172a;
}

.chatbot .chat-input {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: #1e293b;
    padding: 3px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.chatbox .chat {
    display: flex;
    list-style: none;
}

.chatbox .outgoing {
    margin: 20px 0;
    justify-content: flex-end;
}

.chatbox .incoming span {
    width: 32px;
    height: 32px;
    color: #fff;
    cursor: default;
    text-align: center;
    line-height: 32px;
    align-self: flex-end;
    background: var(--clr-primary);
    border-radius: 4px;
    margin: 0 10px 7px 0;
}

.chatbox .chat p {
    white-space: pre-wrap;
    padding: 12px 16px;
    border-radius: 10px 10px 0 10px;
    max-width: 75%;
    color: #fff;
    font-size: 0.95rem;
    background: var(--clr-primary);
}

.chatbox .incoming p {
    border-radius: 10px 10px 10px 0;
    color: #e2e8f0;
    background: #334155;
}

.chat-input textarea {
    height: 55px;
    width: 100%;
    border: none;
    outline: none;
    resize: none;
    max-height: 180px;
    padding: 15px 15px 15px 0;
    font-size: 0.95rem;
    background: transparent;
    color: #fff;
}

.chat-img {
    width: 100%;
    margin-top: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Quick Actions */
.chat-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.chat-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: 0.2s;
}

.chat-btn:hover {
    background: var(--clr-primary);
    border-color: var(--clr-primary);
}

@media (max-width: 490px) {
    .chatbot {
        right: 0;
        bottom: 0;
        height: 100%;
        border-radius: 0;
        width: 100%;
    }

    .chatbot .chatbox {
        height: 90%;
        padding: 25px 15px 100px;
    }

    .chatbot .chat-input {
        padding: 5px 15px;
    }
}

/* Expanded Chatbot Button Style */
/* Expanded Chatbot Button Style - Premium Redesign */
/* Standard Circular Button Style */
.chatbot-toggler {
    position: fixed;
    bottom: 30px;
    right: 35px;
    outline: none;
    border: none;
    height: 50px;
    width: 50px;
    display: flex;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--clr-primary);
    transition: all 0.2s ease;
    z-index: 9999;
    box-shadow: 0 0 20px rgba(255, 86, 0, 0.4);
}

.chatbot-toggler:hover {
    transform: scale(1.05) translateY(-3px);
    /* Lift effect */
    box-shadow: 0 15px 35px rgba(255, 86, 0, 0.6);
}

.chatbot-toggler .label {
    display: none;
}

.chatbot-toggler span.material-symbols-outlined {
    position: static;
    font-size: 1.8rem;
    /* Larger Icon */
}

/* Hide specific icons based on state */
.chatbot-toggler .material-symbols-outlined:last-child {
    display: none;
    /* Hide close icon initially */
}

body.show-chatbot .chatbot-toggler {
    width: 50px;
    padding: 0;
    border-radius: 50%;
    transform: rotate(90deg);
}

body.show-chatbot .chatbot-toggler .label {
    display: none;
}

body.show-chatbot .chatbot-toggler .material-symbols-outlined:first-child {
    display: none;
}

body.show-chatbot .chatbot-toggler .material-symbols-outlined:last-child {
    display: block;
}