/* Elementor Page Builder Styles */
:root {
    --elementor-primary: #93003c;
    --elementor-secondary: #54595f;
    --elementor-text: #7a7a7a;
    --elementor-accent: #61ce70;
    --elementor-border: #d5d8dc;
    --elementor-bg: #e6e9ec;
}

* {
    box-sizing: border-box;
}

.elementor-editor-wrapper {
    display: flex;
    height: calc(100vh - 150px);
    background: #f1f3f5;
    direction: rtl;
    position: relative;
}

/* Left Panel - Widgets */
.elementor-panel {
    width: 320px;
    background: #fff;
    border-left: 1px solid var(--elementor-border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 100;
}

.elementor-panel.collapsed {
    width: 0;
    border: none;
}

.elementor-panel-header {
    padding: 20px;
    border-bottom: 1px solid var(--elementor-border);
    background: #fff;
}

.elementor-panel-header h3 {
    margin: 0;
    font-size: 18px;
    color: var(--elementor-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.elementor-panel-tabs {
    display: flex;
    border-bottom: 1px solid var(--elementor-border);
    background: #fff;
}

.elementor-panel-tab {
    flex: 1;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    border: none;
    background: none;
    color: var(--elementor-text);
    font-size: 14px;
    transition: all 0.3s;
    position: relative;
}

.elementor-panel-tab:hover {
    background: #f8f9fa;
    color: var(--elementor-primary);
}

.elementor-panel-tab.active {
    color: var(--elementor-primary);
}

.elementor-panel-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: var(--elementor-primary);
}

.elementor-panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Widgets Grid */
.elementor-widgets-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.elementor-widget-item {
    background: #fff;
    border: 2px solid var(--elementor-border);
    border-radius: 8px;
    padding: 20px 15px;
    text-align: center;
    cursor: move;
    transition: all 0.3s;
    user-select: none;
}

.elementor-widget-item:hover {
    border-color: var(--elementor-primary);
    box-shadow: 0 4px 12px rgba(147, 0, 60, 0.15);
    transform: translateY(-2px);
}

.elementor-widget-item i {
    font-size: 32px;
    color: var(--elementor-primary);
    margin-bottom: 10px;
    display: block;
}

.elementor-widget-item span {
    display: block;
    font-size: 13px;
    color: var(--elementor-secondary);
    font-weight: 500;
}

/* Canvas - Preview Area */
.elementor-canvas {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
    background: #f1f3f5;
    position: relative;
}

.elementor-canvas-inner {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0,0,0,0.08);
    min-height: 800px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Section Structure */
.elementor-section {
    position: relative;
    margin-bottom: 20px;
    padding: 40px 20px;
    border: 2px dashed transparent;
    transition: all 0.3s;
    min-height: 100px;
}

.elementor-section:hover {
    border-color: var(--elementor-primary);
    background: rgba(147, 0, 60, 0.02);
}

.elementor-section.active {
    border-color: var(--elementor-primary);
    background: rgba(147, 0, 60, 0.05);
}

.elementor-section-tools {
    position: absolute;
    top: 10px;
    left: 10px;
    display: none;
    gap: 5px;
    z-index: 10;
}

.elementor-section:hover .elementor-section-tools,
.elementor-section.active .elementor-section-tools {
    display: flex;
}

.elementor-tool-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--elementor-primary);
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-size: 14px;
}

.elementor-tool-btn:hover {
    background: #7a0031;
    transform: scale(1.1);
}

.elementor-columns {
    display: flex;
    gap: 20px;
    margin: 0 -10px;
}

.elementor-column {
    flex: 1;
    padding: 20px 10px;
    border: 2px dashed transparent;
    min-height: 80px;
    position: relative;
    transition: all 0.3s;
}

.elementor-column:hover {
    border-color: #61ce70;
    background: rgba(97, 206, 112, 0.05);
}

.elementor-column-placeholder {
    text-align: center;
    padding: 40px 20px;
    color: var(--elementor-text);
    font-size: 14px;
}

.elementor-column-placeholder i {
    font-size: 48px;
    opacity: 0.3;
    margin-bottom: 10px;
    display: block;
}

/* Widgets in Canvas */
.elementor-widget {
    position: relative;
    margin-bottom: 20px;
    padding: 15px;
    border: 2px solid transparent;
    border-radius: 4px;
    transition: all 0.3s;
    cursor: pointer;
}

.elementor-widget:hover {
    border-color: var(--elementor-accent);
    background: rgba(97, 206, 112, 0.05);
}

.elementor-widget.active {
    border-color: var(--elementor-primary);
    background: rgba(147, 0, 60, 0.05);
}

.elementor-widget-tools {
    position: absolute;
    top: 5px;
    left: 5px;
    display: none;
    gap: 3px;
}

.elementor-widget:hover .elementor-widget-tools,
.elementor-widget.active .elementor-widget-tools {
    display: flex;
}

.elementor-widget-tool-btn {
    width: 24px;
    height: 24px;
    border: none;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border-radius: 3px;
    cursor: pointer;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.elementor-widget-tool-btn:hover {
    background: rgba(0,0,0,0.8);
}

/* Widget Content Styles */
.widget-heading h1,
.widget-heading h2,
.widget-heading h3,
.widget-heading h4,
.widget-heading h5,
.widget-heading h6 {
    margin: 0;
    color: var(--elementor-secondary);
}

.widget-text p {
    margin: 0;
    line-height: 1.7;
    color: var(--elementor-text);
}

.widget-image img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.widget-button .btn-widget {
    display: inline-block;
    padding: 12px 30px;
    background: var(--elementor-primary);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.widget-button .btn-widget:hover {
    background: #7a0031;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(147, 0, 60, 0.3);
}

.widget-divider {
    text-align: center;
    padding: 10px 0;
}

.widget-divider hr {
    border: none;
    border-top: 2px solid var(--elementor-border);
    margin: 0;
}

.widget-spacer {
    height: 50px;
}

.widget-icon {
    text-align: center;
}

.widget-icon i {
    font-size: 64px;
    color: var(--elementor-primary);
}

.widget-video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.widget-video iframe,
.widget-video video {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 4px;
}

/* Settings Panel (Right Side) */
.elementor-settings-panel {
    width: 340px;
    background: #fff;
    border-right: 1px solid var(--elementor-border);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 100;
}

.elementor-settings-panel.active {
    display: flex;
}

.elementor-settings-header {
    padding: 20px;
    border-bottom: 1px solid var(--elementor-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.elementor-settings-header h4 {
    margin: 0;
    font-size: 16px;
    color: var(--elementor-secondary);
}

.elementor-settings-close {
    width: 28px;
    height: 28px;
    border: none;
    background: #f1f3f5;
    border-radius: 4px;
    cursor: pointer;
    color: var(--elementor-text);
    display: flex;
    align-items: center;
    justify-content: center;
}

.elementor-settings-close:hover {
    background: var(--elementor-border);
}

.elementor-settings-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.elementor-control-group {
    margin-bottom: 25px;
}

.elementor-control-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--elementor-secondary);
}

.elementor-control-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--elementor-border);
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
}

.elementor-control-input:focus {
    outline: none;
    border-color: var(--elementor-primary);
    box-shadow: 0 0 0 3px rgba(147, 0, 60, 0.1);
}

.elementor-control-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--elementor-border);
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
}

.elementor-control-color {
    width: 100%;
    height: 40px;
    border: 1px solid var(--elementor-border);
    border-radius: 4px;
    cursor: pointer;
}

.elementor-control-slider {
    width: 100%;
}

.elementor-control-buttons {
    display: flex;
    gap: 8px;
}

.elementor-control-btn {
    flex: 1;
    padding: 8px;
    border: 1px solid var(--elementor-border);
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 13px;
}

.elementor-control-btn:hover {
    background: #f8f9fa;
}

.elementor-control-btn.active {
    background: var(--elementor-primary);
    color: #fff;
    border-color: var(--elementor-primary);
}

/* Toolbar */
.elementor-toolbar {
    background: #fff;
    padding: 15px 20px;
    border-bottom: 1px solid var(--elementor-border);
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: space-between;
}

.elementor-toolbar-left,
.elementor-toolbar-right {
    display: flex;
    gap: 10px;
    align-items: center;
}

.elementor-toolbar-btn {
    padding: 8px 16px;
    border: 1px solid var(--elementor-border);
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--elementor-secondary);
}

.elementor-toolbar-btn:hover {
    background: #f8f9fa;
    border-color: var(--elementor-primary);
    color: var(--elementor-primary);
}

.elementor-toolbar-btn.primary {
    background: var(--elementor-primary);
    color: #fff;
    border-color: var(--elementor-primary);
}

.elementor-toolbar-btn.primary:hover {
    background: #7a0031;
}

.elementor-device-buttons {
    display: flex;
    gap: 5px;
    border: 1px solid var(--elementor-border);
    border-radius: 4px;
    padding: 3px;
}

.elementor-device-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    border-radius: 3px;
    cursor: pointer;
    color: var(--elementor-text);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.elementor-device-btn:hover {
    background: #f1f3f5;
}

.elementor-device-btn.active {
    background: var(--elementor-primary);
    color: #fff;
}

/* Drag and Drop */
.elementor-widget-item.dragging {
    opacity: 0.5;
}

.elementor-section.drag-over,
.elementor-column.drag-over {
    border-color: var(--elementor-accent) !important;
    background: rgba(97, 206, 112, 0.1) !important;
}

/* Empty State */
.elementor-empty-state {
    text-align: center;
    padding: 100px 40px;
    color: var(--elementor-text);
}

.elementor-empty-state i {
    font-size: 80px;
    opacity: 0.2;
    margin-bottom: 20px;
    display: block;
}

.elementor-empty-state h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--elementor-secondary);
}

.elementor-empty-state p {
    font-size: 16px;
    margin: 0;
}

/* Toggle Panel Button */
.elementor-toggle-panel {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--elementor-primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(147, 0, 60, 0.3);
    z-index: 1000;
    transition: all 0.3s;
}

.elementor-toggle-panel:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(147, 0, 60, 0.4);
}

/* Responsive */
.elementor-canvas.device-tablet .elementor-canvas-inner {
    max-width: 768px;
}

.elementor-canvas.device-mobile .elementor-canvas-inner {
    max-width: 375px;
}

/* Scrollbar Styling */
.elementor-panel-content::-webkit-scrollbar,
.elementor-settings-content::-webkit-scrollbar,
.elementor-canvas::-webkit-scrollbar {
    width: 8px;
}

.elementor-panel-content::-webkit-scrollbar-track,
.elementor-settings-content::-webkit-scrollbar-track,
.elementor-canvas::-webkit-scrollbar-track {
    background: #f1f3f5;
}

.elementor-panel-content::-webkit-scrollbar-thumb,
.elementor-settings-content::-webkit-scrollbar-thumb,
.elementor-canvas::-webkit-scrollbar-thumb {
    background: var(--elementor-border);
    border-radius: 4px;
}

.elementor-panel-content::-webkit-scrollbar-thumb:hover,
.elementor-settings-content::-webkit-scrollbar-thumb:hover,
.elementor-canvas::-webkit-scrollbar-thumb:hover {
    background: var(--elementor-text);
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.elementor-widget,
.elementor-section {
    animation: fadeIn 0.3s ease;
}

/* Upload Zone */
.elementor-upload-zone {
    border: 2px dashed var(--elementor-border);
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.elementor-upload-zone:hover {
    border-color: var(--elementor-primary);
    background: rgba(147, 0, 60, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(147, 0, 60, 0.1);
}

.elementor-upload-zone i {
    font-size: 48px;
    color: var(--elementor-primary);
    opacity: 0.7;
    margin-bottom: 10px;
    display: block;
    transition: all 0.3s;
}

.elementor-upload-zone:hover i {
    opacity: 1;
    transform: scale(1.1);
}

.elementor-upload-zone p {
    margin: 0 0 5px 0;
    color: var(--elementor-secondary);
    font-size: 14px;
    font-weight: 500;
}

.elementor-upload-zone small {
    display: block;
    color: var(--elementor-text);
    font-size: 12px;
    margin-top: 5px;
    opacity: 0.8;
}

/* Add Section Button */
.elementor-add-section-btn {
    width: 100%;
    padding: 20px;
    border: 2px dashed var(--elementor-border);
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    color: var(--elementor-text);
    font-size: 14px;
    margin-bottom: 20px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.elementor-add-section-btn:hover {
    border-color: var(--elementor-primary);
    color: var(--elementor-primary);
    background: rgba(147, 0, 60, 0.02);
}

.elementor-add-section-btn i {
    font-size: 20px;
}

/* Context Menu */
.elementor-context-menu {
    position: absolute;
    background: #fff;
    border: 1px solid var(--elementor-border);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 8px 0;
    min-width: 180px;
    z-index: 10000;
    display: none;
}

.elementor-context-menu.show {
    display: block;
}

.elementor-context-menu-item {
    padding: 10px 20px;
    cursor: pointer;
    color: var(--elementor-secondary);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
}

.elementor-context-menu-item:hover {
    background: #f8f9fa;
    color: var(--elementor-primary);
}

.elementor-context-menu-item i {
    width: 18px;
    text-align: center;
}

.elementor-context-menu-divider {
    height: 1px;
    background: var(--elementor-border);
    margin: 8px 0;
}

/* Loading State */
.elementor-loading {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.elementor-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--elementor-border);
    border-top-color: var(--elementor-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success Message */
.elementor-message {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 15px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 10001;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.elementor-message.success {
    border-right: 4px solid var(--elementor-accent);
}

.elementor-message.error {
    border-right: 4px solid #e74c3c;
}

.elementor-message i {
    font-size: 20px;
}

.elementor-message.success i {
    color: var(--elementor-accent);
}

.elementor-message.error i {
    color: #e74c3c;
}

