/* Babiato AI Image Upscaler — Styles */

.bup-wrap {
    font-family: inherit;
    max-width: 760px;
}

/* ── Dropzone ─────────────────────────────────────── */
.bup-dropzone {
    border: 2.5px dashed #cbd5e1;
    border-radius: 14px;
    padding: 52px 24px;
    text-align: center;
    cursor: pointer;
    background: #f8fafc;
    transition: border-color .2s, background .2s;
    margin-bottom: 1.25rem;
}
.bup-dropzone:hover,
.bup-dropzone--over {
    border-color: #10b981;
    background: #ecfdf5;
}
.bup-dz-icon   { font-size: 2.8rem; margin-bottom: .6rem; }
.bup-dz-title  { font-size: 1rem; font-weight: 700; color: #1e293b; margin-bottom: .3rem; }
.bup-dz-hint   { font-size: .82rem; color: #64748b; }
.bup-link      { color: #10b981; }

/* ── Preview row ──────────────────────────────────── */
.bup-preview-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}
.bup-preview-box {
    flex: 1;
    min-width: 180px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    background: #f8fafc;
    position: relative;
}
.bup-preview-box img {
    width: 100%;
    max-height: 260px;
    object-fit: contain;
    display: block;
}
.bup-preview-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: #94a3b8;
    font-size: .9rem;
    font-style: italic;
}
.bup-preview-out {
    border-color: #10b981;
}
.bup-preview-label {
    text-align: center;
    font-size: .75rem;
    font-weight: 600;
    color: #64748b;
    padding: .3rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}
.bup-arrow {
    font-size: 1.8rem;
    color: #10b981;
    font-weight: 700;
    flex-shrink: 0;
}

/* ── Options ──────────────────────────────────────── */
.bup-opts {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 1.25rem;
}
.bup-opt-label {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    font-size: .82rem;
    font-weight: 600;
    color: #374151;
}
.bup-checkbox-label {
    flex-direction: row;
    align-items: center;
    gap: .4rem;
    cursor: pointer;
    margin-top: 1.1rem;
}
.bup-select {
    padding: .45rem .75rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: .875rem;
    background: #fff;
    color: #374151;
    cursor: pointer;
}

/* ── Buttons ──────────────────────────────────────── */
.bup-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .75rem 1.75rem;
    background: #10b981;
    color: #fff;
    border: none;
    border-radius: 9px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, opacity .2s;
    text-decoration: none;
}
.bup-btn-primary:hover  { background: #059669; }
.bup-btn-primary:disabled { opacity: .6; cursor: not-allowed; }

.bup-btn-secondary {
    padding: .65rem 1.25rem;
    background: #fff;
    color: #374151;
    border: 1.5px solid #e2e8f0;
    border-radius: 9px;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .2s;
}
.bup-btn-secondary:hover { border-color: #10b981; }

/* ── Progress ─────────────────────────────────────── */
.bup-prog-bar {
    background: #e2e8f0;
    border-radius: 999px;
    height: 8px;
    overflow: hidden;
    margin-bottom: .55rem;
}
.bup-prog-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #6ee7b7);
    border-radius: 999px;
    width: 0%;
    transition: width .6s ease;
}
.bup-prog-msg {
    font-size: .85rem;
    color: #64748b;
    text-align: center;
}

/* ── Error ────────────────────────────────────────── */
.bup-error {
    padding: .8rem 1rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 9px;
    color: #dc2626;
    font-size: .875rem;
    margin-top: .75rem;
}

/* ── Actions row ──────────────────────────────────── */
.bup-actions {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    align-items: center;
}
