/* ═══════════════════════════════════════════════
   AddToChat WP Admin — Modern Clean Aesthetic
   ═══════════════════════════════════════════════ */

.addtochat-wrap {
    max-width: 960px;
}

.addtochat-page-title {
    font-size: 24px;
    font-weight: 700;
    color: #0f1729;
    margin-bottom: 20px;
}

.addtochat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.addtochat-header h1 { margin-bottom: 0; }

/* ── Cards ── */
.addtochat-card {
    background: #fff;
    border: 1px solid #e2e5eb;
    border-radius: 10px;
    padding: 20px 24px;
    margin-top: 0;
    box-shadow: 0 1px 2px rgba(15, 23, 41, 0.04);
}
.addtochat-card h2 {
    margin-top: 0;
    font-size: 16px;
    font-weight: 600;
    color: #0f1729;
}

/* ── Stats grid ── */
.addtochat-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
@media (max-width: 960px) {
    .addtochat-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

.addtochat-stat-card {
    background: #fff;
    border: 1px solid #e2e5eb;
    border-radius: 10px;
    padding: 16px 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    box-shadow: 0 1px 2px rgba(15, 23, 41, 0.04);
}
.addtochat-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.addtochat-stat-icon .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}
.addtochat-stat-body {
    display: flex;
    flex-direction: column;
}
.addtochat-stat-label {
    font-size: 12px;
    font-weight: 500;
    color: #5c6478;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.addtochat-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #0f1729;
    line-height: 1.2;
    margin-top: 2px;
}
.addtochat-stat-sub {
    font-size: 12px;
    color: #8b92a5;
    margin-top: 2px;
}

/* ── Mini stats ── */
.addtochat-mini-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #5c6478;
}
.addtochat-divider {
    color: #d1d5db;
}

/* ── Progress bar ── */
.addtochat-progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e8ee;
    border-radius: 99px;
    overflow: hidden;
    margin-top: 8px;
}
.addtochat-progress-fill {
    height: 100%;
    border-radius: 99px;
    transition: width 0.5s ease;
}
.addtochat-progress-label {
    font-size: 13px;
    color: #5c6478;
    margin-top: 6px;
}

/* ── Tables ── */
.addtochat-table {
    border: none !important;
    border-collapse: collapse;
}
.addtochat-table thead th {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #8b92a5;
    padding: 10px 12px;
    border-bottom: 1px solid #e2e5eb;
}
.addtochat-table tbody td {
    padding: 10px 12px;
    font-size: 13px;
    color: #0f1729;
    border-bottom: 1px solid #f1f3f7;
}
.addtochat-table tbody tr:hover {
    background: #f8f9fb;
}

/* ── Badges ── */
.addtochat-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.6;
}
.addtochat-badge--active,
.addtochat-badge--purchased { background: #ecfdf5; color: #059669; }
.addtochat-badge--closed,
.addtochat-badge--inactive,
.addtochat-badge--one_time { background: #f1f3f7; color: #5c6478; }
.addtochat-badge--abandoned,
.addtochat-badge--cart_abandoned,
.addtochat-badge--cart_abandoner { background: #fffbeb; color: #d97706; }
.addtochat-badge--browsing,
.addtochat-badge--new { background: #eef2ff; color: #4f46e5; }
.addtochat-badge--store_redirect,
.addtochat-badge--vip { background: #f5f3ff; color: #7c3aed; }
.addtochat-badge--shipping { background: #eff6ff; color: #2563eb; }
.addtochat-badge--returns { background: #fffbeb; color: #d97706; }
.addtochat-badge--faq { background: #ecfdf5; color: #059669; }
.addtochat-badge--policy { background: #f5f3ff; color: #7c3aed; }
.addtochat-badge--brand { background: #eef2ff; color: #4f46e5; }
.addtochat-badge--sizing { background: #fdf2f8; color: #db2777; }
.addtochat-badge--warranty { background: #f1f3f7; color: #5c6478; }
.addtochat-badge--custom { background: #f1f3f7; color: #5c6478; }

/* ── Empty state ── */
.addtochat-empty {
    text-align: center;
    padding: 40px 20px;
}
.addtochat-empty p {
    color: #5c6478;
    margin: 8px 0 0;
}
.addtochat-empty .description {
    color: #8b92a5;
    font-size: 13px;
}

/* ── Status messages ── */
#addtochat-status, #atc-kb-status {
    margin-top: 10px;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    display: none;
}
.success {
    display: block !important;
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}
.error {
    display: block !important;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* ── Saved flash ── */
.addtochat-saved {
    color: #059669;
    font-weight: 500;
    font-size: 13px;
    margin-left: 10px;
}

/* ── Form tweaks ── */
.addtochat-card .form-table th {
    padding: 12px 10px 12px 0;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    width: 160px;
}
.addtochat-card .form-table td {
    padding: 12px 0;
}
