/* LauralAI Chat Widget Styles */

.lauralai-chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999999;
    font-family: 'Inter', sans-serif;
}

.lauralai-chat-button {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background-color: #0A3161;
    color: #D4AF37;
    border: 2px solid #D4AF37;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    font-family: 'Oswald', sans-serif;
    line-height: 1.1;
}

.lauralai-chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.lauralai-btn-top {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
}

.lauralai-btn-bottom {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.lauralai-chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid #eaeaea;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: bottom right;
}

.lauralai-chat-window.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.lauralai-chat-header {
    background-color: #0A3161;
    color: #ffffff;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #D4AF37;
}

.lauralai-header-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lauralai-header-title span {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.lauralai-online-dot {
    width: 8px;
    height: 8px;
    background-color: #4CAF50;
    border-radius: 50%;
    display: inline-block;
}

.lauralai-close-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
}

.lauralai-close-btn:hover {
    color: #D4AF37;
}

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

.lauralai-message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.lauralai-message.assistant {
    background-color: #ffffff;
    color: #333333;
    align-self: flex-start;
    border: 1px solid #eaeaea;
    border-bottom-left-radius: 2px;
}

.lauralai-message.user {
    background-color: #0A3161;
    color: #ffffff;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.lauralai-typing-indicator {
    display: none;
    align-self: flex-start;
    background-color: #ffffff;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #eaeaea;
    border-bottom-left-radius: 2px;
}

.lauralai-typing-indicator span {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #999;
    border-radius: 50%;
    margin: 0 2px;
    animation: lauralai-bounce 1.4s infinite ease-in-out both;
}

.lauralai-typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.lauralai-typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes lauralai-bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

.lauralai-chat-input-area {
    padding: 16px;
    background-color: #ffffff;
    border-top: 1px solid #eaeaea;
    display: flex;
    gap: 10px;
}

.lauralai-chat-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ccc;
    border-radius: 20px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease;
}

.lauralai-chat-input:focus {
    border-color: #0A3161;
}

.lauralai-chat-send {
    background-color: #0A3161;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.lauralai-chat-send:hover {
    background-color: #071E3D;
}

.lauralai-chat-send svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    margin-left: 2px;
}

@media (max-width: 480px) {
    .lauralai-chat-window {
        position: fixed;
        bottom: 0;
        right: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
        z-index: 999999;
    }
    .lauralai-chat-widget {
        bottom: 20px;
        right: 20px;
    }
}
