/* =========================================================
   BACKGROUND REMOVER TOOL - STYLES.CSS
   ========================================================= */

:root {
    --primary-color: #0284c7;
    --primary-hover: #0369a1;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #cbd5e1;
    --border-light: #e2e8f0;
    --radius: 12px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
}

.background-remover-page {
    max-width: 1000px;
    margin: 20px auto 60px auto;
    padding: 0 20px;
}

/* --- HERO SECTION --- */
.tool-hero {
    text-align: center;
    margin-bottom: 30px;
}

.tool-badge {
    display: inline-block;
    background: #e0f2fe;
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
}

.tool-hero h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 8px 0;
}

.tool-hero p {
    color: var(--text-muted);
    font-size: 15px;
    margin: 0;
}

/* --- UPLOAD SECTION --- */
.upload-section {
    margin-bottom: 30px;
}

.upload-zone {
    border: 2px dashed var(--border-color);
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.upload-zone:hover, .upload-zone.drag-over {
    border-color: var(--primary-color);
    background: #f0f9ff;
}

.upload-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.upload-zone h2 {
    font-size: 18px;
    color: var(--text-main);
    margin: 0 0 6px 0;
}

.upload-zone p {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0 0 16px 0;
}

.primary-btn {
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.primary-btn:hover {
    background: var(--primary-hover);
}

.primary-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

.upload-hint {
    display: block;
    margin-top: 12px;
    font-size: 12px;
    color: #94a3b8;
}

/* --- WORKSPACE PANELS --- */
.workspace {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.panel {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.panel-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.step-number {
    background: #e0f2fe;
    color: var(--primary-color);
    font-weight: 700;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 13px;
    flex-shrink: 0;
}

.panel-heading h2 {
    font-size: 16px;
    margin: 0;
    color: var(--text-main);
}

.panel-heading p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

.image-preview-box {
    width: 100%;
    height: 240px;
    background: #f1f5f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-light);
}

/* Transparent Checkerboard Pattern */
.checkerboard {
    background-image: linear-gradient(45deg, #e5e7eb 25%, transparent 25%),
                      linear-gradient(-45deg, #e5e7eb 25%, transparent 25%),
                      linear-gradient(45deg, transparent 75%, #e5e7eb 75%),
                      linear-gradient(-45deg, transparent 75%, #e5e7eb 75%);
    background-size: 16px 16px;
    background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
}

.image-preview-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: none;
}

.preview-placeholder {
    color: #94a3b8;
    font-size: 13px;
}

.image-info {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-muted);
}

/* --- SETTINGS SECTION --- */
.settings-section {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 30px;
}

.section-heading {
    margin-bottom: 16px;
}

.section-kicker {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-heading h2 {
    font-size: 18px;
    margin: 4px 0 2px 0;
}

.section-heading p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
}

.setting-card label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-main);
}

.setting-card select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: #f8fafc;
    font-size: 14px;
    color: var(--text-main);
}

/* --- PROCESS SECTION & PROGRESS --- */
.process-section {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 30px;
}

.process-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.process-icon {
    font-size: 28px;
}

.process-content h2 {
    font-size: 16px;
    margin: 0 0 4px 0;
}

.process-content p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

.large-btn {
    padding: 12px 28px;
    font-size: 16px;
}

.progress-section {
    margin-top: 10px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 6px;
    color: var(--text-muted);
}

.progress-track {
    width: 100%;
    height: 6px;
    background: var(--border-light);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: var(--primary-color);
    transition: width 0.2s ease;
}

#progressMessage {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

/* --- RESULT SECTION --- */
.result-section {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 30px;
}

.result-success {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.success-icon {
    background: #dcfce7;
    color: #16a34a;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    flex-shrink: 0;
}

.result-success h2 {
    font-size: 16px;
    margin: 0 0 2px 0;
}

.result-success p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

.result-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.download-btn {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.secondary-btn {
    background: #f1f5f9;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.secondary-btn:hover {
    background: var(--border-light);
}

/* --- INFO & FEATURES --- */
.info-section, .features-section {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 30px;
}

.steps-grid, .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.info-card, .feature-card {
    background: #f8fafc;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

.info-number {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 13px;
}

.info-card h3, .feature-card h3 {
    font-size: 15px;
    margin: 6px 0 4px 0;
}

.info-card p, .feature-card p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

.feature-card span {
    font-size: 20px;
}

/* --- PRIVACY NOTE --- */
.privacy-note {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.privacy-icon {
    font-size: 22px;
}

.privacy-note h3 {
    font-size: 15px;
    margin: 0 0 4px 0;
}

.privacy-note p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}
