/* Webvina Frame Avatar Frontend CSS */
.wvfa-container {
    max-width: 900px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.wvfa-wrapper {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    box-sizing: border-box;
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.wvfa-editor-area {
    flex: 1;
    min-width: 0;
}

.wvfa-canvas-container {
    width: 100%;
    position: relative;
    background: #f0f2f5;
    border-radius: 8px;
    overflow: hidden;
    /* Maintain 1:1 aspect ratio */
    padding-bottom: 100%; 
    border: 2px dashed #cbd5e1;
    cursor: move;
}

.wvfa-canvas-container canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 2;
}

.wvfa-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.wvfa-placeholder.hidden {
    opacity: 0;
    visibility: hidden;
}

.wvfa-placeholder-content {
    text-align: center;
    color: #64748b;
}

.wvfa-placeholder-content svg {
    margin-bottom: 12px;
    color: #94a3b8;
}

.wvfa-placeholder-content p {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
}

/* Controls - Dark Theme */
.wvfa-controls-area {
    width: 320px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: #0f172a;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #1e293b;
    color: #94a3b8;
}

.wvfa-sliders-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wvfa-slider-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wvfa-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 500;
}

.wvfa-slider-val {
    color: #e2e8f0;
}

.wvfa-slider-wrap input[type="range"] {
    width: 100%;
    margin: 0;
    accent-color: #3b82f6;
}

.wvfa-action-buttons {
    display: flex;
    gap: 8px;
    justify-content: space-between;
}

.wvfa-btn-small {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 4px;
    background: transparent;
    border: 1px solid #334155;
    color: #94a3b8;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.wvfa-btn-small:hover:not(:disabled) {
    background: #1e293b;
    color: #e2e8f0;
    border-color: #475569;
}

.wvfa-btn-small:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Buttons */
.wvfa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.wvfa-btn-upload {
    background: #0284c7;
    color: #fff;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}

.wvfa-btn-upload:hover {
    background: #0369a1;
}

.wvfa-btn-download {
    background: #0ea5e9;
    color: #fff;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.3);
}

.wvfa-btn-download:hover:not(:disabled) {
    background: #0284c7;
}

.wvfa-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.wvfa-help-text {
    font-size: 12px;
    line-height: 1.5;
    margin: 0;
    color: #64748b;
}

/* Responsive */
@media (max-width: 768px) {
    .wvfa-wrapper {
        flex-direction: column;
        padding: 20px;
    }
    .wvfa-controls-area {
        width: 100%;
    }
    .wvfa-editor-area {
        width: 100%;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .wvfa-wrapper {
        padding: 16px;
    }
}
