/**
 * CRM MEETING BRIEF CSS v1.0 — 2026-03-01
 * Panneau latéral de brief de réunion
 */

/* ── Slide-in panel ───────────────────────────────────────── */
.cmb-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(460px, 95vw);
    background: var(--bg-card, #1e1e2e);
    border-left: 1px solid var(--border, rgba(255,255,255,.1));
    z-index: 9100;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .25s cubic-bezier(.4,0,.2,1);
    box-shadow: -20px 0 60px rgba(0,0,0,.4);
}
.cmb-panel.cmb-visible {
    transform: translateX(0);
}

/* ── Inner scroll ─────────────────────────────────────────── */
.cmb-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

/* ── Header ───────────────────────────────────────────────── */
.cmb-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--border, rgba(255,255,255,.08));
    flex-shrink: 0;
}
.cmb-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary, #f1f5f9);
}
.cmb-close {
    background: none;
    border: none;
    color: var(--text-muted, #94a3b8);
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    transition: background .15s;
    line-height: 1;
}
.cmb-close:hover {
    background: rgba(255,255,255,.08);
    color: var(--text-primary, #f1f5f9);
}

/* ── Topic input ──────────────────────────────────────────── */
.cmb-topic {
    margin: 16px 20px 0;
    background: var(--bg-input, rgba(255,255,255,.05));
    border: 1px solid var(--border, rgba(255,255,255,.1));
    border-radius: 10px;
    color: var(--text-primary, #f1f5f9);
    font-size: 13.5px;
    padding: 10px 14px;
    font-family: inherit;
    outline: none;
    transition: border-color .15s;
    flex-shrink: 0;
}
.cmb-topic:focus { border-color: var(--accent, #8b5cf6); }
.cmb-topic::placeholder { color: var(--text-muted, #64748b); }

/* ── Generate btn ─────────────────────────────────────────── */
.cmb-generate-btn {
    margin: 12px 20px;
    padding: 11px 16px;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .15s;
    font-family: inherit;
    flex-shrink: 0;
}
.cmb-generate-btn:hover { opacity: .88; }
.cmb-generate-btn:disabled { opacity: .5; cursor: not-allowed; }

/* ── Content scroll ───────────────────────────────────────── */
.cmb-content {
    flex: 1;
    overflow-y: auto;
    padding: 0 20px 24px;
}

/* ── Loading ──────────────────────────────────────────────── */
.cmb-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px 0;
    color: var(--text-muted, #94a3b8);
    font-size: 14px;
}
.cmb-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(139,92,246,.2);
    border-top-color: #8b5cf6;
    border-radius: 50%;
    animation: cmb-spin .7s linear infinite;
}
@keyframes cmb-spin { to { transform: rotate(360deg); } }

/* ── Error ────────────────────────────────────────────────── */
.cmb-error {
    color: #ef4444;
    font-size: 13px;
    text-align: center;
    padding: 20px 0;
}

/* ── Brief ────────────────────────────────────────────────── */
.cmb-brief {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 4px;
}

/* ── Section ──────────────────────────────────────────────── */
.cmb-section {
    background: rgba(255,255,255,.03);
    border: 1px solid var(--border, rgba(255,255,255,.07));
    border-radius: 12px;
    padding: 14px 16px;
}
.cmb-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted, #94a3b8);
    margin-bottom: 8px;
}
.cmb-text {
    font-size: 13.5px;
    color: var(--text-primary, #e2e8f0);
    line-height: 1.6;
    margin: 0;
}
.cmb-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.cmb-list li {
    font-size: 13.5px;
    color: var(--text-primary, #e2e8f0);
    padding-left: 16px;
    position: relative;
    line-height: 1.5;
}
.cmb-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent, #8b5cf6);
}
.cmb-talking li::before { color: #22c55e; }
.cmb-risks li::before { color: #f97316; }

/* ── Action recommandée ───────────────────────────────────── */
.cmb-action {
    background: rgba(139,92,246,.08);
    border: 1px solid rgba(139,92,246,.2);
    border-radius: 12px;
    padding: 14px 16px;
}
.cmb-action-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #8b5cf6;
    display: block;
    margin-bottom: 6px;
}
.cmb-action-text {
    font-size: 13.5px;
    color: var(--text-primary, #e2e8f0);
    line-height: 1.5;
    margin: 0;
    font-weight: 500;
}

/* ── Ton conseillé ────────────────────────────────────────── */
.cmb-tone {
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    padding: 8px;
    border-radius: 8px;
    background: rgba(255,255,255,.04);
    text-transform: capitalize;
}

/* ── Inject button in CRM contact view ───────────────────── */
.cmb-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .15s, transform .12s;
    font-family: inherit;
    margin-top: 8px;
}
.cmb-btn:hover { opacity: .88; transform: translateY(-1px); }
