/**
 * Custom Elementor Widgets Editor CSS
 * 
 * This file contains styles for the Elementor editor interface.
 */

/* Widget icons in editor */
.elementor-element[data-element_type="two_column_content"] .elementor-element-icon,
.elementor-element[data-element_type="timeline"] .elementor-element-icon {
    background-color: #007bff;
    color: #ffffff;
}

/* Widget preview in editor */
.elementor-widget-two_column_content .cew-two-column-content-widget,
.elementor-widget-timeline .cew-timeline-widget {
    border: 2px dashed #007bff;
    padding: 20px;
    margin: 10px;
    background-color: #f8f9fa;
}

/* Editor-specific styles for better visibility */
.elementor-editor-active .cew-two-column-content-widget,
.elementor-editor-active .cew-timeline-widget {
    min-height: 200px;
}

/* Widget category styling */
.elementor-panel-category-custom-elementor-widgets .elementor-panel-category-title {
    color: #007bff;
    font-weight: 600;
}

/* Widget preview improvements */
.elementor-editor-active .cew-two-column-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.elementor-editor-active .cew-two-column-description {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

.elementor-editor-active .cew-timeline-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    text-align: center;
}

.elementor-editor-active .cew-timeline-item-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.elementor-editor-active .cew-timeline-year {
    font-size: 16px;
    font-weight: 700;
    color: #007bff;
}

/* Button preview in editor */
.elementor-editor-active .cew-two-column-btn {
    background-color: #007bff;
    color: #ffffff;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
}

/* Image placeholder in editor */
.elementor-editor-active .cew-two-column-image-wrapper {
    background-color: #f1f3f4;
    border: 2px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.elementor-editor-active .cew-two-column-image-wrapper:before {
    content: "📷 Image Placeholder";
    color: #666;
    font-size: 16px;
}

/* Timeline preview in editor */
.elementor-editor-active .cew-timeline-line {
    background-color: #e0e0e0;
    width: 2px;
    height: 100%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.elementor-editor-active .cew-timeline-icon {
    background-color: #007bff;
    color: #ffffff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Responsive preview in editor */
@media (max-width: 768px) {
    .elementor-editor-active .cew-col-lg-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .elementor-editor-active .cew-two-column-text-content {
        padding-right: 0;
        margin-bottom: 20px;
    }
    
    .elementor-editor-active .cew-timeline-item {
        flex-direction: column;
    }
    
    .elementor-editor-active .cew-timeline-content {
        width: 100%;
        margin: 0;
        margin-top: 20px;
    }
}

/* Widget controls styling */
.elementor-control-raw-html .elementor-control-raw-html {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #e9ecef;
}

/* Widget documentation links */
.cew-widget-docs {
    background-color: #e3f2fd;
    border: 1px solid #2196f3;
    border-radius: 5px;
    padding: 10px;
    margin: 10px 0;
    font-size: 12px;
    color: #1976d2;
}

.cew-widget-docs a {
    color: #1976d2;
    text-decoration: underline;
}

/* Widget status indicators */
.cew-widget-status {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #4caf50;
}

.cew-widget-status.error {
    background-color: #f44336;
}

.cew-widget-status.warning {
    background-color: #ff9800;
}

/* Widget help tooltips */
.cew-help-tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
}

.cew-help-tooltip:before {
    content: "?";
    background-color: #007bff;
    color: #ffffff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.cew-help-tooltip:hover:after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
}

/* Widget preview animations */
.elementor-editor-active .cew-two-column-content-widget,
.elementor-editor-active .cew-timeline-widget {
    animation: cewEditorFadeIn 0.5s ease-in-out;
}

@keyframes cewEditorFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
} 