:root {
    --bm-primary: #0d6efd;
    --bm-accent:  #20c997;
    --bm-bg:      #f5f7fb;
}

body { background: var(--bm-bg); }

.phase-card {
    border: none;
    border-left: 5px solid var(--bm-primary);
    transition: transform .15s ease, box-shadow .15s ease;
}
.phase-card:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,.08); }

.phase-badge {
    display: inline-block;
    padding: 2px 10px;
    font-size: .75rem;
    border-radius: 999px;
    background: #e7f1ff;
    color: var(--bm-primary);
    font-weight: 600;
    letter-spacing: .03em;
}

/* Chat */
.chat-window {
    height: 60vh;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 18px;
}
.msg {
    max-width: 85%;
    margin-bottom: 14px;
    padding: 10px 14px;
    border-radius: 14px;
    white-space: pre-wrap;
    line-height: 1.45;
    word-wrap: break-word;
}
.msg.user      { background: #d1e7ff; margin-left: auto;  border-bottom-right-radius: 2px; }
.msg.assistant { background: #f1f3f5; margin-right: auto; border-bottom-left-radius: 2px; }
.msg .role {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    opacity: .65;
    display: block;
    margin-bottom: 4px;
}

.counter-pill {
    background: #fff3cd;
    color: #664d03;
    border-radius: 999px;
    padding: 4px 12px;
    font-weight: 600;
    font-size: .85rem;
}

.metric-card {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
    height: 100%;
}
.metric-value { font-size: 2rem; font-weight: 700; color: var(--bm-primary); }
.metric-label { color: #6c757d; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }

.chart-box {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

.estado-pendiente   { background:#fff3cd; color:#664d03; }
.estado-en_progreso { background:#cfe2ff; color:#084298; }
.estado-cumplido    { background:#d1e7dd; color:#0f5132; }
.estado-pill {
    border-radius: 999px;
    padding: 2px 10px;
    font-size: .78rem;
    font-weight: 600;
}

.typing { font-style: italic; color: #6c757d; }
