/* Admin Dashboard Styles - Solución definitiva para imágenes */

/* Contenedor que actúa como "ventana" para recortar imagen */
.imagen-contenedor {
    height: 150px !important;
    width: 100% !important;
    overflow: hidden !important;
    background-color: #f8f9fa !important;
    display: block !important;
    position: relative !important;
}

/* Imagen dentro del contenedor recortador */
.imagen-contenedor img {
    height: 150px !important;
    width: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
}

.noticia-imagen-placeholder {
    height: 150px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

/* Indicadores de estado con borde izquierdo */
.noticia-validada {
    border-left: 4px solid #28a745;
}

.noticia-rechazada {
    border-left: 4px solid #dc3545;
}

.noticia-pendiente {
    border-left: 4px solid #ffc107;
}

/* Truncar texto largo */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;  
    overflow: hidden;
}

/* Estilo para títulos completos */
.card-title {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    margin-bottom: 0.75rem !important;
    line-height: 1.3 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
}

/* Estilo para el dropdown de referencia */
#referencia_manual {
    max-height: 200px;
    overflow-y: auto;
}

#referencia_manual option {
    padding: 8px 12px;
}

/* Separador visual para las opciones fijas */
#referencia_manual option[value="FRUTICULTURA"],
#referencia_manual option[value="HORTICULTURA"] {
    font-weight: 600;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

/* Estilos de utilidad */
.stats-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

/* Responsive para contenedor de imagen */
@media (max-width: 768px) {
    .imagen-contenedor {
        height: 120px !important;
    }
    
    .imagen-contenedor img {
        height: 120px !important;
    }
    
    .noticia-imagen-placeholder {
        height: 120px;
    }
}

@media (max-width: 576px) {
    .imagen-contenedor {
        height: 100px !important;
    }
    
    .imagen-contenedor img {
        height: 100px !important;
    }
    
    .noticia-imagen-placeholder {
        height: 100px;
    }
}

/* Estilos para la sección de resumen bullets */
.bullets-display {
    transition: all 0.3s ease;
}

.bullets-content {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    line-height: 1.4;
}

.bullets-content ul {
    margin: 0;
    padding-left: 1rem;
}

.bullets-content li {
    margin-bottom: 0.25rem;
}

/* Animación para cuando se genera nuevo contenido */
.bullets-generated {
    animation: bulletsFadeIn 0.5s ease-in-out;
}

@keyframes bulletsFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estilo para botones de bullets */
.btn-bullets {
    transition: all 0.2s ease;
}

.btn-bullets:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Indicador de loading para bullets */
.bullets-loading {
    opacity: 0.7;
    pointer-events: none;
}