/* 이미지 포맷 변환기 스타일 - mockup-generator 디자인 언어 차용 (blue/cyan 테마) */
.imgconv-tool {
    --tool-primary: #2563eb;
    --tool-bg: #eff6ff;
    --tool-gradient: linear-gradient(135deg, #2563eb 0%, #0891b2 100%);
}

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

/* 에디터 카드 */
.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: 18px;
}

/* 액션 버튼 */
.btn-action {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    border-radius: 9px;
    border: 1px solid #dee2e6;
    background: #fff;
    color: #495057;
    font-size: 13px;
    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-sm {
    padding: 5px 11px;
    font-size: 12.5px;
    border-radius: 8px;
}
.btn-action-primary {
    background: var(--tool-gradient);
    border: none;
    color: #fff;
}
/* CRITICAL: hover 시 그라데이션 배경/테두리 재선언 (회색으로 풀리지 않도록) */
.btn-action-primary:hover {
    background: var(--tool-gradient);
    border: none;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.3);
}
.btn-action-success {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    border: none;
    color: #fff;
}
.btn-action-success:hover {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    border: none;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(22, 163, 74, 0.3);
}

/* 드래그 앤 드롭 영역 (기능 유지: #dropZone, .drag-over) */
.drop-zone {
    border: 2px dashed #cbd5e1;
    background: #f8fafc;
    padding: 44px 24px;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}
.drop-zone:hover,
.drop-zone.drag-over {
    border-color: var(--tool-primary);
    background-color: var(--tool-bg);
}
.drop-zone.drag-over {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) inset;
}
.drop-zone .drop-zone-content i {
    color: #94a3b8;
    transition: color 0.2s ease;
}
.drop-zone:hover .drop-zone-content i,
.drop-zone.drag-over .drop-zone-content i {
    color: var(--tool-primary);
}

/* 변환 옵션 폼 */
.imgconv-tool .form-select:focus,
.imgconv-tool .form-range:focus {
    border-color: var(--tool-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.imgconv-tool #qualityValue {
    color: var(--tool-primary) !important;
}
.imgconv-tool .form-range::-webkit-slider-thumb { background-color: var(--tool-primary); }
.imgconv-tool .form-range::-moz-range-thumb { background-color: var(--tool-primary); }
/* 품질 슬라이더 비활성화 스타일 (기능 유지) */
.form-range:disabled {
    opacity: 0.4;
}

/* 변환 결과 파일 아이템 카드 (기능 유지: .file-item-card) */
.file-item-card {
    border: 1px solid #e9ecef !important;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.file-item-card:hover {
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.12) !important;
    transform: translateY(-1px);
}
/* 썸네일 (기능 유지: .file-item-thumb) - 투명도 확인용 체커보드 배경 */
.file-item-thumb {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 8px;
    flex-shrink: 0;
    border: 1px solid #e9ecef;
    background-color: #fff;
    background-image:
        linear-gradient(45deg, #e2e8f0 25%, transparent 25%),
        linear-gradient(-45deg, #e2e8f0 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #e2e8f0 75%),
        linear-gradient(-45deg, transparent 75%, #e2e8f0 75%);
    background-size: 12px 12px;
    background-position: 0 0, 0 6px, 6px -6px, -6px 0;
}
/* 포맷 배지 (기능 유지: .format-badge) */
.format-badge {
    font-size: 0.7rem;
    padding: 0.2em 0.5em;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.03em;
}
.imgconv-tool .badge.bg-primary {
    background-color: var(--tool-primary) !important;
}
.min-width-0 {
    min-width: 0;
}

/* 결과 영역 다운로드 버튼 강조 (기능 유지: .btn-download) */
.imgconv-tool .btn-download.btn-primary {
    background-color: var(--tool-primary);
    border-color: var(--tool-primary);
}

/* 서포트 카드 */
.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;
}

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

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