 /* Editor styles */
 body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9fafb;
    color: #111827;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.editor-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.editor-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.editor-actions {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    font-size: 14px;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.btn-primary {
    background-color: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.btn-primary:hover {
    background-color: #2563eb;
    border-color: #2563eb;
}

.btn-outline {
    background-color: white;
    color: #6b7280;
    border-color: #d1d5db;
}

.btn-outline:hover {
    background-color: #f9fafb;
}

.editor-layout {
    display: flex;
    margin-top: 20px;
    gap: 20px;
    min-height: calc(100vh - 160px);
}

.editor-sidebar {
    width: 300px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.sidebar-section {
    border-bottom: 1px solid #e5e7eb;
}

.sidebar-section-header {
    padding: 15px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f9fafb;
}

.sidebar-section-content {
    padding: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: 500;
    color: #4b5563;
}

.form-control {
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background-color: white;
}

.form-control:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

.email-preview {
    flex: 1;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.preview-header {
    padding: 15px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f9fafb;
}

.preview-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

.preview-actions {
    display: flex;
    gap: 10px;
}

.preview-size {
    display: flex;
    align-items: center;
    gap: 5px;
}

.size-option {
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
    background-color: white;
    border: 1px solid #d1d5db;
    border-radius: 4px;
}

.size-option.active {
    background-color: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.preview-content {
    flex: 1;
    overflow: auto;
    padding: 20px;
    background-color: #f1f1f1;
}

.preview-frame {
    border: none;
    width: 100%;
    height: 100%;
    background-color: white;
    transition: all 0.3s;
    margin: 0 auto;
    display: block;
}

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

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

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

.color-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
}

.color-option {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid #e5e7eb;
}

.color-option.active {
    box-shadow: 0 0 0 2px white, 0 0 0 4px #3b82f6;
}

.image-placeholder {
    cursor: pointer;
    border: 1px dashed #d1d5db;
    border-radius: 4px;
    padding: 10px;
    text-align: center;
    margin-top: 5px;
}

.image-placeholder:hover {
    background-color: #f9fafb;
}

.products-section {
    margin-top: 15px;
}

.product-item {
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    margin-bottom: 10px;
    padding: 10px;
}

.product-item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.product-item-title {
    font-weight: 500;
}

.product-action {
    cursor: pointer;
    color: #6b7280;
}

.product-action:hover {
    color: #ef4444;
}

.add-product {
    margin-top: 10px;
    width: 100%;
}

.collapse-icon {
    font-size: 12px;
}

/* Switch toggle */
.switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e5e7eb;
    transition: .4s;
    border-radius: 20px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #3b82f6;
}

input:focus + .slider {
    box-shadow: 0 0 1px #3b82f6;
}

input:checked + .slider:before {
    transform: translateX(16px);
}

.toggle-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toggle-label {
    font-size: 14px;
    color: #4b5563;
}