/* ===== Estilos para renderização Markdown da Análise IA ===== */

.analise-ia-content {
    color: #1e293b;
    font-size: 15px;
    line-height: 1.7;
    max-width: 100%;
    overflow-x: auto;
}

/* Headings */
.analise-ia-content h1 {
    font-size: 1.6em;
    font-weight: 700;
    color: #0f172a;
    margin: 28px 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
}

.analise-ia-content h2 {
    font-size: 1.3em;
    font-weight: 700;
    color: #1e293b;
    margin: 24px 0 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e2e8f0;
}

.analise-ia-content h3 {
    font-size: 1.1em;
    font-weight: 600;
    color: #334155;
    margin: 20px 0 8px;
}

.analise-ia-content h1:first-child,
.analise-ia-content h2:first-child,
.analise-ia-content h3:first-child {
    margin-top: 0;
}

/* Paragraphs */
.analise-ia-content p {
    margin: 0 0 12px;
}

/* Bold / Strong */
.analise-ia-content strong {
    font-weight: 700;
    color: #0f172a;
}

/* Horizontal rules */
.analise-ia-content hr {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 20px 0;
}

/* Lists */
.analise-ia-content ul,
.analise-ia-content ol {
    margin: 8px 0 16px 24px;
    padding: 0;
}

.analise-ia-content li {
    margin-bottom: 6px;
}

.analise-ia-content li > strong:first-child {
    color: #4338ca;
}

/* Tables */
.analise-ia-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 14px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.analise-ia-content thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.analise-ia-content thead th {
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    padding: 12px 14px;
    text-align: left;
    border: none;
}

.analise-ia-content tbody tr {
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.15s;
}

.analise-ia-content tbody tr:hover {
    background-color: #f8fafc;
}

.analise-ia-content tbody tr:last-child {
    border-bottom: none;
}

.analise-ia-content tbody td {
    padding: 10px 14px;
    color: #334155;
    border: none;
    vertical-align: top;
}

.analise-ia-content tbody tr:nth-child(even) {
    background-color: #fafbfc;
}

.analise-ia-content tbody tr:nth-child(even):hover {
    background-color: #f1f5f9;
}

/* Inline code */
.analise-ia-content code {
    background: #f1f5f9;
    color: #dc2626;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
    font-family: 'Courier New', monospace;
}

/* Code blocks */
.analise-ia-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 12px 0;
    font-size: 13px;
    line-height: 1.5;
}

.analise-ia-content pre code {
    background: none;
    color: inherit;
    padding: 0;
    font-size: inherit;
}

/* Blockquotes */
.analise-ia-content blockquote {
    border-left: 4px solid #667eea;
    padding: 12px 16px;
    margin: 16px 0;
    background: #f8fafc;
    color: #475569;
    border-radius: 0 6px 6px 0;
}

.analise-ia-content blockquote p:last-child {
    margin-bottom: 0;
}

/* Links */
.analise-ia-content a {
    color: #667eea;
    text-decoration: none;
}

.analise-ia-content a:hover {
    text-decoration: underline;
}
