/**
 * HuddleChat Elementor Widget Styles
 */

/* Widget Container */
.huddle-chat-elementor-widget {
    width: 100%;
    margin: 0 auto;
}

.huddle-chat-widget-title {
    margin: 0 0 20px 0;
    font-size: 24px;
    font-weight: 600;
    color: #075e54;
    text-align: center;
}

/* Login-Required Styles */
.huddle-chat-login-required {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 40px 30px;
    text-align: center;
    margin: 20px 0;
}

.huddle-chat-login-required h4 {
    color: #075e54;
    margin: 0 0 15px 0;
    font-size: 20px;
}

.huddle-chat-login-required p {
    color: #666;
    margin: 0 0 20px 0;
    font-size: 16px;
}

.huddle-chat-login-btn {
    display: inline-block;
    background: #25d366;
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease;
}

.huddle-chat-login-btn:hover {
    background: #128c7e;
    color: white;
    text-decoration: none;
}

/* Error Display */
.huddle-chat-error {
    background: #fff3cd;
    border: 2px solid #ffeaa7;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    margin: 20px 0;
}

.huddle-chat-error h4 {
    color: #856404;
    margin: 0 0 15px 0;
    font-size: 18px;
}

.huddle-chat-error p {
    color: #856404;
    margin: 0;
    font-size: 14px;
}

/* Placeholder Styles */
.huddle-chat-placeholder {
    background: #e3f2fd;
    border: 2px dashed #075e54;
    border-radius: 8px;
    padding: 40px 30px;
    text-align: center;
    margin: 20px 0;
}

.huddle-chat-placeholder h4 {
    color: #075e54;
    margin: 0 0 15px 0;
    font-size: 20px;
}

.huddle-chat-placeholder p {
    color: #075e54;
    margin: 5px 0;
    font-size: 14px;
}

.huddle-chat-placeholder em {
    font-size: 12px;
    color: #666;
}

/* Elementor Editor Improvements */
.elementor-editor-active .huddle-chat-wrapper {
    pointer-events: none; /* Verhindert Interaktionen im Editor */
}

.elementor-editor-active .huddle-chat-placeholder {
    pointer-events: auto;
    background: #f0f8ff;
    border-color: #0073aa;
}

/* Responsive Adjustments für Widget */
@media (max-width: 768px) {
    .huddle-chat-widget-title {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .huddle-chat-login-required,
    .huddle-chat-error,
    .huddle-chat-placeholder {
        padding: 25px 20px;
    }
    
    .huddle-chat-login-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}