
.container {
    border-radius: 20px;
    padding: 40px;
	margin-bottom: 248px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    width: 100%;
	height: 100%;
}

/* ------------------------------
   업로드 영역 (라온픽 메인 톤)
------------------------------ */
.upload-area {
    border: 2px dashed rgba(255,255,255,0.3);
    padding: 50px 20px;
    text-align: center;
    border-radius: 14px;
    background: rgba(255,255,255,0.03);
    transition: 0.25s ease;
    cursor: pointer;
}
.upload-area:hover {
    border-color: #de2573;
    background: rgba(112, 39, 14, 0.05);
}

.upload-icon {
    font-size: 60px;
    margin-bottom: 10px;
    opacity: 0.8;
}

.file-label {
    display: block;
    font-size: 18px;
    font-weight: 500;
    color: #ddd;
    cursor: pointer;
}

.file-info {
    margin-top: 10px;
    font-size: 13px;
    color: #aaa;
}

input[type="file"] { display: none; }

/* 선택된 파일 표시 */
.selected-file {
    margin-top: 20px;
    padding: 12px 16px;
    background: rgba(90,250,150,0.1);
    color: #6df3a1;
    border-left: 4px solid #6df3a1;
    font-size: 14px;
    border-radius: 6px;
}

/* ------------------------------
   버튼 스타일
------------------------------ */
#processBtn {
    margin-top: 25px;
    padding: 16px 0;
    font-size: 18px;
    font-weight: 600;
    border-radius: 10px;
    width: 100%;
    background: linear-gradient(90deg, #de2573, #fe4f31);
    border: none;
    color: #fff;
    transition: 0.25s;
}
#processBtn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}
#processBtn:not(:disabled):hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

/* ------------------------------
   진행바
------------------------------ */
.progress-bar {
    width: 100%;
    height: 18px;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    margin-top: 20px;
    overflow: hidden;
    display: none;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #6c63ff, #8b78ff);
    text-align: center;
    font-size: 12px;
    color: #fff;
    line-height: 20px;
}

/* ------------------------------
   로딩
------------------------------ */
.loading {
    display: none;
    margin-top: 25px;
    text-align: center;
}

.spinner {
    border: 5px solid rgba(255,255,255,0.15);
    border-top: 5px solid #8b78ff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 0.7s linear infinite;
    margin: auto;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

.success-message {
    display: none;
    margin-top: 20px;
    background: rgba(0,255,150,0.1);
    color: #70f7b9;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-size: 15px;
}


/* ------------------------------
   미리보기 영역 (중앙 정렬 개선)
------------------------------ */
.preview-section {
    margin-top: 50px;
    display: none;
    text-align: center;
}

.preview-section h3 {
    font-size: 22px;
    color: #e6e6e6;
    margin-bottom: 25px;
}

/* 중앙 정렬 + 고정폭 + 가운데 배치 */
.preview-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    align-items: flex-start;
    margin: 0 auto;
}

/* 이미지 박스 */
.preview-box {
    background: rgba(255,255,255,0.06);
    padding: 20px;
    border-radius: 14px;
    width: 360px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.preview-box h4 {
    margin-bottom: 15px;
    font-size: 17px;
    color: #ddd;
}

/* 캔버스를 이미지 카드처럼 */
.preview-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    background: #000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

#selectedFile{
	display:none;
}