/* Convertor & Editor Imagini - seotoolpro.ro */

.img-tool-wrap {
    background: #fff;
    border-radius: 10px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin-bottom: 24px;
}

/* ── Upload Zone ── */
.img-upload-zone {
    border: 2px dashed #d1d5db;
    border-radius: 10px;
    background: #f9fafb;
    transition: border-color 0.2s, background 0.2s;
    margin-bottom: 14px;
    cursor: pointer;
}
.img-upload-zone.drag-over {
    border-color: #7c3aed;
    background: #f5f3ff;
}
.img-upload-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 20px;
    gap: 8px;
    position: relative;
    cursor: pointer;
}
.img-upload-icon {
    font-size: 40px;
    line-height: 1;
}
.img-upload-text {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
}
.img-upload-sub {
    font-size: 13px;
    color: #9ca3af;
}
.img-btn-upload {
    margin-top: 8px;
    background: #7c3aed;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.img-btn-upload:hover { background: #6d28d9; }

/* ── Tab SVG / Upload ── */
.img-svg-section {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}
.img-tab-link {
    padding: 8px 18px;
    border: 2px solid #e5e7eb;
    background: #fff;
    color: #6b7280;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.img-tab-link.active {
    border-color: #7c3aed;
    color: #7c3aed;
    background: #f5f3ff;
}
.img-svg-textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    font-family: monospace;
    color: #111827;
    box-sizing: border-box;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s;
    margin-bottom: 10px;
}
.img-svg-textarea:focus { border-color: #7c3aed; }

/* ── Preview Row ── */
.img-preview-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
.img-preview-box {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    background: #f9fafb;
}
.img-preview-label {
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 8px 12px;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
}
.img-preview-img {
    display: block;
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
    margin: 0 auto;
    padding: 12px;
}
.img-info-bar {
    font-size: 12px;
    color: #6b7280;
    padding: 8px 12px;
    border-top: 1px solid #e5e7eb;
    background: #fff;
    text-align: center;
    min-height: 32px;
}

/* ── Savings Bar ── */
.img-savings-bar {
    border-radius: 8px;
    padding: 12px 16px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}
.img-savings-bar.negative {
    background: #fff7ed;
    color: #ea580c;
    border-color: #fed7aa;
}

/* ── Settings Grid ── */
.img-settings-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}
.img-setting-block {
    background: #f9fafb;
    border-radius: 8px;
    padding: 16px;
}
.img-setting-label {
    display: block;
    font-weight: 700;
    font-size: 13px;
    color: #374151;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Format Buttons */
.img-format-btns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.img-fmt-btn {
    padding: 8px 16px;
    border: 2px solid #e5e7eb;
    background: #fff;
    color: #6b7280;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
}
.img-fmt-btn.active,
.img-fmt-btn:hover {
    border-color: #7c3aed;
    color: #7c3aed;
    background: #f5f3ff;
}
.img-format-hint {
    font-size: 12px;
    color: #6b7280;
    font-style: italic;
}

/* Resize Row */
.img-resize-row {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    margin-bottom: 14px;
}
.img-dim-group {
    flex: 1;
}
.img-dim-label {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 6px;
    font-weight: 600;
}
.img-dim-input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    color: #111827;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
}
.img-dim-input:focus { border-color: #7c3aed; }

.img-lock-btn-wrap {
    padding-bottom: 2px;
}
.img-lock-btn {
    width: 38px;
    height: 40px;
    border: 2px solid #e5e7eb;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.img-lock-btn.active {
    border-color: #7c3aed;
    background: #f5f3ff;
}

/* Social Presets */
.img-social-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.img-presets-label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 600;
    white-space: nowrap;
}
.img-preset-btn {
    padding: 5px 10px;
    border: 1px solid #d1d5db;
    background: #fff;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}
.img-preset-btn:hover {
    border-color: #7c3aed;
    color: #7c3aed;
    background: #f5f3ff;
}
.img-preset-info {
    margin-top: 8px;
    font-size: 12px;
    color: #7c3aed;
    font-weight: 600;
    padding: 6px 10px;
    background: #f5f3ff;
    border-radius: 6px;
}

/* Quality Slider */
.img-quality-slider {
    width: 100%;
    accent-color: #7c3aed;
    margin-bottom: 8px;
    height: 6px;
    cursor: pointer;
}
.img-quality-hints {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #9ca3af;
}

/* ── Action Buttons ── */
.img-action-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.img-btn-primary {
    flex: 1;
    min-width: 180px;
    padding: 13px 20px;
    background: #7c3aed;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}
.img-btn-primary:hover { background: #6d28d9; }

.img-btn-download {
    flex: 1;
    min-width: 180px;
    padding: 13px 20px;
    background: #059669;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}
.img-btn-download:hover { background: #047857; }

.img-btn-reset {
    padding: 13px 18px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
}
.img-btn-reset:hover { background: #e5e7eb; color: #374151; }

/* Status Message */
.img-status-msg {
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
}
.img-status-msg.success {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .img-preview-row {
        grid-template-columns: 1fr;
    }
    .img-action-row {
        flex-direction: column;
    }
    .img-btn-primary,
    .img-btn-download {
        min-width: unset;
    }
    .img-resize-row {
        flex-wrap: wrap;
    }
    .img-tool-wrap {
        padding: 18px;
    }
}