/* ──────────────────────────────────────────────
   Property Doctor – new-style.css
   ────────────────────────────────────────────── */

/* === Base Reset === */
body {
    background-color: #f6f7f5;
    margin: 0;
}


/* === Material Symbols tweaks === */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

.material-symbols-outlined.filled {
    font-variation-settings: 'FILL' 1;
}

/* === Scrollbar (Webkit) === */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* === Chat Bubbles === */
.msg-row {
    display: flex;
    gap: 12px;
    max-width: 85%;
    animation: fadeSlideUp 0.3s ease forwards;
}

.msg-row.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.msg-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.msg-avatar.bot {
    background: linear-gradient(135deg, #37a544 0%, #8fc723 100%);
}

.msg-avatar.user {
    background: linear-gradient(135deg, #2563eb 0%, #60a5fa 100%);
}

.msg-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.msg-meta {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.msg-meta .sender {
    font-weight: 700;
    font-size: 13px;
    color: #1f2937;
}

.msg-meta .time {
    font-size: 11px;
    color: #9ca3af;
}

.msg-bubble {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.6;
    word-break: break-word;
}

.msg-bubble.bot {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-top-left-radius: 2px;
    color: #374151;
}

.msg-bubble.user {
    background: #37a544;
    color: #ffffff;
    border-top-right-radius: 2px;
}

.msg-bubble img.chat-image {
    max-width: 280px;
    border-radius: 8px;
    margin-top: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* Markdown inside bot bubbles */
.msg-bubble.bot h1,
.msg-bubble.bot h2,
.msg-bubble.bot h3 {
    margin: 8px 0 4px;
    font-weight: 700;
    font-size: 12px;
}

.msg-bubble.bot ul {
    list-style-type: disc;
    padding-left: 24px;
    margin: 6px 0;
}

.msg-bubble.bot ol {
    list-style-type: decimal;
    padding-left: 24px;
    margin: 6px 0;
}

.msg-bubble.bot ul ul,
.msg-bubble.bot ol ul {
    list-style-type: circle;
}

.msg-bubble.bot li {
    margin-bottom: 2px;
}

.msg-bubble.bot p {
    margin: 4px 0;
}

.msg-bubble.bot code {
    background: #f3f4f6;
    border-radius: 4px;
    padding: 1px 5px;
    font-size: 13px;
}

.msg-bubble.bot pre {
    background: #1f2937;
    color: #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    overflow-x: auto;
    margin: 8px 0;
}

.msg-bubble.bot pre code {
    background: none;
    color: inherit;
    padding: 0;
}

/* === Typing indicator === */
.typing-dots {
    display: flex;
    gap: 5px;
    padding: 4px 0;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    background: #9ca3af;
    border-radius: 50%;
    animation: typingBounce 1.4s infinite;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {

    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.4;
    }

    30% {
        transform: translateY(-6px);
        opacity: 1;
    }
}

/* === Slide-up animation for image preview === */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up {
    animation: fadeSlideUp 0.25s ease;
}

/* === Empty state fade === */
#empty-state {
    transition: opacity 0.3s ease;
}

#empty-state.hidden-state {
    opacity: 0;
    pointer-events: none;
}

/* === Filter counter pill === */
#filter-counter {
    transition: background-color 0.2s, color 0.2s;
}

/* === Context banner update indicator === */
#context-description {
    transition: color 0.2s;
}

/* === Topic Chips Row === */
.no-scrollbar {
    scrollbar-width: none;       /* Firefox */
    -ms-overflow-style: none;    /* IE 10+ */
}
.no-scrollbar::-webkit-scrollbar {
    display: none;               /* Chrome/Safari */
}

.topic-chip {
    transition: background-color 0.15s, color 0.15s, transform 0.1s;
}

.topic-chip.scale-95 {
    transform: scale(0.95);
}