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

.hero-gradient {
    background: radial-gradient(circle at top center, rgba(59, 130, 246, 0.08) 0%, rgba(248, 250, 252, 1) 100%);
}

.mesh-bg {
    background-color: #F8FAFC;
    background-image:
        radial-gradient(at 0% 0%, hsla(217, 100%, 70%, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 0%, hsla(253, 100%, 70%, 0.15) 0px, transparent 50%);
}

.fade-bottom {
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

.pause-marquee:hover .animate-marquee {
    animation-play-state: paused;
}

/* Hide scrollbar for clean UI */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #E2E8F0;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #CBD5E1;
}

/* Line clamp utility */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Smooth chat panel transitions */
#chatSidebar {
    transition: opacity 0.25s ease-out, transform 0.25s ease-out;
}

/* Company row hover lift */
.company-item:hover {
    position: relative;
    z-index: 1;
}

/* Pagination active glow */
#pageNumbers button.bg-accent {
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.25);
}

/* Typing indicator animation */
@keyframes typingPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(0.85);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }
}

.typing-dot {
    animation: typingPulse 1.4s ease-in-out infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

/* Chat message entrance animation */
.chat-msg {
    animation: chatMsgIn 0.25s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.22s ease-out both;
}

@keyframes chatMsgIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* AI Markdown content styling (replaces prose which needs @tailwindcss/typography) */
.ai-markdown {
    color: #1e293b;
    line-height: 1.65;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.ai-markdown p {
    margin: 0.5em 0;
}

.ai-markdown p:first-child {
    margin-top: 0;
}

.ai-markdown p:last-child {
    margin-bottom: 0;
}

.ai-markdown h1,
.ai-markdown h2,
.ai-markdown h3,
.ai-markdown h4,
.ai-markdown h5,
.ai-markdown h6 {
    font-weight: 700;
    color: #0f172a;
    margin: 0.8em 0 0.4em;
}

.ai-markdown h1 {
    font-size: 1.1em;
}

.ai-markdown h2 {
    font-size: 1.05em;
}

.ai-markdown h3 {
    font-size: 1em;
}

.ai-markdown h4,
.ai-markdown h5,
.ai-markdown h6 {
    font-size: 0.95em;
}

.ai-markdown ul,
.ai-markdown ol {
    padding-left: 1.3em;
    margin: 0.5em 0;
}

.ai-markdown ul {
    list-style: disc;
}

.ai-markdown ol {
    list-style: decimal;
}

.ai-markdown ul ul {
    list-style: circle;
}

.ai-markdown ol ol,
.ai-markdown ul ol {
    list-style: lower-alpha;
}

.ai-markdown li {
    margin: 0.2em 0;
    display: list-item;
}

.ai-markdown code {
    font-size: 0.88em;
    background: #f1f5f9;
    color: #3B82F6;
    padding: 1px 5px;
    border-radius: 4px;
    font-family: 'Menlo', 'Consolas', monospace;
}

.ai-markdown pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 12px 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 0.6em 0;
    font-size: 0.85em;
    line-height: 1.5;
    white-space: pre;
}

.ai-markdown pre code {
    background: none;
    color: inherit;
    padding: 0;
}

.ai-markdown blockquote {
    border-left: 3px solid #3B82F6;
    padding-left: 12px;
    margin: 0.6em 0;
    color: #475569;
    font-style: italic;
}

.ai-markdown a {
    color: #3B82F6;
    text-decoration: underline;
}

.ai-markdown table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.6em 0;
    font-size: 0.9em;
    display: block;
    overflow-x: auto;
}

.ai-markdown th,
.ai-markdown td {
    border: 1px solid #e2e8f0;
    padding: 6px 10px;
    text-align: left;
}

.ai-markdown th {
    background: #f8fafc;
    font-weight: 600;
}

.ai-markdown strong {
    font-weight: 600;
    color: #0f172a;
}

.ai-markdown em {
    font-style: italic;
}

.ai-markdown hr {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 0.8em 0;
}

.selected-chat-lead {
    background: #eff6ff;
    box-shadow: inset 3px 0 0 #3B82F6;
}
