
.kcp-tracker { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; background:#f9f9f9; padding:20px; border-radius:8px;}
.kcp-stage { display: flex; flex-direction: column; align-items: center; z-index: 2; position: relative;}
.kcp-circle { width: 35px; height: 35px; border-radius: 50%; background: #e0e0e0; color: #666; display: flex; align-items: center; justify-content: center; font-weight: bold; margin-bottom: 8px; border: 3px solid #fff; transition: all 0.3s ease;}
.kcp-line { flex-grow: 1; height: 4px; background: #e0e0e0; margin: 0 -10px; position: relative; top: -12px; transition: all 0.3s ease;}
.kcp-stage.active .kcp-circle { background: #007cba; color: #fff; border-color:#005a87; box-shadow: 0 0 10px rgba(0,124,186,0.5);}
.kcp-stage.active span { font-weight: bold; color: #007cba;}
.kcp-stage.completed .kcp-circle { background: #46b450; color: #fff; border-color:#fff;}
.kcp-line.completed { background: #46b450; }

.kcp-upsell-notice { background: #fff3cd; border-left: 5px solid #ffeeba; padding: 15px; margin-bottom: 25px; border-radius: 4px;}
.kcp-box { background: #fff; border: 1px solid #ddd; padding: 20px; border-radius: 8px; margin-bottom: 20px; box-shadow: 0 2px 4px rgba(0,0,0,0.05);}
.kcp-success-box { background: #d4edda; border-left: 4px solid #28a745; padding: 15px; border-radius: 4px;}

.kcp-history-table { width: 100%; border-collapse: collapse; margin-top: 10px; background: #fff; text-align: left; }
.kcp-history-table thead th { background: #f1f1f1; padding: 12px 15px; font-weight: bold; border-bottom: 2px solid #ddd; color: #333; }
.kcp-history-table tbody td { padding: 12px 15px; border-bottom: 1px solid #eee; vertical-align: middle; }
.kcp-history-table tbody tr:hover { background: #fafafa; }

/* Stats Dashboard Grids */
.kcp-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin-top: 15px; }
.kcp-stat-card { background: #fff; padding: 20px; border: 1px solid #ddd; border-radius: 8px; border-left: 4px solid #007cba; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.kcp-stat-card h4 { margin: 0 0 10px 0; color: #666; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; }
.kcp-stat-card .kcp-stat-value { font-size: 28px; font-weight: bold; color: #333; margin: 0; }
.kcp-stat-card.stage-2 { border-left-color: #ffb900; }
.kcp-stat-card.stage-3 { border-left-color: #0073aa; }
.kcp-stat-card.stage-4 { border-left-color: #46b450; }
.kcp-stat-card.earnings { border-left-color: #8224e3; }

/* Live Chat UI Styles */
.kcp-chat-container {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    padding: 14px;
    min-height: 180px;
    max-height: 380px;
    overflow-y: auto;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-behavior: smooth;
}
.kcp-chat-msg { display: flex; flex-direction: column; max-width: 78%; }
.kcp-chat-mine { align-self: flex-end; align-items: flex-end; }
.kcp-chat-theirs { align-self: flex-start; align-items: flex-start; }
.kcp-chat-label { font-size: 11px; font-weight: 600; color: #888; margin-bottom: 3px; letter-spacing: 0.3px; }
.kcp-chat-mine .kcp-chat-label { color: #5a9fd4; }
.kcp-chat-theirs .kcp-chat-label { color: #777; }
.kcp-chat-msg p {
    margin: 0;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
}
.kcp-chat-mine p { background: #007cba; color: #fff; border-bottom-right-radius: 4px; }
.kcp-chat-theirs p { background: #fff; color: #333; border: 1px solid #e0e0e0; border-bottom-left-radius: 4px; }
.kcp-chat-time { font-size: 11px; color: #aaa; margin-top: 4px; }
.kcp-no-chat { color: #aaa; font-size: 13px; text-align: center; margin: auto 0; font-style: italic; }

/* Chat input area */
.kcp-chat-input-row { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.kcp-chat-textarea {
    width: 100%;
    min-height: 72px;
    resize: vertical;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.5;
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color 0.2s;
}
.kcp-chat-textarea:focus { outline: none; border-color: #007cba; box-shadow: 0 0 0 2px rgba(0,124,186,0.12); }
.kcp-chat-send-btn { align-self: flex-end; padding: 7px 22px !important; }

/* Chat status notices */
.kcp-chat-notice {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    padding: 12px 14px;
    border-radius: 6px;
    margin-top: 10px;
    line-height: 1.5;
}
.kcp-chat-pending { background: #eef6fb; border: 1px solid #b8d9ef; color: #2c6e9e; }
.kcp-chat-paused  { background: #fdf3e7; border: 1px solid #f0d09a; color: #8a6020; }

/* SVG Spinning Refresh Icon */
.kcp-refresh-icon { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; color: #555; transition: color 0.2s ease; cursor: pointer; }
.kcp-refresh-icon:hover { color: #007cba; }
.kcp-spin svg { animation: kcp-spin-anim 0.8s linear infinite; }
.kcp-spin { pointer-events: none; opacity: 0.5; }
@keyframes kcp-spin-anim { 100% { transform: rotate(360deg); } }

/* Submission History Filter Form */
.kcp-filter-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 15px; }
.kcp-filter-dates { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.kcp-filter-date-group { display: flex; flex-direction: column; gap: 3px; }
.kcp-date-input {
    height: 38px;
    min-width: 150px;
    padding: 0 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    color: #333;
    background-color: #fff;
    -webkit-appearance: none;
    appearance: none;
}
.kcp-filter-actions { display: flex; gap: 8px; align-items: center; }

@media (max-width: 600px) {
    .kcp-filter-form { flex-direction: column; align-items: stretch; gap: 12px; }
    .kcp-filter-dates { flex-direction: column; align-items: stretch; gap: 12px; }
    .kcp-filter-date-group { width: 100%; }
    .kcp-date-input {
        width: 100%;
        min-width: unset;
        height: 52px;
        font-size: 16px;
        padding: 0 12px;
        display: block;
        line-height: 52px;
    }
    .kcp-filter-actions { width: 100%; margin-top: 16px; }
    .kcp-filter-actions .button { flex: 1; text-align: center; padding: 10px; height: 44px; line-height: 44px; font-size: 15px; }
}

/* Admin Multi-Step Wizard Styles */
.kcp-admin-stepper { display: flex; gap: 10px; margin-bottom: 20px; border-bottom: 2px solid #eee; padding-bottom: 15px; }
.kcp-admin-stepper .step { padding: 10px 20px; background: #e0e0e0; border-radius: 20px; color: #555; font-weight: bold; cursor: pointer; transition: 0.3s; font-size: 14px; }
.kcp-admin-stepper .step:hover { background: #d0d0d0; }
.kcp-admin-stepper .step.active { background: #007cba; color: #fff; box-shadow: 0 2px 5px rgba(0,124,186,0.3); }
