/* DreamShop Face Uploader Styles */

.dreamshop-uploader-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.dreamshop-uploader-wrapper {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dreamshop-uploader-title {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
}

.dreamshop-uploader-description {
    margin: 0 0 30px 0;
    color: #666;
    font-size: 14px;
}

/* 슬롯 컨테이너 */
.dreamshop-slots-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* 개별 슬롯 */
.dreamshop-slot {
    position: relative;
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 20px;
    background: #fafafa;
    transition: all 0.3s ease;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.dreamshop-slot:hover {
    border-color: #4a90e2;
    background: #f5f8ff;
}

.dreamshop-slot.has-image {
    border-style: solid;
    border-color: #4a90e2;
    background: #fff;
}

.dreamshop-slot.completed {
    border-color: #52c41a;
    background: #f6ffed;
}

.dreamshop-slot.warning {
    border-color: #faad14;
    background: #fffbe6;
}

/* 슬롯 상태 배지 */
.dreamshop-slot-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    z-index: 10;
}

.dreamshop-slot-badge.completed {
    background: #52c41a;
    color: #fff;
}

.dreamshop-slot-badge.warning {
    background: #faad14;
    color: #fff;
}

/* 업로드 영역 */
.dreamshop-upload-area {
    width: 100%;
    text-align: center;
    cursor: pointer;
}

.dreamshop-upload-icon {
    font-size: 48px;
    color: #bbb;
    margin-bottom: 10px;
}

.dreamshop-upload-text {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.dreamshop-upload-hint {
    color: #999;
    font-size: 12px;
}

.dreamshop-slot input[type="file"] {
    display: none;
}

/* 이미지 프리뷰 */
.dreamshop-image-preview {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin-bottom: 15px;
    border-radius: 4px;
    overflow: hidden;
}

.dreamshop-image-preview img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

/* 얼굴 감지 오버레이 */
.dreamshop-face-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.dreamshop-face-box {
    position: absolute;
    border: 3px solid #4a90e2;
    background: rgba(74, 144, 226, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
}

.dreamshop-face-box:hover {
    border-color: #1890ff;
    background: rgba(24, 144, 255, 0.2);
    transform: scale(1.02);
}

.dreamshop-face-box.selected {
    border-color: #52c41a;
    background: rgba(82, 196, 26, 0.2);
    box-shadow: 0 0 0 2px rgba(82, 196, 26, 0.3);
}

/* 슬롯 액션 버튼 */
.dreamshop-slot-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    width: 100%;
}

.dreamshop-btn {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dreamshop-btn-primary {
    background: #4a90e2;
    color: #fff;
}

.dreamshop-btn-primary:hover:not(:disabled) {
    background: #1890ff;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(74, 144, 226, 0.3);
}

.dreamshop-btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.dreamshop-btn-secondary:hover:not(:disabled) {
    background: #e0e0e0;
}

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

.dreamshop-btn-remove {
    background: #ff4d4f;
    color: #fff;
    padding: 8px 12px;
    font-size: 12px;
}

.dreamshop-btn-remove:hover {
    background: #ff7875;
}

/* Cropper 모드 */
.dreamshop-cropper-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.dreamshop-cropper-container.active {
    display: flex;
}

.dreamshop-cropper-wrapper {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.dreamshop-cropper-content {
    max-width: 800px;
    max-height: 600px;
    margin: 0 auto;
}

.dreamshop-cropper-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: flex-end;
}

/* 다음 단계 버튼 */
.dreamshop-actions {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.dreamshop-next-btn {
    padding: 14px 40px;
    background: #4a90e2;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dreamshop-next-btn:hover:not(:disabled) {
    background: #1890ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.4);
}

.dreamshop-next-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* 옵션A 모달 */
.dreamshop-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.dreamshop-modal.active {
    display: flex;
}

.dreamshop-modal-content {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dreamshop-modal-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #1a1a1a;
}

.dreamshop-modal-body {
    margin: 0 0 25px 0;
    color: #666;
    line-height: 1.6;
    font-size: 14px;
}

.dreamshop-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.dreamshop-modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dreamshop-modal-btn-primary {
    background: #4a90e2;
    color: #fff;
}

.dreamshop-modal-btn-primary:hover {
    background: #1890ff;
}

.dreamshop-modal-btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.dreamshop-modal-btn-secondary:hover {
    background: #e0e0e0;
}

/* 로딩 스피너 */
.dreamshop-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 반응형 */
@media (max-width: 768px) {
    .dreamshop-slots-container {
        grid-template-columns: 1fr;
    }
    
    .dreamshop-uploader-wrapper {
        padding: 20px;
    }
}

