.floating-assistant {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: transparent;
    width: 100px;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    animation: wave 2s infinite;
    padding: 10px;
}

.floating-assistant::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    cursor: pointer;
}

.floating-assistant img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
    pointer-events: none;
}

.floating-assistant:hover {
    animation: none;
    transform: scale(1.1);
}

.assistant-message {
    position: absolute;
    top: -80px;
    right: -20px;
    background-color: #ffffff;
    padding: 12px 20px;
    border-radius: 20px;
    font-size: 14px;
    line-height: 1.4;
    color: #0066cc;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform-origin: center;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    text-align: center;
}

.assistant-message.show {
    animation: messageSlideIn 0.3s ease forwards;
}

.assistant-message.hide {
    animation: messagePop 0.4s ease-in forwards;
}

.assistant-message::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 30px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #ffffff;
}

@keyframes messageSlideIn {
    0% {
        opacity: 0;
        visibility: visible;
        transform: translateX(-30px) scale(0.8);
    }
    100% {
        opacity: 1;
        visibility: visible;
        transform: translateX(0) scale(1);
    }
}

@keyframes messagePop {
    0% {
        opacity: 1;
        visibility: visible;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
    100% {
        opacity: 0;
        visibility: hidden;
        transform: scale(0);
    }
}

@keyframes wave {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-3px) rotate(-3deg);
    }
    50% {
        transform: translateY(0px) rotate(0deg);
    }
    75% {
        transform: translateY(-3px) rotate(3deg);
    }
    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

.assistant-name {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffffff;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: bold;
    color: #0066cc;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    white-space: nowrap;
}

.assistant-container {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 320px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: none;
    z-index: 999;
    overflow: hidden;
}

.assistant-container.active {
    display: block;
    animation: slideIn 0.3s ease;
}

.assistant-header {
    background-color: #0066cc;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.assistant-header h3 {
    margin: 0;
    font-size: 16px;
    display: flex;
    align-items: center;
}

.assistant-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 20px;
    padding: 0;
}

.assistant-content {
    display: flex;
    flex-direction: column;
    height: 400px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 200px;
    background: #fff;
    position: relative;
    z-index: 1;
}

.message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 15px;
    margin-bottom: 5px;
    word-wrap: break-word;
}

.message.assistant {
    background-color: #f0f2f5;
    align-self: flex-start;
    border-bottom-left-radius: 5px;
}

.message.user {
    background-color: #0066cc;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}

.message.typing {
    background-color: #f0f2f5;
    align-self: flex-start;
    padding: 10px 20px;
}

.message.typing span {
    display: inline-block;
    animation: typingDot 1.4s infinite;
    margin: 0 2px;
}

.message.typing span:nth-child(2) {
    animation-delay: 0.2s;
}

.message.typing span:nth-child(3) {
    animation-delay: 0.4s;
}

.chat-input {
    display: flex;
    padding: 15px;
    gap: 10px;
    border-top: 1px solid #eee;
    background-color: white;
    position: relative;
    z-index: 2;
}

.chat-input input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    font-size: 14px;
}

.chat-input input:focus {
    border-color: #0066cc;
}

.chat-input button {
    background-color: #0066cc;
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.chat-input button:hover {
    background-color: #0052a3;
}

.quick-links-header {
    padding: 10px 15px 5px;
    font-weight: 600;
    color: #666;
    font-size: 12px;
    border-top: 1px solid #eee;
    margin-top: 5px;
}

.quick-links {
    list-style: none;
    padding: 0 10px 10px;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.quick-links li {
    padding: 6px 6px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 11px;
    white-space: nowrap;
    flex: 1 1 calc(50% - 5px);
    min-width: 120px;
    display: flex;
    z-index: 99999;
    align-items: center;
}

.quick-links li:hover {
    background-color: #f5f5f5;
}

.quick-links li i {
    margin-right: 5px;
    color: #0066cc;
    font-size: 11px;
    flex-shrink: 0;
}

@keyframes typingDot {
    0%, 20% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
    80%, 100% {
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
