:root {
    --sidebar-bg: #0f172a;
    --sidebar-hover: #1e293b;
    --accent: #3b82f6;
    --bg-main: #f1f5f9;
}

body {
    background-color: var(--bg-main);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #0f172a;
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: var(--sidebar-bg);
    color: #e2e8f0;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    padding: 1.25rem 0.9rem;
}

.sidebar .brand {
    font-weight: 700;
    font-size: 1.15rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0 0.5rem 1rem 0.5rem;
    border-bottom: 1px solid #1e293b;
    margin-bottom: 1rem;
}

.sidebar .nav-link {
    color: #cbd5e1;
    border-radius: 0.55rem;
    padding: 0.65rem 0.85rem;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.93rem;
    transition: background 0.15s, color 0.15s;
}

.sidebar .nav-link:hover {
    background: var(--sidebar-hover);
    color: #fff;
}

.sidebar .nav-link.active {
    background: var(--accent);
    color: #fff;
    font-weight: 600;
}

.main-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.topbar {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.content-body {
    padding: 1.5rem;
    flex: 1;
}

.card {
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.chat-box {
    height: 400px;
    overflow-y: auto;
    background: #efeae2;
    border-radius: 0.75rem;
    padding: 1rem;
}

.msg-bubble {
    max-width: 80%;
    padding: 0.65rem 0.9rem;
    border-radius: 0.75rem;
    margin-bottom: 0.6rem;
    white-space: pre-wrap;
    font-size: 0.92rem;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
}

.msg-prospect {
    background: #ffffff;
    align-self: flex-start;
    border-top-left-radius: 0.15rem;
}

.msg-outgoing {
    background: #d9fdd3;
    align-self: flex-end;
    margin-left: auto;
    border-top-right-radius: 0.15rem;
}

.pre-wrap {
    white-space: pre-wrap;
    font-family: inherit;
    font-size: 0.92rem;
}

.funnel-step {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.65rem;
    padding: 0.85rem;
    text-align: center;
}
