/* Editor Interface Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f8f9fa;
    overflow: hidden;
}

/* Editor Container */
.editor-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.editor-header {
    height: 60px;
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 18px;
    color: #333;
}

.logo i {
    color: #007bff;
    font-size: 20px;
}

.toolbar {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Buttons */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-secondary {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.btn-secondary:hover {
    background: #e9ecef;
    color: #495057;
}

/* Device Selector */
.device-selector {
    display: flex;
    background: #f8f9fa;
    border-radius: 6px;
    padding: 2px;
}

.device-btn {
    padding: 8px 12px;
    background: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    color: #6c757d;
    transition: all 0.2s;
}

.device-btn.active,
.device-btn:hover {
    background: #007bff;
    color: white;
}

/* Editor Content */
.editor-content {
    flex: 1;
    display: flex;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: 300px;
    background: #ffffff;
    border-right: 1px solid #e5e5e5;
    display: flex;
    flex-direction: column;
}

.sidebar-tabs {
    display: flex;
    border-bottom: 1px solid #e5e5e5;
}

.tab-btn {
    flex: 1;
    padding: 15px 10px;
    background: none;
    border: none;
    cursor: pointer;
    color: #6c757d;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 12px;
}

.tab-btn.active {
    color: #007bff;
    background: #f8f9fa;
}

.tab-btn i {
    font-size: 16px;
}

/* Tab Content */
.tab-content {
    display: none;
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 16px;
}

/* Component List */
.component-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.component-item {
    padding: 12px;
    background: #f8f9fa;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
}

.component-item:hover {
    background: #e9ecef;
    border-color: #007bff;
}

.component-item i {
    color: #007bff;
    font-size: 16px;
}

/* Style Controls */
.style-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.control-group label {
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.control-group input,
.control-group select,
.control-group textarea {
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.control-group input:focus,
.control-group select:focus,
.control-group textarea:focus {
    outline: none;
    border-color: #007bff;
}

.control-group input[type="range"] {
    padding: 0;
}

.control-group .value {
    font-size: 12px;
    color: #6c757d;
    text-align: right;
}

/* Element Styles */
.element-styles {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
}

/* Preview Container */
.preview-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    padding: 20px;
}

.preview-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-frame {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s;
    max-height: 100%;
    overflow-y: auto;
}

.preview-frame.desktop {
    width: 100%;
    max-width: 1200px;
}

.preview-frame.tablet {
    width: 768px;
    max-width: 768px;
}

.preview-frame.mobile {
    width: 375px;
    max-width: 375px;
}

/* Landing Page Container */
.landing-page {
    min-height: 100%;
    position: relative;
}

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

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 80%;
    overflow: hidden;
}

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

.modal-header h3 {
    margin: 0;
    color: #333;
}

.close-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #6c757d;
    padding: 5px;
}

.close-btn:hover {
    color: #333;
}

.modal-body {
    padding: 20px;
}

.upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 20px;
}

.upload-area:hover {
    border-color: #007bff;
    background: #f8f9fa;
}

.upload-area i {
    font-size: 48px;
    color: #dee2e6;
    margin-bottom: 10px;
}

.upload-area p {
    color: #6c757d;
    margin: 0;
}

.url-input label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.url-input input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 14px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #e5e5e5;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 250px;
    }
    
    .editor-header {
        padding: 0 15px;
    }
    
    .toolbar {
        gap: 10px;
    }
    
    .btn {
        padding: 6px 12px;
        font-size: 13px;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
