/* PDF 역순 변환기 전용 스타일 (파스텔톤) */

/* 업로드 영역 */
.upload-area {
    border: 3px dashed #c5cae9;
    border-radius: 16px;
    padding: 60px 40px;
    text-align: center;
    background: #f8f9ff;
    transition: all 0.3s;
    cursor: pointer;
    margin-bottom: 20px;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: #667eea;
    background: #f0f2ff;
}

.upload-area.has-file {
    border-color: #11998e;
    background: #f0fff8;
}

.upload-area-compact {
    padding: 40px 30px;
}

.upload-area-compact .upload-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.upload-area-compact .upload-text {
    font-size: 1rem;
}

.upload-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.upload-text {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 10px;
}

.upload-hint {
    font-size: 0.85rem;
    color: #888;
}

/* 파일 정보 */
.file-info {
    padding: 20px;
    background: white;
    border-radius: 12px;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.file-info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.file-info-row:last-child {
    border-bottom: none;
}

.file-info-label {
    color: #666;
    font-size: 0.9rem;
}

.file-info-value {
    font-weight: 600;
    color: #333;
}

/* 동작 방식 안내 카드 */
.info-panel {
    background: linear-gradient(135deg, #fef3f9 0%, #f0f4ff 100%);
    border: 1px solid #e8d6f0;
    border-radius: 16px;
    padding: 20px 22px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.08);
}

.info-icon {
    font-size: 2rem;
    flex-shrink: 0;
    line-height: 1;
}

.info-content {
    flex: 1;
}

.info-title {
    font-weight: 600;
    color: #5b5276;
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.info-desc {
    font-size: 0.88rem;
    color: #6b6480;
    line-height: 1.55;
    margin: 0;
}

/* 미리보기 패널 */
.preview-panel {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    margin-bottom: 20px;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.preview-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.preview-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.preview-nav-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: linear-gradient(135deg, #a8b5e0 0%, #c8a6d4 100%);
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: opacity 0.2s;
}

.preview-nav-btn:hover {
    opacity: 0.9;
}

.preview-nav-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.preview-page-info {
    font-size: 0.9rem;
    color: #555;
    min-width: 60px;
    text-align: center;
}

.preview-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* 플레이스홀더 */
.preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    color: #888;
    text-align: center;
}

.preview-placeholder-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.preview-placeholder-text {
    font-size: 1rem;
}

/* 미리보기 가로 배치 */
.preview-horizontal {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 16px;
    max-width: 100%;
    max-height: 100%;
}

.preview-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 1;
    min-width: 0;
}

.preview-side-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #888;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.preview-page {
    position: relative;
    background: #f8f9fa;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    max-width: 100%;
}

.preview-page-original {
    border-color: #c5cae9;
}

.preview-page-result {
    border-color: #f5b8d0;
}

.preview-page canvas {
    display: block;
    max-width: 100%;
    max-height: 350px;
    width: auto;
    height: auto;
}

.preview-side-caption {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #555;
    font-weight: 600;
}

.preview-side-caption .badge {
    padding: 3px 8px;
    font-size: 0.7rem;
    font-weight: 500;
    color: #667eea;
    background: #e8eaf6;
    border: 1px solid #c5cae9;
    border-radius: 10px;
}

.preview-side-caption .badge-result {
    color: #c44a8a;
    background: #fce4ee;
    border-color: #f5b8d0;
}

.preview-arrow {
    font-size: 2rem;
    color: #c8a6d4;
    flex-shrink: 0;
    user-select: none;
}

/* 변환 버튼 영역 */
.convert-section {
    text-align: center;
    margin: 20px 0;
}

/* 진행 상태 */
.progress-container {
    display: none;
    margin: 20px 0;
}

.progress-container.show {
    display: block;
}

.progress-bar {
    height: 8px;
    background: #e8e8e8;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #a8b5e0 0%, #c8a6d4 100%);
    border-radius: 4px;
    transition: width 0.3s;
    width: 0%;
}

.progress-text {
    text-align: center;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #666;
}

/* 2컬럼 레이아웃 */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 20px;
    min-height: 480px;
}

@media (max-width: 1024px) {
    .split-layout {
        grid-template-columns: 1fr;
        min-height: auto;
    }
}

.left-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.right-column {
    display: flex;
    flex-direction: column;
}

.left-column .panel {
    margin-bottom: 0;
}

.right-column .preview-panel {
    flex: 1;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.right-column .preview-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
