/* ═══════════════════════════════════════════════════════════
   AfroMarkt Platform — custom styles
   (Tailwind CDN handles the bulk; these are component-level styles)
   ═══════════════════════════════════════════════════════════ */

/* ── Sidebar links ──────────────────────────────────────── */
.sidebar-link {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    color: #9ca3af;
    transition: all 0.15s ease;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
}
.sidebar-link:hover {
    background: rgba(255,255,255,0.06);
    color: #e5e7eb;
}
.sidebar-link.active {
    background: rgba(255,255,255,0.1);
    color: #ffffff;
}

/* ── Status badges ──────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.badge-new        { background: #dbeafe; color: #1d4ed8; }
.badge-contacted  { background: #fef3c7; color: #b45309; }
.badge-interested { background: #d1fae5; color: #047857; }
.badge-client     { background: #c7d2fe; color: #4338ca; }
.badge-declined   { background: #fee2e2; color: #dc2626; }

/* ── Category badges ────────────────────────────────────── */
.cat-african  { background: #fef3c7; color: #92400e; }
.cat-turkish  { background: #fce7f3; color: #9d174d; }
.cat-arab     { background: #e0e7ff; color: #3730a3; }
.cat-asian    { background: #ccfbf1; color: #0f766e; }
.cat-indian   { background: #fef9c3; color: #854d0e; }
.cat-persian  { background: #ede9fe; color: #5b21b6; }
.cat-russian  { background: #dbeafe; color: #1e40af; }
.cat-polish   { background: #fee2e2; color: #991b1b; }
.cat-greek    { background: #e0f2fe; color: #075985; }
.cat-balkan   { background: #fce7f3; color: #be185d; }
.cat-latino   { background: #fef3c7; color: #a16207; }
.cat-oriental { background: #f5f3ff; color: #6d28d9; }
.cat-unknown  { background: #f3f4f6; color: #6b7280; }

/* ── Generation stepper ─────────────────────────────────── */
.step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.step-icon {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.5rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}
.step-label {
    transition: color 0.3s ease;
}

/* pending */
.step.pending .step-icon {
    background: #e5e7eb;
    color: #9ca3af;
}
.step.pending .check-icon  { display: none; }
.step.pending .step-label  { color: #9ca3af; }

/* active (currently running) */
.step.active .step-icon {
    background: #3b82f6;
    color: white;
    animation: stepPulse 1.5s infinite;
}
.step.active .check-icon  { display: none; }
.step.active .step-label  { color: #1d4ed8; font-weight: 500; }

/* done */
.step.done .step-icon {
    background: #10b981;
    color: white;
}
.step.done .check-icon  { display: block !important; }
.step.done .dot-icon    { display: none; }
.step.done .step-label  { color: #059669; }

/* error */
.step.error .step-icon {
    background: #ef4444;
    color: white;
}

@keyframes stepPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(59,130,246,0.5); }
    50%      { opacity: 0.8; box-shadow: 0 0 0 6px rgba(59,130,246,0); }
}

/* ── Chat bubbles ───────────────────────────────────────── */
.chat-msg {
    max-width: 85%;
    padding: 0.625rem 0.875rem;
    border-radius: 1rem;
    font-size: 0.8125rem;
    line-height: 1.5;
    word-break: break-word;
}
.chat-msg.user {
    align-self: flex-end;
    background: #3b82f6;
    color: white;
    border-bottom-right-radius: 0.25rem;
    margin-left: auto;
}
.chat-msg.ai {
    align-self: flex-start;
    background: #f3f4f6;
    color: #1f2937;
    border-bottom-left-radius: 0.25rem;
}
#chat-messages {
    display: flex;
    flex-direction: column;
}

/* ── Custom scrollbar ───────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #9ca3af; }
