/* Chat widget styling */
.structofy-chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: Arial, sans-serif;
}

/* The round chat button */
.structofy-chat-bubble {
    width: 60px;
    height: 60px;
    background: #2c2c2c;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.structofy-chat-bubble:hover {
    background: #000000;
    transform: scale(1.1);
}

/* The chat box that pops up */
.structofy-chat-box {
    display: none;
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    flex-direction: column;
    overflow: hidden;
}

.structofy-chat-box.active {
    display: flex;
}

/* Chat header */
.structofy-chat-header {
    background: #2c2c2c;
    color: white;
    padding: 15px;
    border-radius: 10px 10px 0 0;
}

.structofy-chat-header strong {
    font-size: 16px;
}

.structofy-chat-subtitle {
    font-size: 12px;
    opacity: 0.9;
    margin-top: 3px;
}

/* Messages area */
.structofy-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background: #f5f5f5;
}

.structofy-message {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
}

.structofy-user-message {
    background: #e0e0e0;
    margin-left: 30px;
    text-align: right;
}

.structofy-ai-message {
    background: white;
    margin-right: 30px;
    border: 1px solid #e0e0e0;
}

.structofy-loading {
    color: #666;
    font-style: italic;
}

/* Input area */
.structofy-chat-input-area {
    padding: 15px;
    border-top: 1px solid #ddd;
    background: white;
    border-radius: 0 0 10px 10px;
}

.structofy-chat-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
}

.structofy-chat-input:focus {
    outline: none;
    border-color: #2c2c2c;
}

/* Mobile responsive */
@media (max-width: 480px) {
    .structofy-chat-box {
        width: calc(100vw - 40px);
        height: 70vh;
        bottom: 80px;
        right: 20px;
    }
}
