/* ============================================================
   Image Converter — Styles
   ============================================================ */

/* === Drop Zone === */
.drop-zone {
    position: relative;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    background: var(--bg-card);
}
.drop-zone:hover,
.drop-zone.drag-over {
    border-color: var(--accent);
    background: var(--accent-glow);
}
.drop-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}
.drop-content i {
    font-size: 2.5rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.8rem;
}
.drop-zone:hover .drop-content i,
.drop-zone.drag-over .drop-content i {
    color: var(--accent);
}
.drop-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}
.drop-sub {
    font-size: 0.82rem;
    color: var(--text-muted);
}
.drop-link {
    color: var(--accent);
    text-decoration: underline;
}

/* === Controls Section === */
.controls-section {
    margin-top: 1.5rem;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* === Original Info === */
.original-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.8rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 0.4rem;
}
.info-name {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 600;
}
.info-meta {
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

/* === Control Row === */
.control-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: flex-end;
}
.control-group {
    flex: 1;
}

/* === Format Buttons === */
.format-btns {
    display: flex;
    gap: 0.4rem;
}
.fmt-btn {
    flex: 1;
    padding: 0.5rem 0.8rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
}
.fmt-btn:hover {
    border-color: var(--text-muted);
    color: var(--text-primary);
}
.fmt-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* === Slider === */
.slider {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--border-color);
    border-radius: 3px;
    outline: none;
    margin-top: 0.4rem;
}
.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    border: 2px solid var(--bg-card);
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    border: 2px solid var(--bg-card);
}

/* === Input Small === */
.input-sm {
    padding: 0.5rem 0.7rem !important;
    font-size: 0.85rem !important;
}

/* === Lock Button (aspect ratio) === */
.lock-group {
    flex: 0 0 40px !important;
}
.lock-btn {
    width: 40px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition);
}
.lock-btn.active {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-glow);
}
.lock-btn:hover {
    border-color: var(--text-muted);
}

/* === Preset Row === */
.preset-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.preset-btn {
    padding: 0.3rem 0.7rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}
.preset-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* === Preview === */
.preview-section {
    margin-bottom: 1rem;
}
.preview-box {
    background: repeating-conic-gradient(
        var(--bg-surface) 0% 25%, 
        var(--bg-body) 0% 50%
    ) 50% / 16px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px;
    text-align: center;
    overflow: hidden;
    max-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.preview-box canvas {
    max-width: 100%;
    max-height: 380px;
    object-fit: contain;
    border-radius: 4px;
}
.preview-info {
    text-align: center;
    margin-top: 0.4rem;
}

/* === Action Row === */
.action-row {
    display: flex;
    gap: 0.5rem;
}
.action-row .btn-primary-dark { flex: 2; }
.action-row .btn-secondary-dark { flex: 1; }

/* === Batch Section === */
.batch-section {
    margin-top: 1.5rem;
    animation: fadeIn 0.4s ease;
}
.batch-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.section-title {
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}
.batch-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
}
.batch-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem 0.8rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}
.batch-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 4px;
    background: var(--bg-body);
}
.batch-item-body {
    flex: 1;
    min-width: 0;
}
.batch-item-name {
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.batch-item-meta {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* === Info Banner === */
.info-banner {
    display: flex;
    gap: 0.8rem;
    padding: 1rem 1.2rem;
    margin-top: 1.5rem;
    background: rgba(63, 185, 80, 0.06);
    border: 1px solid rgba(63, 185, 80, 0.15);
    border-radius: var(--radius-md);
    font-size: 0.82rem;
    line-height: 1.6;
    color: var(--text-secondary);
}
.info-banner > i {
    color: var(--accent-green);
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* === Responsive === */
@media (max-width: 480px) {
    .control-row { flex-direction: column; gap: 0.8rem; }
    .lock-group { flex: 0 0 auto !important; }
    .lock-btn { width: 100%; }
    .action-row { flex-direction: column; }
    .action-row .btn-primary-dark,
    .action-row .btn-secondary-dark { flex: 1; }
}
