/* Datto AI Chat Widget Styles */

#datto-ai-chat-widget {
    position: fixed;
    bottom: 0px;
    right: 0px;
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 99999;
    display: flex;
    flex-direction: column;
}

#datto-ai-chat-widget.datto-ai-chat-minimized {
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    border-radius: 50%;
    cursor: pointer;
}

#datto-ai-chat-header {
    padding: 15px 20px;
    background: #1a237e;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#datto-ai-chat-widget.datto-ai-chat-minimized #datto-ai-chat-header,
#datto-ai-chat-widget.datto-ai-chat-minimized #datto-ai-chat-body {
    display: none;
}

#datto-ai-chat-icon {
    display: none;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
}

#datto-ai-chat-widget.datto-ai-chat-minimized #datto-ai-chat-icon {
    display: flex;
}

#datto-ai-chat-icon .dashicons {
    font-size: 30px;
    width: 30px;
    height: 30px;
    color: #fff;
}

#datto-ai-chat-body {
    height: 450px;
    display: flex;
    flex-direction: column;
}

#datto-ai-chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.datto-ai-message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 14px;
    line-height: 1.4;
    overflow-wrap: break-word;
    white-space: pre-wrap;
    word-break: break-all;
}

.datto-ai-message-user {
    align-self: flex-end;
    background: #1a237e;
    color: #fff;
    border-bottom-right-radius: 2px;
}

.datto-ai-message-ai {
    align-self: flex-start;
    background: #e9ecef;
    color: #333;
    border-bottom-left-radius: 2px;
}

#datto-ai-chat-input-area {
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

#datto-ai-chat-input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 8px 15px;
    outline: none;
    transition: border-color 0.2s;
    resize: none;
    min-height: 38px;
    max-height: 120px;
    overflow-y: hidden;
    line-height: 1.4;
    font-family: inherit;
	color: #3d3d3d;
}

#datto-ai-chat-input:focus {
    border-color: #1a237e;
}

#datto-ai-chat-send {
    background: #1a237e;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 8px 20px;
    cursor: pointer;
    transition: opacity 0.2s;
}

#datto-ai-chat-send:hover {
    opacity: 0.9;
}

#datto-ai-chat-toggle {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

/* Typing Indicator - Bouncing Dots */
#datto-typing-indicator {
    display: none;
    padding: 10px 15px;
    background: #e9ecef;
    border-radius: 15px;
    border-bottom-left-radius: 2px;
    width: fit-content;
    margin-bottom: 2px;
    align-self: flex-start;
}

.datto-typing-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin: 0 3px;
    background: #888;
    border-radius: 50%;
    animation: datto-bounce 1.4s infinite ease-in-out both;
}

.datto-typing-dot:nth-child(1) { animation-delay: -0.32s; }
.datto-typing-dot:nth-child(2) { animation-delay: -0.16s; }

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