/* FAQ accordion transitions */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer.open {
    max-height: 500px;
}

/* Pricing toggle active state */
.toggle-btn.active {
    background-color: #1fa4d6;
    color: white;
}

/* Step wizard progress bar */
.step-indicator {
    transition: all 0.3s ease;
}

/* Sidebar active link */
.sidebar-link.active {
    background-color: #e0f2fe;
    color: #0369a1;
    border-left-color: #0284c7;
}

/* Table row hover for dashboard/admin */
.data-row:hover {
    background-color: #f0f9ff;
}

/* Status badges */
.status-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

/* AI Analysis collapse transition */
.ai-analysis-body {
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.2s ease-out;
    opacity: 1;
}
.ai-analysis-body.collapsed {
    max-height: 0 !important;
    opacity: 0;
}
.ai-analysis-toggle svg {
    transition: transform 0.2s ease;
}
.ai-analysis-toggle.collapsed svg {
    transform: rotate(-90deg);
}

/* AI Analysis prose overrides — tables, blockquotes, code, lists */
.ai-analysis-content h1,
.ai-analysis-content h2,
.ai-analysis-content h3 {
    margin-top: 1em;
    margin-bottom: 0.4em;
    font-weight: 700;
    line-height: 1.3;
    color: #111827;
}
.ai-analysis-content h1 { font-size: 1.15rem; }
.ai-analysis-content h2 { font-size: 1.05rem; }
.ai-analysis-content h3 { font-size: 0.95rem; }
.ai-analysis-content h1:first-child,
.ai-analysis-content h2:first-child,
.ai-analysis-content h3:first-child { margin-top: 0; }
.ai-analysis-content p {
    margin: 0.4em 0;
    line-height: 1.6;
}
.ai-analysis-content ul,
.ai-analysis-content ol {
    margin: 0.4em 0;
    padding-left: 1.5em;
}
.ai-analysis-content li {
    margin: 0.2em 0;
    line-height: 1.5;
}
.ai-analysis-content li > ul,
.ai-analysis-content li > ol {
    margin: 0.15em 0;
}
.ai-analysis-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.75em 0;
    font-size: 0.8125rem;
}
.ai-analysis-content th,
.ai-analysis-content td {
    border: 1px solid #e5e7eb;
    padding: 0.4rem 0.6rem;
    text-align: left;
}
.ai-analysis-content th {
    background: #f3f4f6;
    font-weight: 600;
    color: #374151;
}
.ai-analysis-content tr:nth-child(even) {
    background: #f9fafb;
}
.ai-analysis-content blockquote {
    border-left: 3px solid #d1d5db;
    padding: 0.3em 0.8em;
    margin: 0.5em 0;
    color: #4b5563;
    background: #f9fafb;
    border-radius: 0 0.25rem 0.25rem 0;
}
.ai-analysis-content code {
    background: #f3f4f6;
    padding: 0.15em 0.35em;
    border-radius: 0.25rem;
    font-size: 0.8125rem;
}
.ai-analysis-content pre {
    background: #1f2937;
    color: #e5e7eb;
    padding: 0.75em 1em;
    border-radius: 0.375rem;
    overflow-x: auto;
    margin: 0.5em 0;
}
.ai-analysis-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}
.ai-analysis-content hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 0.75em 0;
}
.ai-analysis-content strong {
    font-weight: 600;
    color: #111827;
}
