/**
 * Vinyl Text Customizer - Editor Styles
 */

.vtc-wrapper {
    max-width: 100%;
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.vtc-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #fff;
    border-radius: 6px;
}

.vtc-outline-section {
    grid-column: 1 / -1;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 6px;
    border: 1px solid #ddd;
    margin-top: 10px;
}

.vtc-outline-section h4 {
    color: #333;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.vtc-control-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    transition: opacity 0.3s ease;
}

.vtc-control-group:has(input:disabled),
.vtc-control-group[style*="pointer-events: none"] {
    opacity: 0.5;
    pointer-events: none;
}

.vtc-control-group input:disabled,
.vtc-control-group select:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.vtc-control-group label {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
}

.vtc-control-group label:has(input[type="checkbox"]) {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.vtc-input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.vtc-input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

.vtc-color {
    width: 100%;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    padding: 2px;
    background: #fff;
}

.vtc-range {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #ddd;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.vtc-range::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #0073aa;
    cursor: pointer;
    transition: background 0.3s ease;
}

.vtc-range::-webkit-slider-thumb:hover {
    background: #005a87;
}

.vtc-range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #0073aa;
    cursor: pointer;
    border: none;
    transition: background 0.3s ease;
}

.vtc-range::-moz-range-thumb:hover {
    background: #005a87;
}

.vtc-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #0073aa;
}

.vtc-select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.vtc-select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

#stroke-width-value {
    font-weight: normal;
    color: #0073aa;
}

.vtc-canvas-wrapper {
    text-align: center;
    padding: 20px;
    background: #fff;
    border-radius: 6px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

#vinyl-canvas {
    border: 2px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    background: #ffffff;
}

/* Responsive design */
@media (max-width: 768px) {
    .vtc-controls {
        grid-template-columns: 1fr;
    }
    
    .vtc-wrapper {
        padding: 15px;
    }
    
    #vinyl-canvas {
        max-width: 100%;
    }
}

/* Loading state */
.vtc-wrapper.loading {
    opacity: 0.6;
    pointer-events: none;
}

.vtc-wrapper.loading::after {
    content: "Loading...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    color: #666;
}

