/* ====================================
   ProductAI - Editor CSS
   Pamplate editor specific styles
   ==================================== */

/* Lady Garments Pamplate Editor Styles */
.editor-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 10000;
    overflow: auto;
    padding: 20px;
    box-sizing: border-box;
}

.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    margin-bottom: 20px;
}

.close-btn {
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

.editor-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    padding: 20px;
}

.canvas-section {
    position: relative;
}

#pamplateCanvas {
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
    max-width: 100%;
    height: auto;
    display: block;
}

.canvas-controls {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: center;
}

.editing-panel {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    max-height: 70vh;
    overflow-y: auto;
}

.edit-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.edit-section:last-child {
    border-bottom: none;
}

.edit-section h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 16px;
}

.file-input, .text-input, .text-area, .font-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 10px;
}

.text-area {
    resize: vertical;
    min-height: 60px;
}

.preview-thumbnail {
    width: 80px;
    height: 80px;
    border: 2px dashed #ddd;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #f5f5f5;
}

.preview-thumbnail.has-image {
    border-style: solid;
    border-color: #4CAF50;
}

.editor-layout label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.editor-layout input[type="range"] {
    flex: 1;
}

.product-line {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    align-items: center;
}

.line-input {
    flex: 1;
    margin-bottom: 0;
}

.remove-line {
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 10px;
}

.color-thumbnail {
    width: 70px;
    height: 70px;
    border: 2px solid #ddd;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    position: relative;
}

.color-thumbnail .remove-color {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    cursor: pointer;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
} 