/* Simmy Chatbot Widget Styles */

.simmy-chatbot-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 300px;
}

.simmy-chatbot-flag {
    background: #fff;
    border: 2px solid #28a745;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-align: center;
}

.simmy-flag-image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 10px;
    display: block;
}

.simmy-flag-caption {
    font-size: 13px;
    line-height: 1.4;
    color: #333;
}

.simmy-flag-caption strong {
    display: block;
    color: #28a745;
    font-size: 14px;
    margin-bottom: 5px;
}

.simmy-flag-caption p {
    margin: 0;
    font-size: 12px;
    color: #666;
}

.simmy-chat-toggle {
    background: #28a745;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
}

.simmy-chat-toggle:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
}

.simmy-icon {
    font-size: 18px;
}

.simmy-label {
    font-size: 14px;
}

/* Chat Window */
.simmy-chat-window {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 380px;
    max-width: calc(100vw - 40px);
    height: 500px;
    max-height: calc(100vh - 140px);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    z-index: 10000;
    overflow: hidden;
}

.simmy-chat-header {
    background: #28a745;
    color: #fff;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.simmy-chat-header.techwiz-header {
    background: #007bff;
}

.simmy-chat-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.simmy-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #fff;
}

.simmy-chat-title strong {
    display: block;
    font-size: 16px;
}

.simmy-status {
    font-size: 12px;
    opacity: 0.9;
}

.simmy-chat-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    line-height: 1;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.simmy-chat-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.simmy-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background: #f8f9fa;
}

.simmy-message {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
}

.simmy-message.user {
    flex-direction: row-reverse;
}

.simmy-message-bubble {
    max-width: 75%;
    padding: 10px 15px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
}

.simmy-message.simmy .simmy-message-bubble {
    background: #e9ecef;
    color: #333;
}

.simmy-message.user .simmy-message-bubble {
    background: #28a745;
    color: #fff;
}

.simmy-message.techwiz .simmy-message-bubble {
    background: #cfe2ff;
    color: #004085;
    border-left: 3px solid #007bff;
}

.simmy-chat-input-area {
    padding: 15px;
    background: #fff;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 10px;
}

.simmy-chat-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
    outline: none;
}

.simmy-chat-input:focus {
    border-color: #28a745;
}

.simmy-chat-send {
    background: #28a745;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}

.simmy-chat-send:hover {
    background: #218838;
}

/* Responsive */
@media (max-width: 768px) {
    .simmy-chatbot-widget {
        bottom: 10px;
        right: 10px;
        max-width: calc(100vw - 20px);
    }
    
    .simmy-chat-window {
        bottom: 80px;
        right: 10px;
        width: calc(100vw - 20px);
        height: calc(100vh - 100px);
    }
}

