/* SVG 변환기 스타일 - mockup-generator 디자인 언어 차용 (orange/pink 테마) */
.svgconv-tool {
    --tool-primary: #ea580c;
    --tool-bg: #fff7ed;
    --tool-gradient: linear-gradient(135deg, #ea580c 0%, #db2777 100%);
}

/* 히어로 */
.svgconv-hero {
    background: var(--tool-gradient);
    border-radius: 16px;
    padding: 36px 32px;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 28px;
}
.svgconv-hero::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
}
.svgconv-hero::after {
    content: '';
    position: absolute;
    bottom: -120px;
    left: -60px;
    width: 260px;
    height: 260px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
}
.svgconv-hero h1 {
    font-size: 28px;
    font-weight: 800;
    position: relative;
    z-index: 1;
    margin: 10px 0 6px;
}
.svgconv-hero p {
    opacity: 0.85;
    position: relative;
    z-index: 1;
    margin-bottom: 0;
}

/* 변환 모드 탭 */
.mode-tabs {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.mode-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    background: #fff;
    color: #495057;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.mode-tab:hover {
    border-color: var(--tool-primary);
    color: var(--tool-primary);
    background: var(--tool-bg);
}
.mode-tab.active {
    border-color: transparent;
    background: var(--tool-gradient);
    color: #fff;
}
.mode-tab.active:hover {
    color: #fff;
}
.mode-tab .mode-icon {
    font-size: 20px;
}
.mode-tab .mode-ext {
    font-size: 11px;
    opacity: 0.7;
}

/* 에디터 카드 (업로드/옵션/결과 컨테이너) */
.editor-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 14px;
    overflow: hidden;
}
.editor-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f3f5;
}
.editor-title {
    font-weight: 700;
    font-size: 14px;
    color: #343a40;
}
.editor-title i {
    color: var(--tool-primary);
}
.editor-body {
    padding: 16px;
}

/* 액션 버튼 */
.btn-action {
    display: inline-flex;
    align-items: center;
    padding: 9px 18px;
    border-radius: 10px;
    border: 1px solid #dee2e6;
    background: #fff;
    color: #495057;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}
.btn-action:hover {
    border-color: var(--tool-primary);
    color: var(--tool-primary);
    background: var(--tool-bg);
}
.btn-action-primary {
    background: var(--tool-gradient);
    border: none;
    color: #fff;
}
.btn-action-primary:hover {
    background: var(--tool-gradient);
    border: none;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(234, 88, 12, 0.3);
}

/* 업로드 영역 (드롭존) */
.upload-zone {
    border: 2px dashed #dee2e6;
    border-radius: 16px;
    padding: 48px 32px;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
    background: #fafbfc;
    position: relative;
}
.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--tool-primary);
    background: var(--tool-bg);
}
.upload-zone .upload-icon {
    font-size: 48px;
    color: #adb5bd;
    margin-bottom: 12px;
    transition: color 0.2s;
}
.upload-zone:hover .upload-icon,
.upload-zone.dragover .upload-icon {
    color: var(--tool-primary);
}
.upload-zone .upload-title {
    font-size: 18px;
    font-weight: 700;
    color: #202429;
    margin-bottom: 6px;
}
.upload-zone .upload-desc {
    font-size: 14px;
    color: #6c757d;
}
.upload-zone .upload-formats {
    margin-top: 12px;
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
}
.upload-zone .format-badge {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}
.format-svg { background: #fff7ed; color: #ea580c; }
.format-png { background: #dbeafe; color: #1d4ed8; }
.format-webp { background: #dcfce7; color: #15803d; }
.format-jpg { background: #fef3c7; color: #b45309; }

/* 파일 목록 */
.file-list {
    display: none;
    margin-top: 16px;
}
.file-list.show {
    display: block;
}
.file-item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.file-item .file-thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: #fff7ed;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.file-item .file-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.file-item .file-meta {
    flex-grow: 1;
    min-width: 0;
}
.file-item .file-name {
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.file-item .file-size {
    font-size: 12px;
    color: #6c757d;
}
.file-item .file-status {
    font-size: 12px;
    font-weight: 600;
}
.file-item .file-status.done { color: #22c55e; }
.file-item .file-status.error { color: #ef4444; }

/* 변환 옵션 */
.convert-options {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-top: 16px;
    display: none;
}
.convert-options.show {
    display: block;
}

/* 배경색 선택 */
.bg-option {
    border-radius: 8px !important;
    padding: 0 !important;
    border: 2px solid #dee2e6 !important;
    transition: all 0.2s;
}
.bg-option.active {
    border-color: var(--tool-primary) !important;
    box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.3);
}

/* 변환 버튼 */
.btn-convert {
    width: 100%;
    padding: 16px;
    font-size: 17px;
    font-weight: 700;
    border-radius: 12px;
    background: var(--tool-gradient);
    border: none;
    color: #fff;
    transition: all 0.2s;
    margin-top: 16px;
    display: none;
}
.btn-convert.show {
    display: block;
}
.btn-convert:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(234, 88, 12, 0.3);
    color: #fff;
}
.btn-convert:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 진행률 */
.progress-section {
    display: none;
    margin-top: 20px;
}
.progress-section.show {
    display: block;
}
.progress-bar-custom {
    height: 8px;
    border-radius: 4px;
    background: #f1f3f5;
    overflow: hidden;
}
.progress-bar-custom .bar {
    height: 100%;
    border-radius: 4px;
    background: var(--tool-gradient);
    transition: width 0.3s;
}

/* 결과 카드 */
.result-card {
    background: #fff;
    border: 2px solid #22c55e;
    border-radius: 14px;
    padding: 24px;
    text-align: center;
    display: none;
    margin-top: 20px;
}
.result-card.show {
    display: block;
}
.result-card .result-icon {
    font-size: 48px;
    color: #22c55e;
    margin-bottom: 12px;
}

/* 미리보기 (체크무늬 투명 배경) */
.preview-area {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 14px;
    padding: 16px;
    margin-top: 16px;
    display: none;
    text-align: center;
}
.preview-area.show {
    display: block;
}
.preview-area img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    background-image: linear-gradient(45deg, #f0f0f0 25%, transparent 25%, transparent 75%, #f0f0f0 75%),
                      linear-gradient(45deg, #f0f0f0 25%, transparent 25%, transparent 75%, #f0f0f0 75%);
    background-size: 16px 16px;
    background-position: 0 0, 8px 8px;
}
.preview-label {
    font-size: 12px;
    color: #6c757d;
    margin-top: 8px;
}

/* 서포트 카드 */
.support-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 14px;
    overflow: hidden;
}
.support-card .card-hd {
    padding: 14px 18px;
    font-weight: 700;
    font-size: 15px;
    border-bottom: 1px solid #f1f3f5;
}
.support-card .card-bd {
    padding: 18px;
}
.support-subtitle {
    font-size: 15px;
    font-weight: 700;
    color: #343a40;
    margin: 18px 0 10px;
}

/* 아코디언 */
.svgconv-tool .accordion-button:not(.collapsed) {
    background-color: var(--tool-bg);
    color: var(--tool-primary);
    box-shadow: none;
}
.svgconv-tool .accordion-button:focus {
    box-shadow: none;
}

/* 반응형 */
@media (max-width: 768px) {
    .svgconv-hero { padding: 28px 20px; border-radius: 12px; }
    .svgconv-hero h1 { font-size: 22px; }
    .upload-zone { padding: 32px 20px; }
    .mode-tab { padding: 10px 16px; font-size: 14px; }
}
