/* ============================================
   AI RESUMEN - Estilos complementarios a mvc-components
   ============================================ */

/* Header con flexbox */
.ai-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px !important;
    font-size: 13px !important;
}

.ai-header-actions {
    display: flex;
    gap: 8px;
}

.ai-header-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    opacity: 0.8;
}

.ai-header-btn:hover {
    opacity: 1;
    background: rgba(255,255,255,0.2);
}

/* Content wrapper para fade */
.ai-content-wrapper {
    position: relative;
}

/* Body colapsable */
.ai-body {
    padding: 12px 16px !important;
    font-size: 13px;
    line-height: 1.5;
    text-align: left;
}

.ai-body.collapsed {
    max-height: 100px;
    overflow: hidden;
}

/* Fade gradient */
.ai-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(transparent, #fff);
    pointer-events: none;
}

/* Formato contenido */
.ai-body ul, .ai-body ol { margin: 4px 0; padding-left: 20px; }
.ai-body li { margin: 2px 0; }
.ai-body p { margin: 4px 0; }
.ai-body h1, .ai-body h2, .ai-body h3 { margin: 6px 0 4px 0; font-size: 14px; font-weight: 600; }
.ai-body strong { font-weight: 600; }

/* Boton ver mas */
.ai-show-more {
    display: block;
    width: 100%;
    padding: 8px;
    background: #f3f4f6;
    border: none;
    border-top: 1px solid #e5e7eb;
    color: #4b5563;
    font-size: 12px;
    cursor: pointer;
}

.ai-show-more:hover {
    background: #e5e7eb;
}

.ai-show-more i {
    margin-left: 4px;
    font-size: 10px;
}

