/* Common UI elements for Qumo blocks */

/* Editor container - standardized padding for all blocks */
.qumo-form-embed-editor,
.qumo-chat-icon-editor {
    padding: 30px;
    border: 1px solid #e0e0e0;
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    font-family: Arial, sans-serif;
}

/* Editor header */
.qumo-editor-header {
    margin-bottom: 24px;
    color: #333;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    padding: 0 0 15px;
    border-bottom: 1px solid #eee;
}

.qumo-editor-header strong {
    margin-left: 10px;
    font-size: 16px;
}

.qumo-logo {
    height: 24px;
    width: auto;
}

/* Helper text with emoji */
.qumo-helper-text {
    display: block;
    margin: 16px 0;
    padding: 12px 16px;
    background-color: #f0f7ff;
    border-left: 4px solid #2271b1;
    border-radius: 4px;
    color: #1e1e1e;
    font-size: 14px;
    line-height: 1.5;
}

/* Error text with emoji */
.qumo-error-text {
    display: block;
    margin: 16px 0;
    padding: 12px 16px;
    background-color: #fff1f1;
    border-left: 4px solid #dc3232;
    border-radius: 4px;
    color: #1e1e1e;
    font-size: 14px;
    line-height: 1.5;
}

/* Form preview */
.qumo-form-preview {
    margin-top: 24px;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.qumo-form-preview-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
    font-size: 14px;
}

/* Placeholder */
.qumo-placeholder-container {
    padding: 40px 20px;
    text-align: center;
    background-color: #f8fafc;
    border-radius: 12px;
    margin-top: 20px;
    border: 1px dashed #e0e0e0;
}

.qumo-placeholder-logo {
    height: 32px;
    margin-bottom: 20px;
}

.qumo-placeholder-text {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 500;
}

.qumo-placeholder-subtext {
    font-size: 13px;
    color: #666;
    max-width: 90%;
    margin: 0 auto;
    line-height: 1.5;
}

/* Error messages */
.qumo-chat-icon-error,
.qumo-form-embed-error {
    color: #dc3232;
    margin: 8px 0;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 12px;
    background-color: #fff1f1;
    border-radius: 8px;
    display: inline-block;
}

.qumo-invalid-url-input {
    border-color: #dc3232 !important;
    background-color: #fff7f7 !important;
    border-radius: 4px;
}

/* Preview containers */
.qumo-preview-container {
    display: flex;
    margin-top: 24px;
    gap: 20px;
}

.qumo-icon-preview-container {
    flex: 1;
    background-color: #fff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 200px;
}

.qumo-icon-preview-info {
    font-size: 13px;
    color: #444;
    line-height: 1.4;
    padding: 12px;
    background-color: #f0f9ff;
    border-radius: 8px;
    margin-top: 15px;
}

.qumo-preview-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
    font-size: 14px;
}

/* Additional info text styles */
.qumo-info-text {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    padding: 10px;
    margin: 10px 0;
}

/* Validation error styles */
.qumo-validation-error {
    color: #dc3232;
    margin: 8px 0;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 12px;
    background-color: #fff1f1;
    border-radius: 8px;
    display: inline-block;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .qumo-form-embed-editor,
    .qumo-chat-icon-editor {
        padding: 20px;
    }
    
    .qumo-form-preview {
        padding: 15px;
    }
}

@media screen and (max-width: 768px) {
    .qumo-preview-container {
        flex-direction: column;
    }
}
