@charset "UTF-8";

/* Chat Widget Styles */
.chat-widget {
    position: fixed;
    bottom: 70px;
    right: 20px;
    width: 350px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    font-family: Arial, sans-serif;
    z-index: 100000;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 600px;
}

@media (max-width: 600px) {
    .chat-widget {
        width: 90%;
        bottom: 70px;
        right: 5%;
    }
}

.chat-header {
    background: #555;
    color: white;
    padding: 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header .minimize-button {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 0 5px;
}

.chat-messages {
    padding: 15px;
    overflow-y: auto;
    max-height: 400px;
    display: none;
}

.chat-input {
    padding: 15px;
    border-top: 1px solid #eee;
    display: none;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.chat-widget.expanded .chat-input {
    display: flex;
}

.chat-input input {
    flex: 1;
    min-width: 0;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.chat-input button {
    padding: 8px 15px;
    background: #000;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
}

.chat-input button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.message {
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    max-width: 80%;
    word-wrap: break-word;
}

.user-message {
    background: #e6e6e6;
    margin-left: auto;
}

.bot-message {
    background: #f0f0f0;
    margin-right: auto;
}

.message a {
    color: #1a73e8;
    word-break: break-all;
}

.message.error {
    background-color: #fff3f3;
    color: #d32f2f;
    border-left: 3px solid #d32f2f;
}

/* Typing indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: #999;
    border-radius: 50%;
    animation: typing-bounce 1.2s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing-bounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-6px); }
}

/* GDPR notice */
.chat-gdpr {
    display: none;
    padding: 6px 15px;
    font-size: 11px;
    color: #888;
    text-align: center;
    border-top: 1px solid #eee;
}
.chat-widget.expanded .chat-gdpr { display: block; }

/* Expanded state */
.chat-widget.expanded .chat-messages {
    display: block;
}
