@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

:root {
    --import-bg: #f4f7fb;
    --import-text: #0f172a;
    --import-muted: #475569;
    --import-card: #ffffff;
    --import-border: #dbe4ef;
    --import-primary: #0f766e;
    --import-primary-dark: #0d5f58;
    --import-accent: #f97316;
}

.import-link-shell {
    display: grid;
    gap: 1rem;
    font-family: 'IBM Plex Sans', sans-serif;
    color: var(--import-text);
}

.import-hero {
    background:
        radial-gradient(circle at 90% 10%, rgba(249, 115, 22, 0.2) 0%, rgba(249, 115, 22, 0) 44%),
        linear-gradient(120deg, #022c22 0%, #0f766e 56%, #115e59 100%);
    color: #f8fafc;
    border-radius: 18px;
    padding: 1.2rem;
    border: 1px solid rgba(148, 163, 184, 0.24);
    box-shadow: 0 18px 34px rgba(2, 44, 34, 0.24);
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 1rem;
}

.import-kicker {
    display: inline-block;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    padding: 0.25rem 0.6rem;
    margin-bottom: 0.45rem;
}

.import-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    line-height: 1.08;
    margin: 0 0 0.55rem;
}

.import-subtitle,
.import-support-line {
    margin: 0;
    color: rgba(241, 245, 249, 0.95);
}

.import-support-line {
    margin-top: 0.45rem;
    font-size: 0.95rem;
}

.import-hero-card {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 14px;
    padding: 0.95rem;
    align-self: center;
}

.metric-head {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.metric-row {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.92rem;
    margin-bottom: 0.35rem;
}

.metric-note {
    margin-top: 0.45rem;
    color: rgba(241, 245, 249, 0.88);
    font-size: 0.82rem;
}

.import-input-card,
.preview-section {
    background: var(--import-card);
    border: 1px solid var(--import-border);
    border-radius: 16px;
    padding: 1.1rem;
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.08);
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

.section-sub {
    margin: 0;
    color: var(--import-muted);
}

.import-input-row {
    display: flex;
    gap: 0.6rem;
    align-items: stretch;
}

.import-meta-row {
    margin-top: 0.65rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.meta-pill {
    font-size: 0.8rem;
    border: 1px solid #c5d4e8;
    border-radius: 999px;
    padding: 0.22rem 0.6rem;
    color: #334155;
    background: #f8fbff;
}

.source-detected {
    margin-top: 0.6rem;
    font-weight: 600;
    font-size: 0.92rem;
    color: #0f172a;
}

.import-toggle-check {
    margin-top: 0.75rem;
}

.import-toggle-check .form-check-input {
    margin-top: 0.22rem;
}

.import-toggle-check .form-check-label {
    font-weight: 600;
}

.import-toggle-help {
    margin-top: 0.3rem;
    color: #475569;
    font-size: 0.86rem;
}

.source-detected.source-drive {
    color: #1d4ed8;
}

.source-detected.source-dropbox {
    color: #0369a1;
}

.source-detected.source-unsupported {
    color: #b45309;
}

.import-progress {
    margin-top: 0.7rem;
    border: 1px solid #d6deea;
    border-radius: 10px;
    padding: 0.55rem 0.6rem;
    background: linear-gradient(90deg, #0f766e 0%, #115e59 100%);
}

.import-progress-head {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: #f8fafc;
    margin-bottom: 0.35rem;
}

.import-progress-track {
    height: 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    overflow: hidden;
}

.import-progress-bar {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.65) inset;
    transition: width 240ms ease;
}

.import-feedback {
    margin-top: 0.85rem;
}

.preview-head {
    display: flex;
    justify-content: space-between;
    gap: 0.7rem;
    align-items: flex-start;
    margin-bottom: 0.7rem;
}

.preview-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.summary-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.8rem;
}

.summary-pill {
    border: 1px solid #c8d8ea;
    border-radius: 999px;
    padding: 0.22rem 0.62rem;
    background: #f8fbff;
    color: #0f172a;
    font-size: 0.8rem;
}

.sku-preview-wrap {
    display: grid;
    gap: 0.7rem;
}

.sku-card {
    border: 1px solid #d4dfed;
    border-radius: 12px;
    background: #fdfefe;
}

.sku-head {
    border-bottom: 1px solid #e2e8f0;
    padding: 0.65rem 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.45rem;
}

.sku-label {
    font-weight: 700;
}

.sku-count {
    font-size: 0.8rem;
    color: #334155;
}

.sku-images {
    padding: 0.7rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.55rem;
}

.sku-thumb {
    border: 1px solid #d7e1ee;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
    cursor: move;
}

.sku-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #e2e8f0;
}

.sku-file {
    display: block;
    font-size: 0.74rem;
    padding: 0.38rem;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.warning-card {
    margin-top: 0.9rem;
    border: 1px solid #f1d5bd;
    background: #fffaf6;
    border-radius: 10px;
    padding: 0.75rem;
    color: #7c2d12;
    font-size: 0.9rem;
}

.cta-card {
    margin-top: 0.8rem;
    border: 1px solid #dce9d9;
    background: #f8fdf7;
    border-radius: 10px;
    padding: 0.75rem;
    display: flex;
    justify-content: space-between;
    gap: 0.6rem;
    align-items: center;
}

.import-loading {
    opacity: 0.72;
    pointer-events: none;
}

.btn-primary {
    background: var(--import-primary);
    border-color: var(--import-primary);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--import-primary-dark);
    border-color: var(--import-primary-dark);
}

@media (max-width: 991.98px) {
    .import-hero {
        grid-template-columns: 1fr;
    }

    .import-title {
        font-size: 1.65rem;
    }

    .import-input-row {
        flex-direction: column;
    }

    .preview-head,
    .cta-card {
        flex-direction: column;
        align-items: stretch;
    }
}
