/* BlogReach v16.1 — Complete Pipeline + UI Styles */

/* ═══ PIPELINE: Topbar ═══ */
.pipe-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.pipe-title { font-size: 22px; font-weight: 700; color: var(--text-primary); margin: 0; }
.pipe-subtitle { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.pipe-stats-bar {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 6px 4px;
}
.pipe-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2px 14px;
}
.pipe-stat-val { font-size: 16px; font-weight: 700; font-family: var(--font-mono); }
.pipe-stat-lbl { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; }
.pipe-stat-divider { width: 1px; height: 28px; background: var(--border); }

/* ═══ PIPELINE: Queue & Reminder Banners ═══ */
.pipe-queue-banner {
    background: rgba(245,158,11,.04);
    border: 1px solid rgba(245,158,11,.15);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 16px;
}
.pipe-queue-icon {
    width: 36px; height: 36px; border-radius: 8px;
    background: rgba(245,158,11,.1); display: flex;
    align-items: center; justify-content: center; font-size: 18px;
}

.pipe-remind-banner {
    background: rgba(239,68,68,.04);
    border: 1px solid rgba(239,68,68,.12);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 16px;
}
.pipe-remind-list { display: flex; flex-wrap: wrap; gap: 6px; }
.pipe-remind-item {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 10px; border-radius: 6px;
    background: rgba(255,255,255,.04); border: 1px solid var(--border);
    font-size: 12px;
}

/* ═══ PIPELINE: Kanban Board ═══ */
.pipe-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    align-items: start;
    min-height: 500px;
}

.pipe-col {
    background: rgba(255,255,255,.015);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    min-height: 300px;
}

.pipe-col-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    position: sticky;
    top: 0;
    background: rgba(20,20,20,.95);
    border-radius: 10px 10px 0 0;
    z-index: 1;
}

.pipe-col-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.pipe-col-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

.pipe-col-count {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    background: rgba(255,255,255,.08);
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

.pipe-col-body {
    padding: 8px;
    flex: 1;
    overflow-y: auto;
    max-height: calc(100vh - 280px);
}

.pipe-col-body::-webkit-scrollbar { width: 4px; }
.pipe-col-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 4px; }

.pipe-empty {
    padding: 30px 12px;
    text-align: center;
    font-size: 12px;
    color: var(--text-dim);
}

/* ═══ PIPELINE: Cards ═══ */
.pipe-card {
    padding: 12px;
    margin-bottom: 6px;
    border-radius: 8px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.06);
    cursor: pointer;
    transition: all .15s ease;
}
.pipe-card:hover {
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.12);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

.pipe-card-top {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 8px;
}

.pipe-card-avatar {
    width: 32px; height: 32px;
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700;
    flex-shrink: 0;
}

.pipe-card-info { flex: 1; min-width: 0; }

.pipe-card-domain {
    font-size: 13px; font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.pipe-card-email {
    font-size: 11px; color: #10B981;
    font-family: var(--font-mono);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    margin-top: 2px;
}
.pipe-card-extra {
    color: var(--text-dim);
    margin-left: 4px;
    font-size: 10px;
}

.pipe-card-form {
    font-size: 11px; color: #3B82F6; margin-top: 2px;
}
.pipe-card-none {
    font-size: 11px; color: var(--text-dim); margin-top: 2px;
}

.pipe-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,.04);
}

.pipe-card-actions {
    display: flex;
    gap: 4px;
    align-items: center;
}

.pipe-card-btn {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: all .12s ease;
}
.pipe-card-btn-blue {
    background: rgba(59,130,246,.15);
    color: #3B82F6;
}
.pipe-card-btn-blue:hover { background: rgba(59,130,246,.25); }

.pipe-card-btn-green {
    background: rgba(16,185,129,.15);
    color: #10B981;
}
.pipe-card-btn-green:hover { background: rgba(16,185,129,.25); }

.pipe-card-act {
    font-size: 10px;
    color: var(--text-dim);
    background: none;
    border: 1px solid transparent;
    padding: 3px 6px;
    border-radius: 4px;
    cursor: pointer;
    transition: all .12s ease;
}
.pipe-card-act:hover {
    color: var(--text-secondary);
    border-color: var(--border);
    background: rgba(255,255,255,.04);
}

.pipe-card-time {
    font-size: 10px;
    color: var(--text-dim);
}

/* ═══ MODAL ═══ */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,.6); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    z-index: 1000; animation: fadeIn .2s ease;
}
.modal {
    background: var(--bg-primary); border: 1px solid var(--border);
    border-radius: 16px; padding: 24px; width: 90%;
    max-height: 90vh; overflow-y: auto; animation: slideUp .25s ease;
}
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px) } to { opacity: 1; transform: translateY(0) } }

/* ═══ BUTTONS ═══ */
.btn-blue { background: rgba(59,130,246,.15); color: #3B82F6; border: 1px solid rgba(59,130,246,.25); }
.btn-blue:hover { background: rgba(59,130,246,.25); }
.btn-icon {
    width: 28px; height: 28px; padding: 0;
    display: inline-flex; align-items: center; justify-content: center; border-radius: 6px;
}

/* ═══ TABLE OVERFLOW ═══ */
.table-header span, .table-row > div {
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1100px) {
    .pipe-board { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
    .pipe-board { grid-template-columns: 1fr; }
    .pipe-topbar { flex-direction: column; gap: 12px; align-items: flex-start; }
    .modal { width: 95%; padding: 16px; }
}
