/* Chatbot specific styles, ported from ChatAssistant.css */
/* ChatWidget.css */
.chat-fixed-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-family: 'Inter', sans-serif;
}

.chat-content-wrapper {
    position: relative;
}

/* Chat Window */
.chat-window {
    width: 350px;
    height: 500px;
    background-color: #0f172a;
    /* Slate 900 */
    border: 1px solid #334155;
    /* Slate 700 */
    border-radius: 16px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    display: flex;
    /* Hidden by default toggled via JS */
    flex-direction: column;
    overflow: hidden;
    margin-bottom: 16px;
    transition: all 0.3s ease-in-out;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    position: absolute;
    bottom: 0;
    right: 0;
}

.chat-window.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    position: relative;
}

.chat-header {
    background-color: #1e293b;
    /* Slate 800 */
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #334155;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.chat-title {
    color: white;
    font-weight: bold;
    font-size: 14px;
    margin: 0;
}

.chat-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #94a3b8;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
}

.chat-close-btn {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 18px;
}

.chat-close-btn:hover {
    color: white;
}

/* Messages Area */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background-color: #0f172a;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message-row {
    display: flex;
    width: 100%;
}

.message-row.user {
    justify-content: flex-end;
}

.message-row.bot {
    justify-content: flex-start;
}

.message-bubble {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.4;
}

.message-bubble.user {
    background-color: #2563eb;
    /* Blue 600 */
    color: white;
    border-bottom-right-radius: 0;
}

.message-bubble.bot {
    background-color: #1e293b;
    /* Slate 800 */
    color: #e2e8f0;
    /* Slate 200 */
    border: 1px solid #334155;
    border-bottom-left-radius: 0;
}

/* Input Area */
.chat-input-area {
    padding: 12px;
    background-color: #1e293b;
    border-top: 1px solid #334155;
    display: flex;
    gap: 8px;
}

.chat-input {
    flex: 1;
    background-color: #0f172a;
    color: white;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 14px;
    outline: none;
}

.chat-input:focus {
    border-color: #3b82f6;
}

.chat-send-btn {
    background-color: #2563eb;
    color: white;
    width: 40px;
    border-radius: 12px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.chat-send-btn:hover {
    background-color: #3b82f6;
}

.chat-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Floating Button */
.chat-float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #1e293b;
    border: 2px solid #3b82f6;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.chat-float-btn:hover {
    transform: scale(1.05);
}

.chat-btn-icon {
    font-size: 30px;
}