body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
}

.glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

/* ── Chat Bubbles ─────────────────────────── */
.chat-bubble-user {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    border-radius: 16px 16px 0px 16px;
}

.chat-bubble-ai {
    background: white;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    border-radius: 16px 16px 16px 0px;
}

/* ── Quick Reply Buttons ──────────────────── */
.quick-reply-btn {
    border: 1.5px solid #93c5fd;
    color: #2563eb;
    background: white;
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 1px 3px rgba(37,99,235,0.1);
    white-space: nowrap;
}
.quick-reply-btn:hover {
    background: #eff6ff;
    border-color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(37,99,235,0.15);
}

/* ── Custom Scrollbar ─────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ── Animations ───────────────────────────── */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.pulsing-dot {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%   { transform: scale(1);    box-shadow: 0 0 0 0  rgba(37, 99, 235, 0.7); }
    50%  { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(37, 99, 235, 0); }
    100% { transform: scale(1);    box-shadow: 0 0 0 0  rgba(37, 99, 235, 0); }
}

/* ── Chat window open/close animation ────── */
#chat-window {
    transform-origin: bottom right;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
#chat-window.hidden {
    display: none !important;
}

/* ── Property Modal ───────────────────────── */
#property-modal {
    animation: fadeIn 0.15s ease;
}
.modal-inner {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* ── Input disabled state ────────────────── */
#chat-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ── Filter pills ─────────────────────────── */
.filter-pill {
    border: 1.5px solid #e2e8f0;
    color: #64748b;
    background: white;
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}
.filter-pill:hover,
.filter-pill.active {
    background: #2563eb;
    border-color: #2563eb;
    color: white;
}

/* ── KPI stat card ────────────────────────── */
.stat-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 20px 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s ease;
}
.stat-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
