/* =========================================================
   VerdantCart Carbon Reports — Backfill Admin Page
   File: admin/css/verdantcart-admin-backfill.css
   Scope: ONLY inside .wrap.gc-wrap.gc-backfill-wrap
   ========================================================= */

/* =========================
   Page wrapper
   ========================= */
.wrap.gc-wrap.gc-backfill-wrap {
    max-width: none;
}

/* =========================
   Cards
   ========================= */
.wrap.gc-wrap.gc-backfill-wrap .gc-card {
    background:
        radial-gradient(700px 220px at 0% 0%, rgba(240, 253, 244, 0.45), rgba(255, 255, 255, 0) 62%),
        #ffffff;
    border: 1px solid var(--gc-border);
    border-radius: 24px;
    padding: 28px 30px;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.075);
}

.wrap.gc-wrap.gc-backfill-wrap .gc-card+.gc-card {
    margin-top: 22px;
}

.wrap.gc-wrap.gc-backfill-wrap .gc-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.wrap.gc-wrap.gc-backfill-wrap .gc-card__title {
    margin: 0;
    color: #071126;
    font-size: 24px;
    line-height: 1.15;
    font-weight: 950;
    letter-spacing: -0.03em;
}

/* =========================
   What this does
   ========================= */
.wrap.gc-wrap.gc-backfill-wrap .gc-bullets {
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.wrap.gc-wrap.gc-backfill-wrap .gc-bullets li {
    position: relative;
    margin: 0 0 13px;
    padding-left: 28px;
    color: #334155;
    font-size: 16px;
    line-height: 1.6;
}

.wrap.gc-wrap.gc-backfill-wrap .gc-bullets li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 11px;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--gc-green);
    box-shadow: 0 0 0 5px rgba(22, 163, 74, 0.10);
}

/* =========================
   Callouts
   ========================= */
.wrap.gc-wrap.gc-backfill-wrap .gc-callout {
    margin-top: 22px;
    padding: 16px 18px;
    border: 1px solid var(--gc-border);
    border-radius: 18px;
    background: #f8fafc;
    color: #334155;
    font-size: 15px;
    line-height: 1.65;
}

.wrap.gc-wrap.gc-backfill-wrap .gc-callout--warning {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.wrap.gc-wrap.gc-backfill-wrap .gc-callout strong {
    font-weight: 950;
}

/* =========================
   Options
   ========================= */
.wrap.gc-wrap.gc-backfill-wrap .gc-options {
    margin-top: 22px;
    padding: 18px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #f8fafc;
}

.wrap.gc-wrap.gc-backfill-wrap .gc-check {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 0;
    color: #071126;
    font-size: 16px;
    line-height: 1.55;
    cursor: pointer;
    user-select: none;
}

.wrap.gc-wrap.gc-backfill-wrap .gc-check input {
    width: 20px;
    height: 20px;
    margin-top: 3px;
    accent-color: var(--gc-green);
}

.wrap.gc-wrap.gc-backfill-wrap .gc-check .gc-muted {
    color: #64748b;
    font-size: 14px;
}

/* =========================
   Actions
   ========================= */
.wrap.gc-wrap.gc-backfill-wrap .gc-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.wrap.gc-wrap.gc-backfill-wrap .gc-actions .gc-btn {
    min-height: 46px;
    padding: 12px 22px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 900;
}

.wrap.gc-wrap.gc-backfill-wrap .gc-actions .gc-btn--primary {
    background: linear-gradient(180deg, var(--gc-green) 0%, var(--gc-green-dark) 100%);
    border-color: var(--gc-green-dark);
    color: #ffffff;
    box-shadow: 0 14px 26px rgba(22, 163, 74, 0.22);
}

.wrap.gc-wrap.gc-backfill-wrap .gc-actions .gc-btn--primary:hover {
    box-shadow: 0 16px 30px rgba(22, 163, 74, 0.28);
}

.wrap.gc-wrap.gc-backfill-wrap .gc-actions .gc-btn:disabled,
.wrap.gc-wrap.gc-backfill-wrap .gc-actions .gc-btn[disabled] {
    background: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
    color: #94a3b8 !important;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* =========================
   Status panel
   ========================= */
.wrap.gc-wrap.gc-backfill-wrap #gcBackfillStatus {
    padding: 0;
}

.wrap.gc-wrap.gc-backfill-wrap .gc-status-box {
    min-height: 86px;
}

.wrap.gc-wrap.gc-backfill-wrap .gc-status-empty {
    padding: 26px;
    border: 1px dashed #cbd5e1;
    border-radius: 18px;
    background: #f8fafc;
    color: #64748b;
    font-size: 15px;
    line-height: 1.7;
    text-align: center;
}

.wrap.gc-wrap.gc-backfill-wrap .gc-status-ui {
    padding: 22px;
    border: 1px solid var(--gc-border);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.wrap.gc-wrap.gc-backfill-wrap .gc-status-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.wrap.gc-wrap.gc-backfill-wrap .gc-status-title {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.wrap.gc-wrap.gc-backfill-wrap .gc-status-title>strong {
    color: #071126;
    font-size: 17px;
    font-weight: 950;
}

.wrap.gc-wrap.gc-backfill-wrap .gc-status-meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    color: #64748b;
    font-size: 14px;
}

.wrap.gc-wrap.gc-backfill-wrap .gc-status-meta strong {
    color: #334155;
    font-weight: 950;
}

/* =========================
   Progress bar
   ========================= */
.wrap.gc-wrap.gc-backfill-wrap .gc-progress {
    margin: 18px 0 10px;
    height: 13px;
    overflow: hidden;
    border: 1px solid #dbe3ec;
    border-radius: 999px;
    background: #eef2f7;
}

.wrap.gc-wrap.gc-backfill-wrap .gc-progress__bar {
    width: 0%;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--gc-green), var(--gc-green-dark));
    transition: width 220ms ease;
}

.wrap.gc-wrap.gc-backfill-wrap .gc-progress__label {
    margin-bottom: 18px;
    color: #334155;
    font-size: 14px;
    line-height: 1.55;
}

/* =========================
   Stats
   ========================= */
.wrap.gc-wrap.gc-backfill-wrap .gc-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.wrap.gc-wrap.gc-backfill-wrap .gc-stat {
    padding: 18px 20px;
    border: 1px solid var(--gc-border);
    border-radius: 18px;
    background: #f8fafc;
}

.wrap.gc-wrap.gc-backfill-wrap .gc-stat__label {
    margin-bottom: 10px;
    color: #64748b;
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.wrap.gc-wrap.gc-backfill-wrap .gc-stat__value {
    color: #071126;
    font-size: 28px;
    font-weight: 950;
    line-height: 1.05;
}

/* =========================
   Status messages
   ========================= */
.wrap.gc-wrap.gc-backfill-wrap .gc-status-msg {
    margin-top: 18px;
    padding: 15px 17px;
    border: 1px solid #fde68a;
    border-radius: 18px;
    background: #fffbeb;
    color: #92400e;
    font-size: 14px;
    line-height: 1.6;
}

.wrap.gc-wrap.gc-backfill-wrap .gc-status-log {
    margin-top: 14px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

/* =========================
   Status badges
   ========================= */
.wrap.gc-wrap.gc-backfill-wrap .gc-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid var(--gc-border);
    border-radius: 999px;
    background: #f8fafc;
    color: #071126;
    font-size: 12px;
    font-weight: 950;
    line-height: 1;
    white-space: nowrap;
}

.wrap.gc-wrap.gc-backfill-wrap .gc-status-badge--ok {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #065f46;
}

.wrap.gc-wrap.gc-backfill-wrap .gc-status-badge--warn {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.wrap.gc-wrap.gc-backfill-wrap .gc-status-badge--err {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.wrap.gc-wrap.gc-backfill-wrap .gc-status-badge--info {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

/* =========================
   Small visual polish
   ========================= */
.wrap.gc-wrap.gc-backfill-wrap .gc-pill--warn {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
    font-weight: 950;
}

.wrap.gc-wrap.gc-backfill-wrap .gc-muted {
    color: #64748b;
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 960px) {
    .wrap.gc-wrap.gc-backfill-wrap .gc-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 782px) {
    .wrap.gc-wrap.gc-backfill-wrap .gc-card {
        padding: 20px;
        border-radius: 20px;
    }

    .wrap.gc-wrap.gc-backfill-wrap .gc-card__head {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .wrap.gc-wrap.gc-backfill-wrap .gc-card__title {
        font-size: 22px;
    }

    .wrap.gc-wrap.gc-backfill-wrap .gc-bullets li {
        font-size: 15px;
    }

    .wrap.gc-wrap.gc-backfill-wrap .gc-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .wrap.gc-wrap.gc-backfill-wrap .gc-actions .gc-btn {
        width: 100%;
    }

    .wrap.gc-wrap.gc-backfill-wrap .gc-stats {
        grid-template-columns: 1fr;
    }

    .wrap.gc-wrap.gc-backfill-wrap .gc-status-top {
        flex-direction: column;
    }

    .wrap.gc-wrap.gc-backfill-wrap .gc-status-meta {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 520px) {
    .wrap.gc-wrap.gc-backfill-wrap .gc-card {
        padding: 16px;
        border-radius: 18px;
    }

    .wrap.gc-wrap.gc-backfill-wrap .gc-callout,
    .wrap.gc-wrap.gc-backfill-wrap .gc-options,
    .wrap.gc-wrap.gc-backfill-wrap .gc-status-ui {
        padding: 15px;
        border-radius: 16px;
    }

    .wrap.gc-wrap.gc-backfill-wrap .gc-check {
        font-size: 14px;
    }

    .wrap.gc-wrap.gc-backfill-wrap .gc-stat__value {
        font-size: 26px;
    }
}