/**
 * AI Voice CRM - Core Application Stylesheet
 */
[x-cloak] {
    display: none !important;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

code, pre, .font-mono {
    font-family: 'JetBrains Mono', monospace;
}

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

/* Micro-animations */
@keyframes wave {
    0%, 100% { height: 8px; }
    50% { height: 28px; }
}
.animate-wave {
    animation: wave 1.2s ease-in-out infinite;
}

@keyframes pulseSlow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.98); }
}
.animate-pulse-slow {
    animation: pulseSlow 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/*
 * Rendered-Markdown styling for AI-generated documents (Minutes of Meeting, complaint
 * summaries).
 *
 * WHY THIS IS HAND-WRITTEN: these documents are rendered from Markdown into `##`/`-`/`**`
 * HTML, but the app loads Tailwind from the CDN build, which does NOT include the typography
 * plugin — so the `prose` classes the markup already carried did nothing at all. A MOM read
 * as one undifferentiated wall of text with headings indistinguishable from body copy and
 * bullets with no markers. These rules are the plugin's job, done locally.
 */
.mom-content {
    font-size: 0.8125rem;
    line-height: 1.7;
    color: #334155;
    word-break: break-word;
}
.mom-content > :first-child { margin-top: 0; }
.mom-content h1,
.mom-content h2,
.mom-content h3,
.mom-content h4 {
    color: #0f172a;
    font-weight: 700;
    line-height: 1.35;
    margin: 1.35em 0 0.5em;
}
.mom-content h1 { font-size: 1.15rem; }
.mom-content h2 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid #e2e8f0;
}
.mom-content h3 { font-size: 0.875rem; }
.mom-content h4 { font-size: 0.8125rem; }
.mom-content p { margin: 0.6em 0; }
.mom-content strong { color: #0f172a; font-weight: 700; }
.mom-content em { font-style: italic; }
.mom-content ul,
.mom-content ol { margin: 0.55em 0 0.9em; padding-left: 1.35rem; }
.mom-content ul { list-style: disc; }
.mom-content ol { list-style: decimal; }
.mom-content li { margin: 0.22em 0; }
.mom-content li > ul,
.mom-content li > ol { margin: 0.22em 0; }
/* Markdown often wraps lines in <p>; a list item's own paragraph must not double-space. */
.mom-content li > p { margin: 0; }
.mom-content a { color: #0369a1; text-decoration: underline; }
.mom-content code {
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.78em;
    background: #f1f5f9;
    padding: 0.12em 0.35em;
    border-radius: 0.3rem;
}
.mom-content pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 0.75rem 0.9rem;
    border-radius: 0.6rem;
    overflow-x: auto;
    margin: 0.75em 0;
}
.mom-content pre code { background: transparent; padding: 0; color: inherit; }
.mom-content blockquote {
    border-left: 3px solid #fdba74;
    background: #fff7ed;
    padding: 0.4rem 0.8rem;
    margin: 0.7em 0;
    color: #7c2d12;
}
.mom-content hr { border: 0; border-top: 1px solid #e2e8f0; margin: 1.1em 0; }
.mom-content table { width: 100%; border-collapse: collapse; margin: 0.75em 0; font-size: 0.78rem; }
.mom-content th,
.mom-content td { border: 1px solid #e2e8f0; padding: 0.4rem 0.55rem; text-align: left; }
.mom-content th { background: #f8fafc; font-weight: 700; color: #0f172a; }
