/* Container for the entire mount point */
#omed-chat-mount {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999999;
}

/* RECTIFIED: Removed fixed height, background, and overflow. 
   This allows the JS flex-column to stack the icon and text naturally.
*/
#omed-chat-bubble {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    width: 100px; /* Enough width for the name tag */
}

#omed-chat-bubble:hover {
    transform: scale(1.05);
}

/* Chat Window - Updated to match 400x600 real estate */
#omed-chat-window {
    display: none; /* Controlled by JS fadeIn/Out */
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 400px;
    height: 600px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.2);
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #ccc;
    z-index: 10000;
    font-family: sans-serif;
}

/* Header Styling */
#omed-chat-header {
    background: #007cba;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    flex-shrink: 0;
}

/* Mood Selector Bar */
#omed-mood-selector {
    display: flex;
    background: #333;
    padding: 8px;
    gap: 6px;
    flex-shrink: 0;
}

/* Message Area - Scrollable */
#omed-chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #fdfdfd;
    color: #222;
    font-size: 14px;
    line-height: 1.5;
}

/* Footer / Input Area */
#omed-chat-footer {
    padding: 15px;
    border-top: 1px solid #ddd;
    display: flex;
    gap: 10px;
    background: #fff;
    flex-shrink: 0;
}

#omed-chat-input {
    flex: 1;
    padding: 12px;
    border: 1px solid #bbb;
    border-radius: 4px;
    font-size: 14px;
}

/* Utility classes for messages */
.omed-msg-ai { 
    background: #e1f0ff; 
    padding: 12px; 
    border-radius: 10px; 
    margin-bottom: 12px; 
    max-width: 90%; 
    border: 1px solid #bce0ff; 
    color: #222;
}

.omed-msg-user { 
    background: #007cba; 
    color: #fff; 
    padding: 12px; 
    border-radius: 10px; 
    margin-bottom: 12px; 
    max-width: 85%; 
    margin-left: auto;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}