/* ==========================================================================
   SOLAR TALKING AGENT - CHAT WIDGET STYLESHEET
   ========================================================================== */

/* Trigger Bubble Styling */
#solar-chat-bubble {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: #e67e22; /* Solar Orange */
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999999;
    transition: transform 0.2s ease;
}
#solar-chat-bubble:hover {
    transform: scale(1.08);
}
#chat-notification-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #2ecc71;
    border-radius: 50%;
    border: 2px solid white;
}

/* Chat Window Styling */
#solar-chat-window {
    position: fixed;
    bottom: 100px;
    right: 25px;
    width: 350px;
    height: 480px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.25);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Header */
#solar-chat-header {
    background-color: #2c3e50; /* Corporate Slate */
    color: white;
    padding: 12px 15px;
    position: relative;
}
#solar-chat-reset {
    position: absolute;
    right: 15px;
    top: 15px;
    background: transparent;
    border: 1px solid #ffffff50;
    color: white;
    padding: 3px 8px;
    font-size: 11px;
    border-radius: 4px;
    cursor: pointer;
}
#solar-chat-reset:hover {
    background: rgba(255,255,255,0.1);
}

/* Chat Body */
#solar-chat-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Speech Bubbles */
.message {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13.5px;
    line-height: 1.4;
}
.message.assistant {
    background-color: #e2e8f0;
    color: #2d3748;
    align-self: flex-start;
    border-bottom-left-radius: 1px;
}
.message.user {
    background-color: #e67e22;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 1px;
}

/* Footer / Input area */
#solar-chat-footer {
    display: flex;
    border-top: 1px solid #e2e8f0;
    padding: 10px;
    background: #fff;
}
#solar-chat-input {
    flex: 1;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 13px;
    outline: none;
}
#solar-chat-send {
    background: #e67e22;
    color: white;
    border: none;
    padding: 8px 15px;
    margin-left: 8px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 13px;
}
#solar-chat-send:hover {
    background: #d35400;
}

/* Mobile Responsive Adjustments */
@media (max-width: 480px) {
    #solar-chat-window {
        width: calc(100% - 30px);
        right: 15px;
        bottom: 90px;
        height: 70%;
    }
    #solar-chat-bubble {
        bottom: 15px;
        right: 15px;
    }
}