/* Chatbox Widget Styles */
.chatbox_toggle {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    background: #b90606;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.chatbox_toggle:hover {
    background: #a00505;
    transform: scale(1.1);
}

.chatbox_widget {
    position: fixed;
    bottom: 90px;
    left: 20px;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 9999;
    display: none;
    flex-direction: column;
}

.chatbox_header {
    background: #b90606;
    color: white;
    padding: 15px;
    border-radius: 10px 10px 0 0;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbox_close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

.chatbox_messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background: #f8f9fa;
}

.chatbox_message {
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 15px;
    max-width: 80%;
    word-wrap: break-word;
    font-size: 14px;
}

.chatbox_message.user {
    background: #007bff;
    color: white;
    margin-left: auto;
    text-align: right;
}

.chatbox_message.guest {
    background: #e9ecef;
    color: #333;
}

.chatbox_message_info {
    font-size: 11px;
    opacity: 0.7;
    margin-bottom: 3px;
}

.chatbox_input {
    padding: 15px;
    background: white;
    border-top: 1px solid #dee2e6;
    border-radius: 0 0 10px 10px;
}

.chatbox_input_group {
    display: flex;
    gap: 8px;
}

.chatbox_input_group input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    font-size: 14px;
}

.chatbox_input_group button {
    padding: 8px 15px;
    background: #b90606;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
}

.chatbox_input_group button:hover {
    background: #a00505;
}

.chatbox_online {
    background: #f8f9fa;
    padding: 8px 15px;
    border-bottom: 1px solid #dee2e6;
    font-size: 12px;
    color: #666;
}

.chatbox_online span {
    color: #28a745;
    font-weight: bold;
}

/* Dark mode support */
.dark .chatbox_widget {
    background: #2c3e50;
    color: white;
}

.dark .chatbox_messages {
    background: #34495e;
}

.dark .chatbox_message.guest {
    background: #4a5568;
    color: white;
}

.dark .chatbox_input {
    background: #2c3e50;
    border-top-color: #4a5568;
}

.dark .chatbox_input_group input {
    background: #4a5568;
    border-color: #4a5568;
    color: white;
}

.dark .chatbox_online {
    background: #34495e;
    border-bottom-color: #4a5568;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .chatbox_widget {
        width: calc(100vw - 40px);
        height: 400px;
        left: 20px;
        right: 20px;
    }
    
    .chatbox_toggle {
        width: 50px;
        height: 50px;
        font-size: 20px;
        left: 15px;
    }
    
    .chatbox_message {
        max-width: 85%;
    }
}

@media (max-width: 480px) {
    .chatbox_widget {
        width: calc(100vw - 20px);
        height: 350px;
        left: 10px;
        right: 10px;
    }
    
    .chatbox_toggle {
        width: 45px;
        height: 45px;
        font-size: 18px;
        bottom: 15px;
        left: 15px;
    }
}
