/* Social Media Editor - WordPress Theme Integrated Styles */

.social-media-editor-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background-color: #f0f2f5;
    margin: 0 -30px;
    padding: 0;
    min-height: calc(100vh - 100px);
}

.social-media-editor-wrapper * {
    box-sizing: border-box;
}

.social-media-editor-wrapper .editor-container {
    display: flex;
    height: calc(100vh - 100px);
    position: relative;
    overflow: hidden;
    background: #f0f2f5;
}

/* Sidebar */
.social-media-editor-wrapper .sidebar {
    width: 280px;
    background-color: #fff;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    z-index: 10;
    position: relative;
    flex-shrink: 0;
}

.social-media-editor-wrapper .sidebar-section {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.social-media-editor-wrapper .sidebar-section h3 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Templates */
.social-media-editor-wrapper .template-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 0;
    padding: 0;
}

.social-media-editor-wrapper .template-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
}

.social-media-editor-wrapper .template-item:hover {
    border-color: #4267B2;
    background-color: #f8f9fa;
}

.social-media-editor-wrapper .template-preview {
    width: 60px;
    height: 60px;
    background-color: #f0f2f5;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
}

.social-media-editor-wrapper .template-preview i {
    font-size: 24px;
    color: #666;
}

.social-media-editor-wrapper .template-preview.story {
    height: 80px;
    width: 45px;
}

.social-media-editor-wrapper .template-preview.landscape {
    width: 80px;
    height: 45px;
}

.social-media-editor-wrapper .template-preview.header {
    width: 90px;
    height: 30px;
}

.social-media-editor-wrapper .template-item span {
    font-size: 12px;
    color: #666;
    text-align: center;
    margin: 0;
}

/* Buttons */
.social-media-editor-wrapper .btn-tool {
    width: 100%;
    padding: 10px;
    background-color: #4267B2;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.3s ease;
    margin: 0;
}

.social-media-editor-wrapper .btn-tool:hover {
    background-color: #365899;
}

/* Elements Grid */
.social-media-editor-wrapper .elements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 0;
    padding: 0;
}

.social-media-editor-wrapper .element-btn {
    padding: 15px;
    background-color: #f0f2f5;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0;
}

.social-media-editor-wrapper .element-btn:hover {
    border-color: #4267B2;
    background-color: #e8f0fe;
}

.social-media-editor-wrapper .element-btn i {
    font-size: 20px;
    color: #666;
}

/* Layers */
.social-media-editor-wrapper .layers-list {
    max-height: 200px;
    overflow-y: auto;
    margin: 0;
    padding: 0;
}

.social-media-editor-wrapper .layer-item {
    padding: 8px;
    margin: 0 0 5px 0;
    background-color: #f8f9fa;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 13px;
}

.social-media-editor-wrapper .layer-item:hover {
    background-color: #e8f0fe;
}

.social-media-editor-wrapper .layer-item.active {
    background-color: #4267B2;
    color: white;
}

.social-media-editor-wrapper .layer-controls {
    display: flex;
    gap: 5px;
}

.social-media-editor-wrapper .layer-controls button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    font-size: 12px;
    color: #666;
    margin: 0;
}

.social-media-editor-wrapper .layer-item.active .layer-controls button {
    color: white;
}

/* Main Editor */
.social-media-editor-wrapper .editor-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #e9ecef;
    position: relative;
    overflow: hidden;
}

/* Toolbar */
.social-media-editor-wrapper .toolbar {
    background-color: #fff;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 5;
    flex-wrap: wrap;
}

.social-media-editor-wrapper .toolbar-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-media-editor-wrapper .toolbar-btn {
    padding: 8px 12px;
    background-color: #f0f2f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    transition: all 0.3s ease;
    color: #333;
    margin: 0;
}

.social-media-editor-wrapper .toolbar-btn:hover {
    background-color: #e4e6ea;
}

.social-media-editor-wrapper .toolbar-btn.primary {
    background-color: #4267B2;
    color: white;
    border-color: #4267B2;
}

.social-media-editor-wrapper .toolbar-btn.primary:hover {
    background-color: #365899;
}

.social-media-editor-wrapper .toolbar-btn.success {
    background-color: #42b983;
    color: white;
    border-color: #42b983;
}

.social-media-editor-wrapper .toolbar-btn.success:hover {
    background-color: #35a372;
}

.social-media-editor-wrapper .zoom-level {
    font-size: 14px;
    color: #666;
    min-width: 50px;
    text-align: center;
}

/* Canvas Container */
.social-media-editor-wrapper .canvas-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    position: relative;
    padding: 40px;
}

.social-media-editor-wrapper #social-media-canvas {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background: #fff;
}

/* Properties Panel */
.social-media-editor-wrapper .properties-panel {
    width: 280px;
    background-color: #fff;
    box-shadow: -2px 0 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    overflow-y: auto;
    position: relative;
    flex-shrink: 0;
}

.social-media-editor-wrapper .properties-panel h3 {
    font-size: 16px;
    margin: 0 0 20px 0;
    color: #333;
}

.social-media-editor-wrapper .property-group {
    margin-bottom: 20px;
}

.social-media-editor-wrapper .property-group label {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.social-media-editor-wrapper .property-group input[type="range"] {
    width: 100%;
    margin-bottom: 5px;
}

.social-media-editor-wrapper .property-group input[type="color"] {
    width: 100%;
    height: 36px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 15px;
}

.social-media-editor-wrapper .property-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 15px;
    background: #fff;
}

.social-media-editor-wrapper .range-value {
    font-size: 12px;
    color: #999;
    margin-left: 5px;
}

/* Text Alignment Buttons */
.social-media-editor-wrapper .text-align-buttons,
.social-media-editor-wrapper .text-style-buttons {
    display: flex;
    gap: 5px;
    margin-top: 10px;
}

.social-media-editor-wrapper .align-btn,
.social-media-editor-wrapper .style-btn {
    flex: 1;
    padding: 8px;
    background-color: #f0f2f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
}

.social-media-editor-wrapper .align-btn:hover,
.social-media-editor-wrapper .style-btn:hover {
    background-color: #e4e6ea;
}

.social-media-editor-wrapper .align-btn.active,
.social-media-editor-wrapper .style-btn.active {
    background-color: #4267B2;
    color: white;
    border-color: #4267B2;
}

/* Modal */
.social-media-editor-wrapper .modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.social-media-editor-wrapper .modal.show {
    display: flex;
}

.social-media-editor-wrapper .modal-content {
    background-color: white;
    border-radius: 8px;
    width: 400px;
    max-width: 90%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.social-media-editor-wrapper .modal-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-media-editor-wrapper .modal-header h2 {
    font-size: 18px;
    margin: 0;
    color: #333;
}

.social-media-editor-wrapper .close-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0;
    margin: 0;
}

.social-media-editor-wrapper .modal-body {
    padding: 20px;
}

.social-media-editor-wrapper .export-options label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.social-media-editor-wrapper .export-options select,
.social-media-editor-wrapper .export-options input[type="range"] {
    width: 100%;
    margin-bottom: 15px;
}

.social-media-editor-wrapper .watermark-notice {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 10px;
    border-radius: 4px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #856404;
}

.social-media-editor-wrapper .btn-primary {
    width: 100%;
    padding: 12px;
    background-color: #4267B2;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.3s ease;
    margin: 0;
}

.social-media-editor-wrapper .btn-primary:hover {
    background-color: #365899;
}

/* Reset WordPress theme styles */
.social-media-editor-wrapper ul,
.social-media-editor-wrapper ol,
.social-media-editor-wrapper li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.social-media-editor-wrapper input,
.social-media-editor-wrapper select,
.social-media-editor-wrapper button {
    font-family: inherit;
}

.social-media-editor-wrapper button {
    text-transform: none;
    letter-spacing: normal;
}

/* Responsive */
@media (max-width: 1200px) {
    .social-media-editor-wrapper .properties-panel {
        position: absolute;
        right: -280px;
        transition: right 0.3s ease;
        height: 100%;
        top: 0;
    }
    
    .social-media-editor-wrapper .properties-panel.show {
        right: 0;
    }
}

@media (max-width: 768px) {
    .social-media-editor-wrapper .sidebar {
        position: absolute;
        left: -280px;
        height: 100%;
        transition: left 0.3s ease;
        top: 0;
    }
    
    .social-media-editor-wrapper .sidebar.show {
        left: 0;
    }
    
    .social-media-editor-wrapper .editor-main {
        width: 100%;
    }
    
    .social-media-editor-wrapper .toolbar {
        padding: 10px;
        gap: 10px;
    }
    
    .social-media-editor-wrapper .toolbar-group {
        gap: 5px;
    }
    
    .social-media-editor-wrapper .canvas-container {
        padding: 20px;
    }
}