/* Personal Stylist Chatbot Stylesheet */
#ss-chatbot-trigger {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background-color: #1a1a1a;
    border-radius: 50%;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #c5a880;
}
#ss-chatbot-trigger:hover {
    transform: scale(1.08);
    background-color: #c5a880;
}
#ss-chatbot-trigger i {
    color: #fff;
    font-size: 24px;
}
#ss-chatbot-trigger .badge-notification {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: #e53e3e;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    animation: pulseBadge 2s infinite;
}
@keyframes pulseBadge {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}
#ss-chatbot-trigger .chatbot-tooltip {
    position: absolute;
    bottom: 70px;
    right: 0;
    background-color: #fff;
    color: #1a1a1a;
    font-size: 11px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    white-space: nowrap;
    border: 1px solid #f1ece6;
    animation: bounceTooltip 3s infinite;
    display: flex;
    align-items: center;
    gap: 4px;
}
#ss-chatbot-trigger .chatbot-tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 22px;
    border-width: 6px 6px 0;
    border-style: solid;
    border-color: #fff transparent;
    display: block;
    width: 0;
}
@keyframes bounceTooltip {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}
#ss-chatbot-trigger .close-tooltip {
    font-size: 10px;
    color: #999;
    cursor: pointer;
    margin-left: 4px;
}
#ss-chatbot-trigger .close-tooltip:hover {
    color: #333;
}

/* Chat window container */
#ss-chatbot-window {
    position: fixed;
    bottom: 96px;
    right: 24px;
    width: 360px;
    height: 520px;
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 10000;
    border: 1px solid #c5a880;
    transform: scale(0.9);
    opacity: 0;
    pointer-events: none;
    transform-origin: bottom right;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
#ss-chatbot-window.active {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
}

/* Header */
.ss-chatbot-header {
    background-color: #1a1a1a;
    color: #fff;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #c5a880;
}
.ss-chatbot-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.ss-chatbot-header-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #c5a880;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #fff;
}
.ss-chatbot-header-avatar i {
    color: #1a1a1a;
    font-size: 18px;
}
.ss-chatbot-header-text h4 {
    margin: 0;
    font-family: 'Cinzel', serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
}
.ss-chatbot-header-status {
    font-size: 10px;
    color: #48bb78;
    display: flex;
    align-items: center;
    gap: 4px;
}
.ss-chatbot-header-status::before {
    content: '';
    width: 6px;
    height: 6px;
    background-color: #48bb78;
    border-radius: 50%;
    display: inline-block;
}
.ss-chatbot-header-close {
    cursor: pointer;
    font-size: 18px;
    color: #c5a880;
    transition: color 0.3s;
}
.ss-chatbot-header-close:hover {
    color: #fff;
}

/* Chat Messages */
.ss-chatbot-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background-color: #fdfdfd;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.ss-chatbot-msg {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 12.5px;
    line-height: 1.5;
    word-wrap: break-word;
}
.ss-chatbot-msg.bot {
    background-color: #f1ece6;
    color: #333;
    align-self: flex-start;
    border-top-left-radius: 2px;
}
.ss-chatbot-msg.user {
    background-color: #1a1a1a;
    color: #fff;
    align-self: flex-end;
    border-top-right-radius: 2px;
}

/* Options */
.ss-chatbot-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}
.ss-chatbot-opt-btn {
    background-color: #fff;
    border: 1px solid #c5a880;
    color: #1a1a1a;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11.5px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Montserrat', sans-serif;
}
.ss-chatbot-opt-btn:hover {
    background-color: #c5a880;
    color: #fff;
}

/* Input Box */
.ss-chatbot-input-container {
    padding: 12px 16px;
    border-top: 1px solid #f1ece6;
    background-color: #fff;
    display: flex;
    gap: 8px;
}
.ss-chatbot-input {
    flex: 1;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 12.5px;
    outline: none;
    transition: border-color 0.2s;
}
.ss-chatbot-input:focus {
    border-color: #c5a880;
}
.ss-chatbot-send-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #1a1a1a;
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
}
.ss-chatbot-send-btn:hover {
    background-color: #c5a880;
}

/* Typing indicator */
.ss-chatbot-typing {
    display: flex;
    gap: 4px;
    align-items: center;
    align-self: flex-start;
    background-color: #f1ece6;
    padding: 10px 14px;
    border-radius: 12px;
    border-top-left-radius: 2px;
}
.ss-chatbot-typing span {
    width: 6px;
    height: 6px;
    background-color: #718096;
    border-radius: 50%;
    animation: typing 1s infinite alternate;
}
.ss-chatbot-typing span:nth-child(2) { animation-delay: 0.2s; }
.ss-chatbot-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing {
    from { opacity: 0.3; transform: translateY(0); }
    to { opacity: 1; transform: translateY(-4px); }
}

/* Mobile responsive */
@media (max-width: 480px) {
    #ss-chatbot-window {
        width: calc(100% - 32px);
        height: calc(100% - 96px);
        bottom: 80px;
        right: 16px;
    }
}
